/* ========== ROOT VARIABLES — DSS INFRABUILD LIGHT THEME ========== */
:root {
    /* PRIMARY — Orange Brand (DSS Signature) */
    --primary: #e85d04;
    --primary-light: #ff8f00;
    --primary-dark: #c44d02;
    --primary-deeper: #9a3400;
    --primary-bg: rgba(232, 93, 4, 0.08);
    --primary-soft: #fff8f0;
    /* LIGHT THEME BACKGROUNDS */
    --bg-body: #f8f9fa;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-elevated: #ffffff;
    --bg-sidebar: #1a1a2e;
    --bg-sidebar-dark: #0f0f1a;
    /* TEXT COLORS — Light Theme */
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-muted: #a0a3b1;
    --text-light: #ffffff;
    /* BORDERS — Light Theme */
    --border: #e9ecef;
    --border-light: #f1f3f5;
    --border-dark: #dee2e6;
    /* STATUS COLORS */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #e85d04;
    --info-light: #fff3e6;
    /* SHADOWS — Soft & Premium */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 14px rgba(232, 93, 4, 0.15);
    /* LAYOUT */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    /* SPACING */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    /* RADIUS */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    /* FONTS */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Loading spinner animation */
.ri-spin {
    animation: spin 1s linear infinite;
}
.text-danger {
    color:red;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

/* ========== AUTH PAGE ========== */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 50%, #ffd9b5 100%);
    position: relative;
    overflow: hidden;
}

    .auth-body::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e85d04' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    }

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: var(--space-6);
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: 32px;
    color: white;
    box-shadow: var(--shadow-primary);
}

.auth-header h1 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-header p {
    color: var(--text-secondary);
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom:10px;
}

    .form-group label {
        display: block;
        margin-bottom: var(--space-2);
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-primary);
    }

        .form-group label i {
            color: var(--primary);
            margin-right: var(--space-2);
        }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.625rem 0.875rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        font-size: 0.875rem;
        font-family: inherit;
        transition: all 0.2s ease;
        background: var(--bg-main);
        color: var(--text-primary);
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-bg);
        }

.password-input {
    position: relative;
}

    .password-input input {
        padding-right: 40px;
    }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: var(--shadow-primary);
    }

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        background: var(--bg-body);
        border-color: var(--primary);
        color: var(--primary);
    }

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: white;
    }

.btn-danger {
    background: var(--danger);
    color: white;
}

    .btn-danger:hover {
        background: #dc2626;
    }

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-icon:hover {
        background: var(--primary-bg);
        color: var(--primary);
    }

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Dark Navy (Kept dark for contrast) */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-sidebar-dark) 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.sidebar-header h2 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: var(--space-4);
}

.nav-section {
    margin-bottom: var(--space-6);
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.35);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.06);
        color: white;
    }

    .nav-item.active {
        background: rgba(232, 93, 4, 0.18);
        color: var(--primary-light);
        border-left: 3px solid var(--primary);
    }

    .nav-item i {
        font-size: 1.125rem;
        width: 20px;
        flex-shrink: 0;
    }

.nav-badge {
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: auto;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

/* Header - Light */
.dashboard-header {
    height: var(--header-height);
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.menu-toggle {
    display: none;
}

.header-search {
    position: relative;
}

    .header-search input {
        width: 260px;
        padding: 0.5rem 1rem 0.5rem 2.25rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        font-size: 0.875rem;
        background: var(--bg-surface);
        transition: all 0.2s;
    }

        .header-search input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-bg);
        }

    .header-search i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
    }

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

    .user-menu:hover {
        background: var(--bg-surface);
    }

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.user-role {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* Content Wrapper */
.content-wrapper {
    padding: var(--space-6);
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-6);
}

    .page-header h1 {
        margin-bottom: var(--space-1);
    }

    .page-header p {
        color: var(--text-secondary);
    }

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: transparent;
    }

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

    .stat-icon.primary {
        background: var(--primary-bg);
        color: var(--primary);
    }

    .stat-icon.success {
        background: var(--success-light);
        color: var(--success);
    }

    .stat-icon.warning {
        background: var(--warning-light);
        color: var(--warning);
    }

    .stat-icon.danger {
        background: var(--danger-light);
        color: var(--danger);
    }

/* ========== CHARTS ========== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

    .chart-card h3 {
        margin-bottom: var(--space-4);
        font-size: 0.9rem;
    }

/* ========== TABLE ========== */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    padding: var(--space-4) var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: var(--space-3);
}

    .table-header h3 {
        font-size: 0.9rem;
    }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th {
        padding: 0.75rem 1rem;
        text-align: left;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-secondary);
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
    }

    .data-table td {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.875rem;
        color: var(--text-primary);
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .data-table tr:hover td {
        background: var(--bg-surface);
    }

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 500;
}

.badge-success {
    background: var(--success-light);
    color: #065f46;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400e;
}

.badge-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.badge-info {
    background: var(--info-light);
    color: var(--primary-deeper);
}

.badge-primary {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

/* ========== CARDS GRID ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-5);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: var(--space-4);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.card-footer {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
}

    .modal-header h3 {
        font-size: 1rem;
    }

.modal-body {
    padding: var(--space-5);
}

.modal-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-modal:hover {
        background: var(--bg-surface);
        color: var(--danger);
    }

/* ========== FORM GRID ========== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-full {
    grid-column: 1 / -1;
}

/* ========== FILTERS BAR ========== */
.filters-bar {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 0.5rem 1rem 0.5rem 2.25rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-main);
    }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-bg);
        }

    .search-box i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
    }

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    min-width: 130px;
    color: var(--text-primary);
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: var(--space-3);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========== UPLOAD AREA ========== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-surface);
}

    .upload-area:hover {
        border-color: var(--primary);
        background: var(--primary-bg);
    }

    .upload-area i {
        font-size: 3rem;
        color: var(--primary);
        margin-bottom: var(--space-3);
        display: block;
    }

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 260px;
    animation: slideIn 0.3s ease;
    border-left: 3px solid;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: var(--space-12);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

    .empty-state i {
        font-size: 3rem;
        color: var(--text-muted);
        margin-bottom: var(--space-4);
        display: block;
    }

    .empty-state h3 {
        color: var(--text-secondary);
        margin-bottom: var(--space-2);
    }

/* ========== LOADING ========== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

    .page-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .page-btn.active {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }

/* ========== ACTION BUTTONS ========== */
.action-buttons {
    display: flex;
    gap: 4px;
}

/* ========== DETAIL PAGE ========== */
.detail-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.detail-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.detail-meta {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin: var(--space-5) 0;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

    .detail-meta-item i {
        color: var(--primary);
    }

/* ========== TESTIMONIAL CARD ========== */
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-4);
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

    .testimonial-card .quote {
        font-style: italic;
        color: var(--text-secondary);
        margin-bottom: var(--space-3);
    }

    .testimonial-card .client-name {
        font-weight: 600;
        color: var(--primary);
    }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: var(--space-4);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .header-search {
        display: none;
    }

    .user-info {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }
}
