/* AgentRecall Admin Panel - Styles with Theme Support */

/* CSS Variables */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-card: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-color: #2d3748;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f7fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #edf2f7;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: var(--transition);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Login Page */
#login-page,
#register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.login-container-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-color);
}

.header-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.control-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.control-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.lang-selector {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-selector:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-group .checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.register-link a:hover {
.forgot-password-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.forgot-password-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.forgot-password-link a:hover {
    color: var(--primary-color);
}
.forgot-password-link {    text-align: center;    margin-top: 15px;    padding-top: 15px;    border-top: 1px solid var(--border-color);}.forgot-password-link a {    color: var(--text-secondary);    text-decoration: none;    font-size: 0.875rem;    transition: color 0.2s;}.forgot-password-link a:hover {    color: var(--primary-color);}
.forgot-password-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.forgot-password-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.forgot-password-link a:hover {
    color: var(--primary-color);
}
    text-decoration: underline;
}

/* Main Layout */
#main-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1;
}

.mobile-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 1.125rem;
}

.mobile-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    z-index: 1;
}

.mobile-controls .lang-selector {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    min-width: auto;
}

/* PC Header */
.pc-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    margin-left: 260px;
    gap: 12px;
}

.pc-header-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .pc-header {
        display: none;
    }
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

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

.sidebar-header h2 {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-item .icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.user-info span:first-child {
    font-size: 0.875rem;
    color: var(--text-primary);
    word-break: break-all;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 4px;
    width: fit-content;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    overflow-y: auto;
    background: var(--bg-primary);
    transition: margin-left 0.3s ease, padding 0.3s ease;
}

.content-page h1 {
    margin-bottom: 24px;
    font-size: 1.75rem;
    color: var(--text-primary);
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Table Container for Mobile Scroll */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 600px;
}

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

/* Table container with horizontal scroll */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.data-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

[data-theme="light"] .data-table th {
    background: var(--bg-tertiary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-success {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success-color);
}

.status-error {
    background: rgba(245, 101, 101, 0.2);
    color: var(--danger-color);
}

.status-warning {
    background: rgba(237, 137, 54, 0.2);
    color: var(--warning-color);
}

/* API Key Cards */
.apikey-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apikey-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 1rem;
}

.apikey-info {
    flex: 1;
    min-width: 200px;
}

.apikey-info h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
    word-break: break-all;
}

.apikey-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.apikey-actions {
    display: flex;
    gap: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-state .hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    overflow: auto;
}

.modal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 16px;
        max-height: 90vh;
    }
    
    .modal-large {
        max-width: calc(100% - 32px);
    }
}

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

.modal-header h2 {
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-warning {
    background: rgba(237, 137, 54, 0.2);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

/* API Key Display */
.apikey-display {
    display: flex;
    gap: 12px;
}

.apikey-display input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.875rem;
}

/* Usage Stats */
.usage-stats {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.chart-container,
.top-endpoints {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.chart-container h3,
.top-endpoints h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    position: relative;
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Recent Activity */
.recent-activity {
    margin-top: 32px;
}

.recent-activity h2 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* System Stats */
.system-stats {
    margin-top: 24px;
}

.system-stats h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Responsive */
/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium devices (tablets, 992px to 1199px) */
@media (max-width: 1199px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .usage-stats {
        grid-template-columns: 1fr;
    }
}

/* Small devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 24px;
    }
}

/* Extra small devices (phones, less than 768px) */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    /* Hide mobile header on login/register pages */
    #login-page .mobile-header,
    #register-page .mobile-header {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1001;
        height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar-close {
        display: block;
    }
    
    /* Move login container up on mobile */
    .login-container-wrapper {
        margin-top: -40px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 16px 16px;
        min-height: 100vh;
    }
    
    #main-page {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .usage-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chart-container,
    .top-endpoints {
        padding: 16px;
        overflow-x: auto;
    }
    
    .login-container {
        margin: 80px 16px 40px;
        padding: 24px;
    }
    
    .login-header {
        position: relative;
        padding: 0.5rem 1rem;
        background: var(--bg-primary);
    }
    
    .apikey-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .apikey-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .apikey-actions .btn {
        flex: 1;
        margin: 0 4px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-bar input,
    .filter-bar select {
        width: 100%;
        padding: 12px 16px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 16px;
        max-height: 90vh;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .apikey-display {
        flex-direction: column;
        gap: 8px;
    }
    
    .apikey-display .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .content-page h1 {
        font-size: 1.5rem;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px;
    }
    
    .login-container {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Fix sidebar bottom being cut off on mobile */
    .sidebar {
        height: 100%;
        max-height: 100vh;
        overflow-y: auto;
        padding-bottom: 20px;
    }
    
    .sidebar-footer {
        padding-bottom: 20px;
    }
}

/* Footer */
.footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    margin-top: auto;
    margin-left: 260px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .footer {
        margin-left: 0;
        padding: 16px;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 16px;
    }
    
    .footer-links {
        gap: 16px;
    }
}





/* Chart with axes */
.chart-wrapper {
    position: relative;
    height: 220px;
}

.chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 20px;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 5px;
}

.chart-x-axis {
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.chart-with-legend .chart {
    margin-left: 30px;
}

/* Mobile table optimization */
@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
    
    .data-table th:first-child,
    .data-table td:first-child {
        padding-left: 8px;
    }
    
    .data-table th:last-child,
    .data-table td:last-child {
        padding-right: 8px;
    }
    
    .status-badge {
        padding: 2px 6px;
        font-size: 0.75rem;
    }
    
    .table-container {
        margin: 0 -10px;
        padding: 0 10px;
    }
}

/* Dashboard table compact */
.dashboard .data-table th,
.dashboard .data-table td {
    padding: 10px 12px;
}

.dashboard .stat-card {
    padding: 16px;
}

.dashboard .stat-value {
    font-size: 1.5rem;
}

.forgot-password-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.forgot-password-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.forgot-password-link a:hover {
    color: var(--primary-color);
}


.forgot-password-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
}
.forgot-password-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}
.forgot-password-link a:hover {
    color: var(--primary-color);
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
}
.forgot-password-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}
.forgot-password-link a:hover {
    color: var(--primary-color);
}


/* Forgot Password Link Style */
.forgot-password-link { text-align: center; margin-top: 15px; }
.forgot-password-link a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
.forgot-password-link a:hover { color: var(--primary-color); }

/* Forgot Password Link */
.forgot-password-link { text-align: center; margin-top: 15px; }
.forgot-password-link a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
.forgot-password-link a:hover { color: var(--primary-color); }

/* Forgot Password Link */
.forgot-password-link { text-align: center; margin-top: 15px; }
.forgot-password-link a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
.forgot-password-link a:hover { color: var(--primary-color); }
