/* Color Palette - Mountain Theme */
:root {
    /* Primary Colors - Purple/Blue Gradient */
    --primary-purple: #667eea;
    --primary-purple-dark: #764ba2;
    --primary-blue: #667eea;
    --primary-blue-light: #7c8ef0;
    --primary-blue-dark: #5568d3;

    /* Background Colors - Dark Blue/Purple */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f1419;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-hover: rgba(26, 26, 46, 0.95);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-inverse: #1a1a2e;

    /* Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #e11d48;
    --accent-purple: #667eea;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #e11d48;
    --info: #667eea;

    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.15);
    --border-accent: #667eea;

    /* Special Effects */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-card: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Unified Container System */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-container--settings {
    max-width: 1200px;
}

.page-container--grid {
    max-width: 1600px;
}

/* Unified Header Components */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Unified Card System */
.page-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-primary);
}

/* Unified Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-cyan);
    width: 40px;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Unified Filter Controls */
.filter-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: auto !important; /* Auto width to minimize space */
}

.filter-group label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-input, .filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.15);
}

/* Global select option styling for dark theme */
select option {
    background-color: #1a1a2e;
    color: #fff;
}

/* Unified Action Buttons */
.action-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-accent);
}

.btn-info {
    background: rgba(23, 162, 184, 0.8);
    color: white;
    border: 1px solid rgba(23, 162, 184, 1);
}

.btn-info:hover {
    background: rgba(23, 162, 184, 1);
    border-color: rgba(19, 132, 150, 1);
}

/* Unified Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.content-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.02);
}

/* Global Admin Table Styles */
/* Standardized Admin Table Container */
.admin-table-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background: rgba(0, 212, 255, 0.1);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #00d4ff;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    vertical-align: middle;
}

.admin-table th:hover {
    background: rgba(0, 255, 255, 0.15);
}

.admin-table th.sortable {
    min-width: 100px;
}

