/* =====================================================
   ADMIN DASHBOARD STYLES
   ===================================================== */

/* Variables */
:root {
    --admin-primary: #23A2A5;
    --admin-primary-dark: #1a7a7c;
    --admin-secondary: #2c3e50;
    --admin-success: #27ae60;
    --admin-warning: #f39c12;
    --admin-danger: #e74c3c;
    --admin-info: #3498db;
    --admin-bg: #f5f7fa;
    --admin-card-bg: #ffffff;
    --admin-text: #2c3e50;
    --admin-text-light: #7f8c8d;
    --admin-border: #e1e8ed;
    --admin-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --admin-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --sidebar-width: 260px;
    --header-height: 64px;
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */

.admin-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.login-card {
    background: var(--admin-card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.login-header h1 {
    color: var(--admin-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.login-header p {
    color: var(--admin-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 8px;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(35, 162, 165, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--admin-text-light);
    padding: 4px;
}

.toggle-password:hover {
    color: var(--admin-primary);
}

.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--admin-text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--admin-primary);
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--admin-primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: var(--admin-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover:not(:disabled) {
    background: var(--admin-primary-dark);
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-message {
    background: #fdf2f2;
    border: 1px solid #f8d7da;
    color: var(--admin-danger);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 16px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: var(--admin-success);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 16px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--admin-border);
}

.login-footer p {
    margin: 0;
    color: var(--admin-text-light);
    font-size: 0.8rem;
}

.login-footer .version {
    margin-top: 4px;
    font-size: 0.75rem;
}

.login-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(35, 162, 165, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(35, 162, 165, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* =====================================================
   ADMIN LAYOUT
   ===================================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--admin-secondary);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 20px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: rgba(35, 162, 165, 0.2);
    color: var(--admin-primary);
    border-left-color: var(--admin-primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--admin-danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Header */
.admin-header {
    height: var(--header-height);
    background: var(--admin-card-bg);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--admin-text);
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--admin-text-light);
}

.header-breadcrumb a {
    color: var(--admin-text-light);
    text-decoration: none;
}

.header-breadcrumb a:hover {
    color: var(--admin-primary);
}

.header-breadcrumb .current {
    color: var(--admin-text);
    font-weight: 600;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 280px;
    padding: 8px 16px 8px 40px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--admin-bg);
}

.header-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-light);
    width: 18px;
    height: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--admin-text-light);
    border-radius: 8px;
    position: relative;
    transition: background 0.2s;
}

.header-btn:hover {
    background: var(--admin-bg);
    color: var(--admin-text);
}

.header-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--admin-danger);
    border-radius: 50%;
}

/* Content Area */
.admin-content {
    flex: 1;
    padding: 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-text);
    margin: 0;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--admin-text-light);
    margin: 4px 0 0 0;
}

/* =====================================================
   STAT CARDS
   ===================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--admin-card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--admin-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-icon.green { background: linear-gradient(135deg, #27ae60, #229954); }
.stat-icon.orange { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-icon.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-icon.teal { background: linear-gradient(135deg, #23a2a5, #1a7a7c); }
.stat-icon.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--admin-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--admin-text);
    line-height: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.stat-change.positive { color: var(--admin-success); }
.stat-change.negative { color: var(--admin-danger); }

/* =====================================================
   DATA TABLE
   ===================================================== */

