/* Pretendard Font Face */
@font-face {
    font-family: 'Pretendard';
    font-weight: 100;
    font-style: normal;
    src: url('/fonts/Pretendard-Thin.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 200;
    font-style: normal;
    src: url('/fonts/Pretendard-ExtraLight.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 300;
    font-style: normal;
    src: url('/fonts/Pretendard-Light.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    font-style: normal;
    src: url('/fonts/Pretendard-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 500;
    font-style: normal;
    src: url('/fonts/Pretendard-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 600;
    font-style: normal;
    src: url('/fonts/Pretendard-SemiBold.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    font-style: normal;
    src: url('/fonts/Pretendard-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 800;
    font-style: normal;
    src: url('/fonts/Pretendard-ExtraBold.otf') format('opentype');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 900;
    font-style: normal;
    src: url('/fonts/Pretendard-Black.otf') format('opentype');
}

:root {
    /* Admin Style - freemode Adapted Modern Red */
    --bg-cream: #FFF9F2;
    --bg-pink: #FFD6E0;
    --bg-mint: #C1FBA4;
    --bg-blue: #A2D2FF;
    --bg-purple: #D8B4FE;
    --bg-yellow: #FFEF96;

    /* Admin Primary Red Colors */
    --admin-red: #e11d48;
    --admin-red-hover: #be123c;
    --admin-red-light: #ffebed;

    --accent-pop: var(--admin-red);
    --text-dark: #1A1A1A;
    --text-gray: #5F5F5F;

    --border-black: 1px solid #1A1A1A;
    
    --shadow-hard: 4px 4px 0px #1A1A1A;
    --shadow-hover: 2px 2px 0px #1A1A1A;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 100px;

    /* Layout (Scaled to approx 90%) */
    --sidebar-width: 200px;
    --header-height: 63px;
}

html {
    font-size: 90%;
    /* Scale all rem units to 90% */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

alert-danger {
	padding-bottom : 12px;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-pink);
    border-radius: 10px;
    border: 2px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--admin-red-hover);
}

/* Background Blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-black);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 a {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    /* Reduced from 1.8rem */
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
    /* Reduced from 10px */
}

.logo h1 a::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--admin-red);
    border-radius: 50%;
    border: 2px solid var(--text-dark);
}

.header .nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header .nav a {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.header .nav a:hover {
    color: var(--admin-red);
}

.header-user-info a {
    background: var(--bg-yellow);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    border: var(--border-black);
}

/* Layout Wrapper */
.content-wrapper {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    padding: 1.35rem;
    /* Reduced from 1.5rem */
    transition: all 0.3s;
}

/* Layout Helpers */
.user-view-container,
.menu-view-container,
.view-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.grid-panel {
    flex: 1.6;
    min-width: 0;
}

.grid-panel-50 {
    flex: 1;
    min-width: 0;
}

.details-panel {
    flex: 1;
    min-width: 320px;
}

@media (max-width: 1200px) {

    .user-view-container,
    .menu-view-container,
    .view-container {
        flex-direction: column;
    }

    .grid-panel,
    .grid-panel-50,
    .details-panel {
        width: 100%;
        min-width: 0;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: white;
    border-right: var(--border-black);
    z-index: 999;
    padding: 2rem 0;
    overflow-y: auto;
}

.sidebar-profile {
    padding: 0 1.5rem 1.25rem;
    border-bottom: var(--border-black);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1025px) {
    .sidebar-profile {
        display: none;
    }
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.user-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--admin-red);
}

.logout-link {
    color: var(--text-dark);
    background: var(--bg-pink);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-dark);
    box-shadow: 2px 2px 0px var(--text-dark);
    transition: all 0.2s;
}

.logout-link:hover {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.admin-menu {
    list-style: none;
    padding: 0 0.9rem;
    /* Reduced from 1rem */
}

.admin-menu li {
    margin-bottom: 0.5rem;
}

.admin-menu li a {
    display: block;
    padding: 12px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.admin-menu li a:hover {
    background: var(--bg-blue);
    border-color: var(--text-dark);
    transform: rotate(-1deg);
}

.admin-menu li.active>a {
    background: var(--admin-red);
    color: white;
    border-color: var(--text-dark);
}

.admin-menu .sub-menu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    border-left: 2px dashed var(--text-gray);
    margin-left: 1.5rem;
}

.admin-menu .sub-menu li a {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Common Components */
.card {
    background: white;
    border: var(--border-black);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
    /* Reduced from 1.25rem */
    margin-bottom: 1.35rem;
    /* Reduced from 1.5rem */
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: none;
    padding: 0;
}

.page-header h2 {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-size: 1.8rem;
    /* Reduced from 2rem */
    font-weight: 800;
    color: var(--text-dark);
}

/* Search Forms */
.search-form-inline form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.25rem;
    border: var(--border-black);
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.search-fields {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-fields .form-group {
    margin-bottom: 0;
    gap: 0.8rem;
    flex: 1;
}

.search-fields .form-group label {
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
}

.search-buttons {
    display: flex;
    gap: 8px;
}

/* Custom Radio Buttons */
.radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    flex: 1;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
}

.form-control-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

.form-control-radio:checked {
    background: var(--admin-red);
    box-shadow: 2px 2px 0px var(--text-dark);
}

.form-control-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.form-control-radio:hover {
    transform: scale(1.1);
}

/* Forms */
.form-group {
    margin-bottom: 14px;
    /* Reduced from 16px */
    display: flex;
    align-items: center;
    gap: 1.35rem;
    /* Reduced from 1.5rem */
}

.form-group label {
    flex: 0 0 100px;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control-wrap {
    flex: 1;
    min-width: 0;
}

.form-control {
    flex: 1;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: var(--border-black);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
}

/* Buttons */
.btn {
    font-weight: 800;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border: var(--border-black);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--admin-red);
    color: white;
}

.btn-primary:hover {
    background: var(--admin-red-hover);
}

.btn-secondary {
    background: var(--bg-yellow);
    color: var(--text-dark);
}

/* Control Bars */
.controls-container {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-bar.is-top {
    margin-bottom: 12px;
}

.controls-bar.is-bottom {
    margin-top: 12px;
}

.controls-group-right {
    display: flex;
    gap: 8px;
}

/* Tables / Grid */
.tui-grid-container {
    border: var(--border-black) !important;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Header Area styling */
.tui-grid-header-area {
    background-color: var(--admin-red) !important;
}

.tui-grid-cell-header {
    background-color: #ffdbde !important;
    color: #0a0a0a !important;
    font-weight: 800 !important;
    border-color: var(--text-dark) !important;
}

/* Ensure header text is visible and white */
.tui-grid-cell-header .tui-grid-cell-content {
    color: white !important;
    font-weight: 800 !important;
}

.tui-grid-cell {
    border-color: var(--text-dark) !important;
    font-weight: 600 !important;
    color: var(--text-dark);
    font-size: 0.85rem !important;
    /* Explicitly scale grid text */
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: all 0.3s;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* Login Page Specific */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border: var(--border-black);
    border-radius: var(--radius-sm);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.login-card .form-group {
    margin-bottom: 20px;
    /* Reset for login layout */
    gap: 1.5rem;
}

.login-card .form-group label {
    flex: 0 0 80px;
    /* Reduced label width for login */
}

.login-header {
    margin-bottom: 2rem;
    text-align: left;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.logo-dot {
    width: 14px;
    height: 14px;
    background: var(--admin-red);
    border-radius: 50%;
    border: 2px solid var(--text-dark);
}

.header-logo span {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.login-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-gray);
}

.save-id {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    /* Prevent wrapping */
}

#saveIdChk {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-freemode {
    width: 100%;
    background: var(--admin-red);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    /* Slightly larger for login button */
    padding: 0.9rem;
    border: var(--border-black);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 1rem;
}

.btn-freemode:hover {
    background: var(--admin-red-hover);
    transform: translate(1px, 1px);
    box-shadow: var(--shadow-hover);
}

.btn-freemode:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Stats Section (Refined for Tone & Manner) */
.stats-inline {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background: #fff;
    border: 1px solid #1A1A1A;
    /* Darker border as per some "freemode" styles, or keep subtle if image suggests. Image shows thin dark border. */
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    box-shadow: none;
    /* Image looks flat/clean */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    justify-content: space-between;
    transition: all 0.2s ease;
    flex: 1;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    position: relative;
    min-height: 40px;
    /* Ensure space for icon */
}

.stat-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #5F5F5F;
    /* Darker gray */
    margin: 0;
    padding-top: 0.5rem;
    /* Align with icon center roughly */
}

.stat-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: absolute;
    top: -0.2rem;
    right: 0;
}

/* Refined Pastel Colors (Softer, image-like) */
.stat-card__icon.pastel-red {
    background-color: #FEEEEE;
    color: #E57373;
}

.stat-card__icon.pastel-blue {
    background-color: #E3F2FD;
    color: #64B5F6;
}

.stat-card__icon.pastel-yellow {
    background-color: #FFF9C4;
    color: #FDCB6E;
}

/* Softer yellow */
.stat-card__icon.pastel-green {
    background-color: #E8F5E9;
    color: #81C784;
}

.stat-card__value {
    font-size: 2rem;
    /* Larger */
    font-weight: 400;
    /* Ultra bold */
    color: #1A1A1A;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    letter-spacing: -0.02em;
}

.stat-card__trend {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5F5F5F;
    margin-top: auto;
}

.stat-card__trend strong {
    font-weight: 800;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

.stat-card__trend.success strong {
    color: #00C853;
}

/* Vibrant Green */
.stat-card__trend.danger strong {
    color: #FF1744;
}

/* Vibrant Red */
.stat-card__trend.neutral strong {
    color: #5F5F5F;
}

.popup-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    padding: var(--space-20) var(--space-24);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    font-size: var(--font-size-lg);
}

.popup-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background-color: var(--color-primary);
    margin-right: var(--space-12);
    border-radius: var(--radius-full);
}

.popup-container {
    padding: var(--space-24);
    flex-grow: 1;
    overflow-y: auto;
}

.popup-footer {
    padding: var(--space-16) var(--space-24);
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-8);
}

/* ============================================== */
/* Modal Styles                                   */
/* ============================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow: auto;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: var(--border-black);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    box-shadow: 8px 8px 0px rgba(26, 26, 26, 0.15);
}

.modal-content.modal-lg {
    max-width: 700px;
}

.modal-content.modal-xl {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: var(--border-black);
    background: var(--admin-red-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--admin-red);
    border-radius: 2px;
}

.modal-close {
    background: white;
    border: 2px solid var(--text-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--admin-red);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 140px);
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-group label {
    flex: 0 0 90px;
    font-size: 0.9rem;
}

.modal-body .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.modal-body .form-row .form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.modal-body .form-row .col-md-6 {
    flex: 1;
}

.modal-body textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.modal-body .required {
    color: var(--admin-red);
    font-weight: 700;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: var(--border-black);
    background: #fafafa;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.modal-footer .btn {
    min-width: 80px;
}

.modal-footer .btn-danger {
    background: white;
    color: var(--admin-red);
    border: 2px solid var(--admin-red);
}

.modal-footer .btn-danger:hover {
    background: var(--admin-red);
    color: white;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: 1px solid var(--text-dark);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ============================================== */
/* Dashboard Layout                               */
/* ============================================== */
.dashboard-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

.dashboard-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-right {
    flex: 0 0 400px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stats-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    width: 100%;
}

.stats-row .stat-card--simple {
    flex: 1;
    min-width: 0;
}

/* Simple Stat Card Style */
.stat-card--simple {
    background: #fff;
    border: var(--border-black);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--admin-red);
    margin-bottom: 0.25rem;
}

.stat-card__number {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.stat-card__value-lg {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card__unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
}

.stat-card__sub {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
    font-weight: 600;
}

.stat-card__sub.success {
    color: #00C853;
}

.stat-card__sub.danger {
    color: #FF1744;
}

.stat-card__sub.neutral {
    color: var(--text-gray);
}

/* Dashboard Cards */
.dashboard-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    border: var(--border-black);
    border-radius: var(--radius-sm);
    margin-bottom: 0;
}

.dashboard-card .card__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

.dashboard-card .card__header h4 {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
}

.dashboard-card .card__body {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
}

.dashboard-card--half {
    flex: 1;
}

.dashboard-card--half .card__body {
    padding: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-layout {
        flex-direction: column !important;
    }

    .dashboard-right {
        flex: none;
        width: 100%;
        flex-direction: row;
    }

    .dashboard-right .dashboard-card--half {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column !important;
    }

    .dashboard-right {
        flex-direction: column;
    }
}