.admin-table th .sort-icon {
    opacity: 0.5;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.admin-table th .sort-icon.active {
    opacity: 1;
    color: #00d4ff;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.85rem;
    vertical-align: top;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tr:nth-child(even):hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table .checkbox-column {
    width: 50px;
    text-align: center;
}

.admin-table .actions-column {
    width: 120px;
    text-align: center;
}

.admin-table .actions-cell {
    min-width: 120px;
}

.admin-table .actions-cell .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
}

.admin-table .actions-cell .action-buttons button {
    width: 100%;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.admin-table .btn-edit {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.admin-table .btn-edit:hover {
    background: rgba(0, 212, 255, 0.3);
}

.admin-table .btn-delete {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.admin-table .btn-delete:hover {
    background: rgba(220, 53, 69, 0.3);
}

.admin-table .btn-view {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.admin-table .btn-view:hover {
    background: rgba(23, 162, 184, 0.3);
}

.admin-table .btn-pause {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.admin-table .btn-pause:hover {
    background: rgba(255, 193, 7, 0.3);
}

.admin-table .btn-search {
    background: rgba(134, 25, 143, 0.2);
    color: #8619af;
    border: 1px solid rgba(134, 25, 143, 0.3);
}

.admin-table .btn-search:hover {
    background: rgba(134, 25, 143, 0.3);
}

.admin-table .status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.admin-table .status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.admin-table .status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.admin-table .status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.admin-table .no-data {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

.admin-table .loading-row {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    padding: 1.5rem;
}

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

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container-home {
    justify-content: flex-end;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue-light);
}

.nav-logo {
    height: 1.8rem;
    width: auto;
    color: currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
    flex-direction: row; /* Ensure horizontal layout */
}

.admin-badge {
    background: #ff4444;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap; /* Prevent wrapping */
    flex-shrink: 0; /* Don't shrink the badge */
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-logout {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue-light);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-logout {
    background: var(--error);
    color: var(--text-primary);
}

.btn-logout:hover {
    background: var(--accent-rose);
}

.btn-primary.large, .btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* No padding for guest main content */
.main-content-guest {
    padding: 0;
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-logo {
    height: 3.5rem;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    color: currentColor;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    color: #e0e0e0;
}

/* Cards */
.welcome-card, .auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.auth-card {
    max-width: 400px;
}

.welcome-card h2, .auth-header h2 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.user-role {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.admin-section, .user-section {
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid #00d4ff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.placeholder-content {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #ffc107;
}

/* Auth Page Container */
.auth-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-content {
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-header h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.auth-header i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0;
}

.auth-tab {
    padding: 0.75rem 2rem;
    border: none;
    background: var(--text-muted);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.auth-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.auth-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.auth-tab.active,
.auth-tab:hover {
    background: var(--primary-blue);
}

/* Auth Forms */
.auth-forms {
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

/* Forms */
.auth-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
}

.auth-form h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-form-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue-light);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.auth-submit-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.auth-form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
}

.auth-form-footer p {
    color: var(--text-muted);
    margin: 0;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--primary-blue-light);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    transition: color 0.2s ease;
}

.auth-link-btn:hover {
    color: var(--primary-blue);
}

/* Auth Benefits */
.auth-benefits {
    text-align: center;
    margin-top: 3rem;
}

.auth-benefits h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

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

.benefit-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.benefit-card:nth-child(2) i {
    color: var(--accent-green);
}

.benefit-card:nth-child(3) i {
    color: var(--accent-red);
}

.benefit-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-error {
    background: rgba(225, 29, 72, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

/* Error Messages */
.error-message {
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    color: var(--error);
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    color: #28a745;
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements small {
    color: #b0b0b0;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Error field highlighting */
.error-field {
    border-color: #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1) !important;
}

.error-field:focus {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2) !important;
}

.highlight-requirements {
    background-color: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.highlight-requirements small {
    color: #ff4444 !important;
    font-weight: 500;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: #b0b0b0;
}

.auth-footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.demo-credentials {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.demo-credentials h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

/* Auth Prompt */
.auth-prompt {
    text-align: center;
    color: white;
}

.auth-prompt h2 {
    margin-bottom: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Features Section */
.features-section {
    background: rgba(0, 212, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
    text-decoration: none;
    color: inherit;
}

.feature-card i {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #b0b0b0;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
    padding: 2rem 0 1rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 1.5rem;
    width: auto;
    color: currentColor;
    flex-shrink: 0;
}

.footer-bottom-text {
    flex: 1;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-blue-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-primary);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-bottom p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--text-muted);
}

/* Navigation Hamburger Menu */
.nav-hamburger {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    user-select: none;
}

.nav-hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-hamburger i {
    color: #e0e0e0;
    font-size: 1.2rem;
}

/* Admin Menu (Red Button) */
.nav-admin-menu {
    background: var(--error);
    margin-right: 0.5rem;
}

.nav-admin-menu:hover {
    background: #c41738;
}

.nav-admin-menu i {
    color: white;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: none; /* Hide border when collapsed */
    border-radius: 8px;
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown.expanded {
    max-height: 80vh;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Show border when expanded */
    overflow-y: auto; /* Enable scrolling when content exceeds height */
    overflow-x: visible; /* Allow submenu to show outside parent */
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-dropdown-item:hover {
    background-color: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.nav-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.nav-dropdown-form {
    display: block;
    margin: 0;
    padding: 0;
}

.nav-logout-btn {
    font-family: inherit;
}

.nav-dropdown-item-disabled {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: default;
    font-size: 0.9rem;
    opacity: 0.6;
    position: relative;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    transition: background-color 0.3s ease;
}

.nav-dropdown-item-disabled i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* Admin Submenu Styles */
.nav-dropdown-submenu {
    position: relative;
}

.nav-submenu-trigger {
    cursor: pointer;
    position: relative;
    padding-left: 0.75rem; /* Reduce left padding since arrow is now on left */
}

.nav-submenu-trigger:hover {
    background-color: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

/* Add visual indicator when submenu is open */
.nav-dropdown-submenu:hover .nav-submenu-trigger {
    background-color: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.submenu-arrow {
    margin-right: 0.25rem; /* Space between arrow and icon */
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    width: 12px;
    text-align: center;
}

/* Admin submenu positioning - show inline below Admin item */
.nav-dropdown-submenu .nav-submenu {
    display: none;
    width: 100%;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

/* Alternative: Position below on smaller screens */
@media (max-width: 768px) {
    .nav-dropdown-submenu .nav-submenu {
        position: relative !important;
        right: auto !important;
        left: 0 !important;
        top: 0 !important;
        margin-top: 0.5rem !important;
        margin-right: 0 !important;
        transform: translateY(-10px) !important;
        width: 100% !important;
    }

    .nav-dropdown-submenu:hover .nav-submenu {
        transform: translateY(0);
    }

    .nav-dropdown-submenu:hover .submenu-arrow {
        transform: rotate(-180deg); /* Point down on mobile */
    }
}

.nav-dropdown-submenu:hover .nav-submenu {
    display: block;
}

.nav-dropdown-submenu:hover .submenu-arrow {
    transform: rotate(90deg); /* Point down when open */
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    font-size: 0.9rem;
}

.nav-submenu-item:hover {
    background-color: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-left-color: #00d4ff;
    padding-left: 1.2rem; /* Slight indent on hover */
}

.nav-submenu-item i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

/* User Avatar */
.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: border-color 0.3s ease;
    flex-shrink: 0; /* Don't shrink the avatar */
}

/* User icon fallback (when no avatar image) */
.nav-links .user-info .fas.fa-user-astronaut {
    font-size: 1.2rem;
    color: #00d4ff;
    width: 24px;
    text-align: center;
    flex-shrink: 0; /* Don't shrink the icon */
}

.user-avatar:hover {
    border-color: #00d4ff;
}

/* Admin User Management */
/* Legacy admin-container class - use .page-container instead */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Legacy admin-header class - use .page-header instead */
.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.admin-header p {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.filter-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.filter-group label {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.filter-group select option {
    background-color: #1a1a2e;
    color: #fff;
}

.filter-group select:focus {
    outline: none;
    border-color: #00d4ff;
}

.filter-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
}

.filter-group input:focus {
    outline: none;
    border-color: #00d4ff;
}

.filter-group input::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

.users-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.users-table-container::-webkit-scrollbar {
    height: 8px;
}

.users-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

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

.users-table thead {
    background: rgba(0, 212, 255, 0.1);
}

.users-table th {
    padding: 1rem;
    text-align: left;
    color: #00d4ff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    vertical-align: middle;
}

.user-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.profile-cell {
    width: 60px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: border-color 0.3s ease;
}

.user-avatar-small:hover {
    border-color: #00d4ff;
}

.user-icon-small {
    font-size: 1.5rem;
    color: #00d4ff;
    opacity: 0.7;
}

.username-cell {
    min-width: 120px;
}

.email-cell {
    min-width: 200px;
    font-family: monospace;
    font-size: 0.9rem;
}

.role-cell {
    min-width: 100px;
}

.role-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.role-select option {
    background-color: #1a1a2e;
    color: #fff;
}

.role-select:focus {
    outline: none;
    border-color: #00d4ff;
}

.status-cell {
    min-width: 120px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Grid Queue Styles */
.grid-queue-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.grid-queue-table th,
.grid-queue-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-queue-table th {
    background: rgba(0, 212, 255, 0.1);
    font-weight: 600;
    color: #00d4ff;
}

.grid-queue-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.select-column {
    width: 50px;
}

.name-column {
    width: 200px;
}

.source-column {
    width: 120px;
}

.characteristics-column {
    width: 180px;
}

.validation-column {
    width: 100px;
}

.issues-column {
    width: 150px;
}

.date-column {
    width: 100px;
}

.actions-column {
    width: 120px;
}

.grid-name {
    font-weight: 600;
    cursor: pointer;
    color: #00d4ff;
}

.grid-name:hover {
    text-decoration: underline;
}

.grid-filename {
    font-size: 0.85rem;
    color: #ccc;
    font-family: monospace;
}

.source-badge {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.characteristics {
    font-size: 0.9rem;
}

.base-mva {
    font-size: 0.8rem;
    color: #ccc;
}

.validation-score {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.validation-high {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.validation-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.validation-low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.issues-text {
    font-size: 0.85rem;
    color: #fbbf24;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    color: #00d4ff;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.filter-group label {
    color: #ccc;
    font-size: 0.9rem;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    padding: 0.5rem;
}

.bulk-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 0;
}

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

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.grid-count {
    color: #ccc;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #00d4ff;
    margin: 0;
}

.modal-close {
    color: #ccc;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.grid-details .detail-section {
    margin-bottom: 2rem;
}

.grid-details .detail-section h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.detail-item label {
    color: #ccc;
    font-weight: 500;
}

.detail-item span,
.detail-item a {
    color: #ffffff;
    text-align: right;
}

.detail-item a {
    color: #00d4ff;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-approved {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Job status badges */
.status-queued {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-running {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-cancelled {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

#rejection-reason {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    padding: 0.75rem;
    font-family: inherit;
    resize: vertical;
}

#rejection-reason::placeholder {
    color: #ccc;
}

/* Success/Error Button States */
.btn-success {
    background: #22c55e;
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Grid Queue Responsive */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .bulk-actions {
        margin-left: 0;
        justify-content: center;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .grid-queue-table {
        font-size: 0.85rem;
    }

    .grid-queue-table th,
    .grid-queue-table td {
        padding: 0.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

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

    .detail-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .detail-item span,
    .detail-item a {
        text-align: left;
    }
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-inactive {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-denied {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.created-cell {
    min-width: 100px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.actions-cell {
    min-width: 120px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.btn-approve {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.btn-approve:hover {
    background: rgba(40, 167, 69, 0.3);
}

.btn-deny {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-deny:hover {
    background: rgba(220, 53, 69, 0.3);
}

.btn-deactivate {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-deactivate:hover {
    background: rgba(255, 193, 7, 0.3);
}

.btn-activate {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.btn-activate:hover {
    background: rgba(40, 167, 69, 0.3);
}

/* Job action buttons */
.btn-view {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.btn-view:hover {
    background: rgba(23, 162, 184, 0.3);
}

.btn-cancel {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-cancel:hover {
    background: rgba(220, 53, 69, 0.3);
}

.btn-retry {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.btn-retry:hover {
    background: rgba(108, 117, 125, 0.3);
}

.btn-delete {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-delete:hover {
    background: rgba(220, 53, 69, 0.3);
}

/* Universal admin stats styling - consistent dark theme across all admin pages */
/* Legacy admin-stats class combined with new .stats-grid */
.admin-stats,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stats .stat-card,
.stats-grid .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.admin-stats .stat-card:hover,
.stats-grid .stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

.admin-stats .stat-card i,
.stats-grid .stat-card i,
.admin-stats .stat-icon,
.stats-grid .stat-icon {
    font-size: 2rem;
    color: #00d4ff;
    min-width: 2rem;
}

.admin-stats .stat-content,
.stats-grid .stat-content {
    display: flex;
    flex-direction: column;
}

.admin-stats .stat-number,
.stats-grid .stat-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.admin-stats .stat-label,
.stats-grid .stat-content p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
}

/* Backend Management Styles */
.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.backends-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 2rem;
    /* Scrollbar styling for webkit browsers */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.backends-table-container::-webkit-scrollbar {
    height: 8px;
}

.backends-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.backends-table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.backends-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.backends-table {
    width: 100%;
    min-width: 1000px; /* Ensure table doesn't get too compressed */
    border-collapse: collapse;
}

.backends-table thead {
    background: rgba(0, 212, 255, 0.1);
}

.backends-table th,
.backends-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.backends-table th {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.backends-table td {
    color: #e0e0e0;
    font-size: 0.85rem;
}

.backend-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.name-cell {
    min-width: 200px;
}

.backend-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.backend-name strong {
    color: #ffffff;
}

.default-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.backend-description {
    color: #b0b0b0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.type-cell {
    min-width: 100px;
}

.backend-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.backend-type-cpu {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.backend-type-gpu {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.backend-type-cuda-q {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.backend-type-qiskit {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.backend-type-ibmq {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-cell {
    min-width: 120px;
}

.capabilities-cell,
.limits-cell {
    min-width: 100px;
}

.capability-item,
.limit-item,
.cost-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.capability-item i,
.limit-item i,
.cost-item i {
    width: 12px;
    color: #00d4ff;
    opacity: 0.7;
}

.cost-cell {
    min-width: 120px;
}

.priority-cell {
    text-align: center;
}

.priority-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

.priority-1, .priority-2, .priority-3 {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.priority-4, .priority-5, .priority-6 {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.priority-7, .priority-8, .priority-9, .priority-10 {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.actions-cell {
    min-width: 180px;
}

.action-buttons {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 0.3rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.btn-edit {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-edit:hover {
    background: rgba(0, 212, 255, 0.3);
}

.btn-pause {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-pause:hover {
    background: rgba(255, 193, 7, 0.3);
}

.btn-default {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-default:hover {
    background: rgba(255, 193, 7, 0.3);
}

.btn-quotas {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.btn-quotas:hover {
    background: rgba(138, 43, 226, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    margin: 2% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #00d4ff;
    margin: 0;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
}

.form-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section h4 {
    color: #00d4ff;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

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

/* Quota Management Styles */
.modal-large .modal-content {
    max-width: 90vw;
    width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.quota-backend-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quota-backend-info h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.quota-backend-limits {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.limit-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.limit-info strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.limit-info span {
    color: #cccccc;
    font-size: 0.85rem;
}

.quota-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quota-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.quota-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.quota-table th,
.quota-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.quota-table th {
    font-weight: 600;
    color: #00d4ff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quota-table td {
    background: rgba(255, 255, 255, 0.02);
}

.quota-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.user-info small {
    color: #cccccc;
    font-size: 0.75rem;
}

.usage-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.usage-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.usage-fill[style*="100%"] {
    background: linear-gradient(90deg, #ff4444, #cc3333);
}

.usage-text {
    color: #cccccc;
    font-size: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.text-success {
    color: #28a745 !important;
}

.text-muted {
    color: #6c757d !important;
}

.btn-reset {
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: #ffffff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #ff6600, #e55a00);
    transform: translateY(-1px);
}

.form-note {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    font-size: 0.9rem;
}

.form-note i {
    font-size: 1rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }

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

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .welcome-card, .auth-card {
    animation: fadeIn 0.6s ease-out;
}

/* Glow Effects */
.nav-brand:hover {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Value Proposition Section */
.value-prop-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.value-prop-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.value-prop-content h2 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-logo {
    height: 2rem;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
    color: currentColor;
}

.hero-logo {
    height: 2.5rem;
    vertical-align: middle;
    margin-right: 1rem;
    color: currentColor;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem 0;
}

.stat-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-card h3 {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-card p {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Problem Statistics */
.problem-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.problem-stats .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.problem-stats .stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-stats .stat-card:nth-child(1) i {
    color: var(--primary-blue);
}

.problem-stats .stat-card:nth-child(2) i {
    color: #9b59b6;
}

.problem-stats .stat-card:nth-child(3) i {
    color: #f39c12;
}

.problem-stats .stat-card:nth-child(4) i {
    color: #e74c3c;
}

.problem-stats .stat-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.problem-stats .stat-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

/* Solution Features */
.solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.solution-item:hover {
    background: rgba(0, 212, 255, 0.05);
}

.solution-item i {
    color: #00d4ff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.solution-item span {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Logo Adaptive Styling - removed fixed color to allow context adaptation */

.hero-title {
    color: #ffffff; /* White logos on dark background */
}

.value-prop-content h2 {
    color: #00d4ff; /* Cyan logos in value prop section */
}

/* Ensure logos work on light backgrounds too */
/* Removed light theme override - keeping all logos white for consistency */

/* Settings Page */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.settings-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header {
    text-align: center;
    margin-bottom: 3rem;
}

.settings-header h1 {
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.settings-header p {
    color: #b0b0b0;
    font-size: 1.1rem;
}

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

.settings-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card {
    padding: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.current-image {
    display: flex;
    justify-content: center;
}

.profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00d4ff;
}

.default-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 3px solid #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 2rem;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
}

.info-item i {
    color: #00d4ff;
    width: 20px;
    text-align: center;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-item strong {
    color: #ffffff;
    font-weight: 600;
}

.info-item span {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.role-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.role-admin {
    background: #ff4444;
    color: white;
}

.role-user {
    background: #00d4ff;
    color: #000000;
}

.danger-zone {
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.danger-zone h3 {
    color: #ff4444;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-zone p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.btn-danger {
    background: #ff4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    color: #22c55e;
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-container {
        padding: 1rem;
    }

    .settings-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Enhanced Navigation Styles */
.brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-link:hover {
    color: #00a8cc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #00d4ff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Content */
.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}


.nav-main {
    display: flex;
    gap: 2rem;
}

.nav-section {
    position: relative;
}

.nav-section-title {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.nav-link.active {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.nav-link.admin-link {
    color: #ff6b6b;
}

.nav-link.admin-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8e8e;
}

.nav-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Submenu */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-section:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-section:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-sublink:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

/* User Navigation */
.nav-user {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: #ffffff;
}

.user-role {
    font-size: 0.75rem;
    color: #888;
    text-transform: capitalize;
}

.user-menu-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-info.active .user-menu-arrow {
    transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.user-menu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.user-menu-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.logout-btn:hover {
    color: #ff6b6b;
}

.notification-badge {
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: auto;
}

/* Guest Navigation */
.nav-guest {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    justify-content: space-between;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Mobile Responsive Navigation */
@media (max-width: 1024px) {
    .nav-main {
        gap: 1rem;
    }

    .nav-section-title {
        display: none;
    }

    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        display: none;
    }

    .nav-section:hover .nav-submenu {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-content.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-main {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .nav-section {
        width: 100%;
    }

    .nav-section-title {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.75rem 0;
        justify-content: space-between;
    }

    .nav-submenu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 6px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-guest {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .auth-buttons {
        justify-content: center;
    }

    .user-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 1rem;
    }
}

/* Navigation Container Adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .navbar {
        position: relative;
    }

    .nav-links .user-info {
        gap: 0.375rem; /* Slightly smaller gap on mobile */
        font-size: 0.9rem; /* Slightly smaller text */
    }

    .admin-badge {
        font-size: 0.6rem; /* Smaller badge on mobile */
        padding: 0.15rem 0.4rem;
    }
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    margin-bottom: 2rem;
}

.welcome-section {
    /* No flex needed - now in vertical layout */
}

.dashboard-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-title i {
    color: #00d4ff;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

.dashboard-stat-card i {
    font-size: 2rem;
    color: #00d4ff;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.25rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.section-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: #00d4ff;
}

.section-header p {
    color: #888;
    font-size: 1rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.action-card i {
    font-size: 2.5rem;
    color: #00d4ff;
}

.action-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
}

.action-card p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
}

.action-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.action-status.coming-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.activity-item.empty-state {
    justify-content: center;
    padding: 2rem;
    color: #888;
    text-align: center;
}

.activity-item i {
    color: #00d4ff;
    font-size: 1.2rem;
}

.activity-content h4 {
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.activity-content p {
    color: #888;
    margin: 0;
    font-size: 0.9rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h3 i {
    color: #00d4ff;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.status-indicator {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-indicator.online {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-indicator.coming-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-indicator.maintenance {
    background: rgba(255, 153, 0, 0.2);
    color: #ff9900;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notification-item i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.notification-content h4 {
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.notification-content p {
    color: #888;
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
}

.notification-content small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.resource-link i {
    color: #00d4ff;
    width: 16px;
    text-align: center;
}

/* Dashboard Responsive Design */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        grid-row: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        margin-bottom: 1.5rem;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-stats {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-stat-card {
        min-width: 100%;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .nav-guest {
        justify-content: center;
    }

    .auth-buttons {
        justify-content: center;
    }
}

/* Disabled Link Styles */
.nav-link-disabled {
    opacity: 0.6;
    cursor: default;
    position: relative;
}

.nav-link-disabled:hover {
    background: none !important;
    color: #e0e0e0 !important;
}

.coming-soon-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: auto;
}

.action-card-disabled {
    opacity: 0.7;
    cursor: default;
}

.action-card-disabled:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: none !important;
}

.user-menu-disabled {
    opacity: 0.6;
    cursor: default;
}

.user-menu-disabled:hover {
    background: none !important;
    color: #e0e0e0 !important;
}

.user-menu-disabled .coming-soon-badge {
    margin-left: auto;
    font-size: 0.6rem;
}

.footer-link-disabled {
    color: #888;
    cursor: default;
    padding: 0.25rem 0;
    display: block;
}

.footer-link-disabled small {
    color: var(--text-muted);
    font-style: italic;
}

.resource-link-disabled {
    opacity: 0.6;
    cursor: default;
}

.resource-link-disabled:hover {
    background: none !important;
    color: #e0e0e0 !important;
}

.resource-link-disabled small {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-style: italic;
    margin-left: auto;
}

/* ========================================
   STANDARDIZED FILTER CONTROLS
   ======================================== */

/* Filter Controls Container */
.filter-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Filter Group */
.filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    /* No min-width - size to content */
}

/* Filter Group Labels */
.filter-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Filter Inputs and Selects */
.filter-input, .filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    min-width: 250px;
    max-width: none !important;
    width: auto !important;
    height: 42px;  /* Fixed height for consistency */
}

.filter-select {
    min-width: 150px;
}

/* Fix dropdown options to be readable (browser native dropdowns use white bg) */
.filter-select option {
    background-color: #1a1a2e;
    color: #fff;
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-input:focus, .filter-select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
    outline: none;
}

/* Filter Buttons */
.filter-btn {
    width: 100%; /* Use full width of container for equal sizing */
    height: 42px;  /* Match input height */
    padding: 0 0.5rem; /* Reduce padding to fit text */
    margin: 0;  /* Remove extra margins */
    font-size: 0.85rem; /* Slightly smaller font to fit better */
    /* Ensure consistent blue styling across all pages */
    background: transparent !important;
    color: var(--primary-blue-light) !important;
    border: 2px solid var(--primary-blue) !important;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text if any */
}

.filter-btn:hover {
    background: var(--primary-blue) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Reset Button Styling - same as filter-btn */
.reset-btn {
    min-width: 120px;
    height: 42px;  /* Match input height */
    padding: 0 1rem;
    margin: 0;  /* Remove extra margins */
}

/* Filter Button Group - dedicated container for Clear Filters and Refresh buttons */
.filter-button-group {
    display: flex !important;
    flex-direction: row !important; /* Horizontal layout */
    gap: 0.5rem !important; /* Space between buttons */
    align-items: flex-end !important; /* Align buttons to bottom (with input fields) */
    margin-left: auto !important; /* Push to right side */
    flex-shrink: 0 !important; /* Don't shrink */
    padding-top: 1.2rem !important; /* Align with top of inputs (account for label height) */
}

/* Buttons inside filter-button-group */
.filter-button-group button {
    min-width: 130px !important; /* Minimum button width */
    height: 38px !important; /* Match input height */
    white-space: nowrap !important; /* Don't wrap text */
    padding: 0 1rem !important;
}

/* Legacy: filter-group that contains buttons (fallback) */
.filter-group:has(button) {
    flex-direction: row !important; /* Horizontal layout */
    gap: 0.5rem !important; /* Space between buttons */
    align-items: flex-end !important; /* Align buttons to bottom */
    margin-left: auto !important; /* Push to right side */
    width: auto !important; /* Auto width to fit buttons */
    flex-shrink: 0 !important; /* Don't shrink */
    padding-top: 1.2rem !important; /* Align with inputs */
}

/* Buttons inside filter-group (legacy) */
.filter-group:has(button) button {
    min-width: 130px !important; /* Minimum button width */
    height: 38px !important; /* Match input height */
    white-space: nowrap !important; /* Don't wrap text */
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    .filter-input, .filter-select {
        min-width: auto;
        width: 100%;
    }

    .filter-button-group {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        padding-top: 0 !important;
        width: 100% !important;
        flex-direction: row !important; /* Keep horizontal on mobile */
        justify-content: stretch !important;
    }

    .filter-button-group button {
        flex: 1 !important; /* Equal width buttons */
        min-width: auto !important;
    }

    .filter-group:has(button) {
        margin-left: 0 !important;
        padding-top: 0 !important;
        width: 100% !important;
        flex-direction: row !important;
    }

    .filter-btn, .reset-btn {
        flex: 1;
        min-width: auto;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    /* Very small mobile devices */
    .problems-container,
    .library-container,
    .auth-page-container {
        padding: 1rem !important;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .auth-tab {
        width: 200px;
        border-radius: 8px !important;
    }

    /* Stat cards - stack vertically on very small screens */
    .problem-stats,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Reduce stat card padding on mobile */
    .stat-card {
        padding: 1.5rem !important;
    }

    .stat-card h3 {
        font-size: 1.5rem !important;
    }

    /* Auth forms - reduce padding */
    .auth-form {
        padding: 1.5rem !important;
    }

    /* Grid library controls - stack vertically */
    .library-controls > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    /* Navigation improvements */
    .nav-brand span {
        display: none;
    }

    .user-info {
        font-size: 0.8rem !important;
    }

    /* Footer improvements */
    .footer-bottom-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    /* Grid library improvements */
    .library-controls > div:first-child {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    /* Grid cards - better mobile layout */
    .grid-card > div:first-child {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .grid-card > div:first-child > div:last-child {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    /* Problems page improvements */
    .problems-header h1 {
        font-size: 2rem !important;
    }

    .problems-header p {
        font-size: 1rem !important;
    }

    /* Auth improvements */
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Dashboard improvements */
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Tablet improvements */
/* Lead text styles for footer pages */
.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========================================
   UNIVERSAL ADMIN TABLE STANDARDS
   Prevents unreadable text and ensures consistency
   ======================================== */

/* Universal admin table container standards */
.admin-container table,
.admin-container .table-container,
.users-table-container,
.backends-table-container,
.jobs-table-container,
.grids-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    margin: 2rem 0;
}

/* Universal scrollbar styling for all admin tables */
.admin-container table::-webkit-scrollbar,
.users-table-container::-webkit-scrollbar,
.backends-table-container::-webkit-scrollbar,
.jobs-table-container::-webkit-scrollbar,
.grids-table-container::-webkit-scrollbar {
    height: 8px;
}

.admin-container table::-webkit-scrollbar-track,
.users-table-container::-webkit-scrollbar-track,
.backends-table-container::-webkit-scrollbar-track,
.jobs-table-container::-webkit-scrollbar-track,
.grids-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.admin-container table::-webkit-scrollbar-thumb,
.users-table-container::-webkit-scrollbar-thumb,
.backends-table-container::-webkit-scrollbar-thumb,
.jobs-table-container::-webkit-scrollbar-thumb,
.grids-table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.admin-container table::-webkit-scrollbar-thumb:hover,
.users-table-container::-webkit-scrollbar-thumb:hover,
.backends-table-container::-webkit-scrollbar-thumb:hover,
.jobs-table-container::-webkit-scrollbar-thumb:hover,
.grids-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Universal table styling to ensure readability */
.admin-container table,
.users-table,
.backends-table,
.jobs-table,
.grids-table,
.data-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

/* Universal table header styling */
.admin-container table thead,
.users-table thead,
.backends-table thead,
.jobs-table thead,
.grids-table thead,
.data-table thead {
    background: rgba(0, 212, 255, 0.1);
}

/* Universal table cell styling with READABLE COLORS */
.admin-container table th,
.admin-container table td,
.users-table th,
.users-table td,
.backends-table th,
.backends-table td,
.jobs-table th,
.jobs-table td,
.grids-table th,
.grids-table td,
.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Universal table header text - ALWAYS READABLE */
.admin-container table th,
.users-table th,
.backends-table th,
.jobs-table th,
.grids-table th,
.data-table th {
    color: #00d4ff !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Universal table cell text - ALWAYS READABLE */
.admin-container table td,
.users-table td,
.backends-table td,
.jobs-table td,
.grids-table td,
.data-table td {
    color: #e0e0e0 !important;
    font-size: 0.85rem;
}

/* Universal table row hover */
.admin-container table tr:hover,
.users-table tr:hover,
.backends-table tr:hover,
.jobs-table tr:hover,
.grids-table tr:hover,
.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* CRITICAL: Override any styles that might cause unreadable text */
.admin-container table td *,
.users-table td *,
.backends-table td *,
.jobs-table td *,
.grids-table td *,
.data-table td * {
    color: inherit !important;
}

/* CRITICAL: Never allow dark gray text (#666) in admin tables */
.admin-container table,
.users-table-container,
.backends-table-container,
.jobs-table-container,
.grids-table-container {
    color: var(--text-primary);
}

.admin-container table *[style*="color: #666"],
.admin-container table *[style*="color:#666"],
.users-table *[style*="color: #666"],
.users-table *[style*="color:#666"],
.backends-table *[style*="color: #666"],
.backends-table *[style*="color:#666"],
.jobs-table *[style*="color: #666"],
.jobs-table *[style*="color:#666"],
.grids-table *[style*="color: #666"],
.grids-table *[style*="color:#666"] {
    color: var(--text-muted) !important;
}

/* Loading and no-data states - ALWAYS READABLE */
.loading-row,
.no-data {
    text-align: center;
    color: var(--text-muted) !important;
    font-style: italic;
    padding: 2rem;
}

/* Special elements in tables - ensure readability */
.admin-container .status-badge,
.users-table .status-badge,
.backends-table .status-badge,
.jobs-table .status-badge,
.grids-table .status-badge {
    color: inherit !important;
}

/* Action buttons in tables */
.admin-container .action-buttons button,
.users-table .action-buttons button,
.backends-table .action-buttons button,
.jobs-table .action-buttons button,
.grids-table .action-buttons button {
    color: var(--text-primary) !important;
}

/* END UNIVERSAL ADMIN TABLE STANDARDS */

/* API Key Management Styles */
.api-keys-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
}

.api-keys-intro h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.usage-example {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
}

.usage-example h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.code-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre;
}

.security-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(241, 158, 11, 0.1);
    border: 1px solid rgba(241, 158, 11, 0.3);
    border-radius: 6px;
    color: var(--accent-amber);
}

.security-note i {
    margin-right: 0.5rem;
}

/* Create API Key Section */
.create-api-key-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
}

.create-api-key-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Scopes Container */
.scopes-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 1rem;
    background: var(--bg-secondary);
}

.scope-item {
    margin-bottom: 0.75rem;
}

.scope-item:last-child {
    margin-bottom: 0;
}

.scope-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.scope-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.scope-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.scope-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.scope-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* API Keys Table */
.api-keys-table {
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.api-keys-table .table-header {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-keys-table .table-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border-primary);
    transition: background-color 0.2s;
}

.api-keys-table .table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.api-keys-table .col-name strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.api-keys-table .col-name small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.scopes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.scope-tag {
    background: var(--primary-blue);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.api-keys-table .col-created small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: var(--success);
    color: white;
}

.status-inactive {
    background: var(--text-muted);
    color: white;
}

.status-expired {
    background: var(--error);
    color: white;
}

.col-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.loading-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.loading-state i {
    margin-right: 0.5rem;
}

/* API Key Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

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

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

/* API Key Secret Display */
.api-key-secret {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.5rem;
}

.key-warning {
    background: rgba(241, 158, 11, 0.1);
    border: 1px solid rgba(241, 158, 11, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-amber);
}

.key-warning i {
    margin-right: 0.5rem;
}

.key-display {
    margin: 1.5rem 0;
}

.key-display label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.key-value {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 1rem;
}

.key-value code {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    word-break: break-all;
    background: none;
    border: none;
    padding: 0;
}

.copy-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary-blue-light);
}

.copy-btn i {
    margin-right: 0.5rem;
}

.key-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.key-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.key-info strong {
    color: var(--text-primary);
}

/* Responsive Design for API Keys */
@media (max-width: 1024px) {
    .api-keys-table .table-header,
    .api-keys-table .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .api-keys-table .table-header > div,
    .api-keys-table .table-row > div {
        padding: 0.5rem 0;
    }

    .api-keys-table .table-header > div::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: var(--text-primary);
    }

    .scopes-list {
        margin-top: 0.5rem;
    }

    .col-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .key-value {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .copy-btn {
        align-self: flex-start;
    }
}

/* Contact Page Styles */
.contact-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-page-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-content section {
    margin-bottom: 3rem;
}

.contact-content h2 {
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.contact-content h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-content ul {
    margin-left: 1rem;
}

.contact-content li {
    margin-bottom: 0.5rem;
}

.contact-content a {
    color: #3498db;
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

/* Partnership Highlight Section */
.partnership-highlight {
    background: linear-gradient(135deg, #76b900, #4a7c00);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.partnership-highlight h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.partnership-highlight p {
    margin: 0;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-card h3 i {
    margin-right: 0.5rem;
}

.contact-card h3 i.fa-envelope {
    color: #3498db;
}

.contact-card h3 i.fa-handshake {
    color: #27ae60;
}

.contact-card h3 i.fa-tools {
    color: #e67e22;
}

.contact-card h3 i.fa-shield-alt {
    color: #e74c3c;
}

.contact-card h3 i.fa-graduation-cap {
    color: #9b59b6;
}

.contact-card h3 i.fa-newspaper {
    color: #34495e;
}

.contact-card p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-card p:last-child {
    margin: 0;
}

/* Response Times Section */
.response-times-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.response-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.response-time-item h4 {
    margin-bottom: 0.5rem;
}

.response-time-item h4.critical {
    color: #e74c3c;
}

.response-time-item h4.technical {
    color: #f39c12;
}

.response-time-item h4.business {
    color: #27ae60;
}

.response-time-item h4.general {
    color: #3498db;
}

.response-time-item p {
    color: #495057;
    margin: 0;
    font-size: 0.9rem;
}

/* Leadership Section */
.leadership-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.leader-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.leader-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.leader-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.leader-card .leader-title {
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.leader-card .leader-description {
    color: #495057;
    margin: 0;
    font-size: 0.9rem;
}

.leadership-note {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Getting Started Section */
.getting-started {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.getting-started h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.getting-started-step h4 {
    margin-bottom: 0.5rem;
}

.getting-started-step h4.step-demo {
    color: #3498db;
}

.getting-started-step h4.step-trial {
    color: #27ae60;
}

.getting-started-step h4.step-partnership {
    color: #e67e22;
}

.getting-started-step p {
    color: #495057;
    margin: 0;
    font-size: 0.9rem;
}

.getting-started-cta {
    text-align: center;
    margin-top: 2rem;
}

.getting-started-cta p {
    color: #495057;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-btn.demo {
    background: #3498db;
}

.cta-btn.demo:hover {
    background: #2980b9;
}

.cta-btn.sales {
    background: #27ae60;
}

.cta-btn.sales:hover {
    background: #229954;
}

.cta-btn.partnerships {
    background: #e67e22;
}

.cta-btn.partnerships:hover {
    background: #d35400;
}

/* Analytics Page Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    min-width: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar-container {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 12px;
}

.progress-bar.success {
    background: var(--success);
}

.progress-bar.info {
    background: var(--info);
}

.progress-bar.warning {
    background: var(--warning);
}

.progress-bar.danger {
    background: var(--error);
}

.progress-value {
    min-width: 50px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 600;
}

.domain-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.domain-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.domain-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.domain-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid var(--border-primary);
}

.list-item-label {
    color: var(--text-secondary);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--accent-cyan);
    color: white;
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--error);
}

.section-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.admin-stats.compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-stats .stat-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.admin-stats .stat-detail.success {
    color: var(--success);
}

/* Admin Badge Menu */
.admin-badge-menu {
    position: relative;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.admin-badge-menu:hover {
    background: transparent;
}

.admin-badge-menu .admin-badge {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.admin-badge-menu .admin-badge:hover {
    background: #cc3333;
}

/* Admin Quick Links */
.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-link-card i {
    font-size: 2rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.quick-link-content {
    flex: 1;
}

.quick-link-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-link-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .admin-quick-links {
        grid-template-columns: 1fr;
    }
}