.data-card {
    background: var(--admin-card-bg);
    border-radius: 12px;
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.table-filters {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: var(--admin-bg);
    border-bottom: 1px solid var(--admin-border);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--admin-text-light);
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.875rem;
    background: var(--admin-card-bg);
    min-width: 140px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.data-table th {
    background: var(--admin-bg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-text-light);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: var(--admin-bg);
}

.data-table td {
    font-size: 0.9rem;
    color: var(--admin-text);
}

.complaint-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--admin-primary);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.new {
    background: #e8f4fd;
    color: #2980b9;
}
.status-badge.new::before { background: #2980b9; }

.status-badge.assigned {
    background: #fef9e7;
    color: #d68910;
}
.status-badge.assigned::before { background: #d68910; }

.status-badge.in_progress,
.status-badge.in-progress {
    background: #fdf2e9;
    color: #e67e22;
}
.status-badge.in_progress::before,
.status-badge.in-progress::before { background: #e67e22; }

.status-badge.resolved {
    background: #eafaf1;
    color: #27ae60;
}
.status-badge.resolved::before { background: #27ae60; }

.status-badge.closed {
    background: #f4f6f7;
    color: #7f8c8d;
}
.status-badge.closed::before { background: #7f8c8d; }

.status-badge.rejected {
    background: #fdedec;
    color: #e74c3c;
}
.status-badge.rejected::before { background: #e74c3c; }

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.critical {
    background: #e74c3c;
    color: white;
}

.priority-badge.high {
    background: #f39c12;
    color: white;
}

.priority-badge.medium {
    background: #3498db;
    color: white;
}

.priority-badge.low {
    background: #95a5a6;
    color: white;
}

/* SLA Indicator */
.sla-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.sla-indicator.within { color: var(--admin-success); }
.sla-indicator.warning { color: var(--admin-warning); }
.sla-indicator.breached { color: var(--admin-danger); }

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn.view {
    background: #e8f4fd;
    color: #3498db;
}
.action-btn.view:hover { background: #d4e6f1; }

.action-btn.assign {
    background: #eafaf1;
    color: #27ae60;
}
.action-btn.assign:hover { background: #d5f5e3; }

.action-btn.edit {
    background: #fef9e7;
    color: #f39c12;
}
.action-btn.edit:hover { background: #fdebd0; }

/* Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--admin-border);
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--admin-text-light);
}

.pagination-controls {
    display: flex;
    gap: 4px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    background: var(--admin-card-bg);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--admin-bg);
    border-color: var(--admin-primary);
}

.pagination-btn.active {
    background: var(--admin-primary);
    color: white;
    border-color: var(--admin-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-secondary {
    background: var(--admin-bg);
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
}
.btn-secondary:hover { background: var(--admin-border); }

.btn-success {
    background: var(--admin-success);
    color: white;
}
.btn-success:hover { background: #229954; }

.btn-danger {
    background: var(--admin-danger);
    color: white;
}
.btn-danger:hover { background: #c0392b; }

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   MODALS
   ===================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--admin-card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-sm { max-width: 400px; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--admin-text);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--admin-bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--admin-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--admin-border);
    color: var(--admin-text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--admin-border);
    background: var(--admin-bg);
}

/* =====================================================
   FORMS
   ===================================================== */

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(35, 162, 165, 0.1);
}

.form-group .hint {
    font-size: 0.75rem;
    color: var(--admin-text-light);
    margin-top: 4px;
}

/* =====================================================
   COMPLAINT DETAIL
   ===================================================== */

.complaint-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.complaint-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.detail-section {
    background: var(--admin-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--admin-shadow);
}

.detail-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--admin-border);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--admin-border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--admin-text-light);
}

.detail-value {
    font-size: 0.9rem;
    color: var(--admin-text);
    font-weight: 500;
    text-align: right;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--admin-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--admin-primary);
    border: 2px solid var(--admin-card-bg);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--admin-text-light);
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 0.875rem;
    color: var(--admin-text);
}

/* =====================================================
   CHARTS & ANALYTICS
   ===================================================== */

.chart-card {
    background: var(--admin-card-bg);
    border-radius: 12px;
    box-shadow: var(--admin-shadow);
    padding: 20px;
}

.chart-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0 0 16px 0;
}

.chart-container {
    position: relative;
    height: 300px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

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

    .admin-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-search input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .table-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        flex: 1;
    }

    .header-search {
        display: none;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 24px;
    }

    .admin-content {
        padding: 16px;
    }
}
