/* Admin Dashboard Styles */

:root {
    --admin-primary: #ff6b35;
    --admin-secondary: #f7931e;
    --admin-success: #4caf50;
    --admin-warning: #ff9800;
    --admin-error: #f44336;
    --admin-bg: #f5f5f5;
    --admin-card-bg: #ffffff;
    --admin-text: #333333;
    --admin-text-light: #666666;
    --admin-border: #e0e0e0;
}

body {
    background-color: var(--admin-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.admin-container {
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--admin-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-title h1 {
    margin: 0;
    font-size: var(--font-size-5xl); /* 28px */
    color: var(--admin-text);
}

.admin-subtitle {
    margin: 5px 0 0 0;
    color: var(--admin-text-light);
    font-size: var(--font-size-base); /* 14px */
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-email {
    font-size: var(--font-size-base); /* 14px */
    color: var(--admin-text-light);
}

.admin-badge {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--font-size-xs); /* 12px */
    font-weight: 600;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--admin-card-bg);
    border-radius: 8px;
}

.loading-spinner {
    border: 4px solid var(--admin-border);
    border-top: 4px solid var(--admin-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--admin-card-bg);
    border-radius: 8px;
}

.error-state h2 {
    color: var(--admin-error);
    margin-bottom: 10px;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--admin-border);
    padding-bottom: 10px;
}

.admin-tabs .tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: var(--font-size-md); /* 15px */
    font-weight: 500;
    color: var(--admin-text-light);
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s;
}

.admin-tabs .tab:hover {
    background: var(--admin-bg);
    color: var(--admin-text);
}

.admin-tabs .tab.active {
    background: var(--admin-card-bg);
    color: var(--admin-primary);
    border-bottom: 3px solid var(--admin-primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--admin-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-header h2 {
    margin: 0;
    font-size: var(--font-size-2xl); /* 20px */
    color: var(--admin-text);
}

.tab-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: var(--font-size-base); /* 14px */
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: var(--font-size-base); /* 14px */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Select Inputs */
.select-run,
#filter-type,
#filter-status {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: var(--font-size-base); /* 14px */
    background: white;
    cursor: pointer;
}

.last-refresh {
    font-size: var(--font-size-xs); /* 12px */
    color: var(--admin-text-light);
}

/* Cards */
.card {
    background: var(--admin-card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 0 0 15px 0;
    font-size: var(--font-size-xl); /* 18px */
    color: var(--admin-text);
}

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

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: var(--admin-bg);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--admin-primary);
}

.stat-label {
    font-size: var(--font-size-xs); /* 12px */
    color: var(--admin-text-light);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: var(--font-size-4xl); /* 24px */
    font-weight: 600;
    color: var(--admin-text);
}

.stat-value.success {
    color: var(--admin-success);
}

.stat-value.warning {
    color: var(--admin-warning);
}

.stat-value.error {
    color: var(--admin-error);
}

/* Validation Run Item */
.validation-run-item {
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.validation-run-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.validation-run-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.validation-run-title {
    font-weight: 600;
    color: var(--admin-text);
}

.validation-run-time {
    font-size: var(--font-size-sm); /* 13px */
    color: var(--admin-text-light);
}

.validation-metrics {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.metric {
    font-size: var(--font-size-base); /* 14px */
}

.metric-label {
    color: var(--admin-text-light);
}

.metric-value {
    font-weight: 600;
    margin-left: 5px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: var(--font-size-xs); /* 12px */
    font-weight: 500;
}

.status-badge.deployed {
    background: #e8f5e9;
    color: var(--admin-success);
}

.status-badge.pending {
    background: #fff3e0;
    color: var(--admin-warning);
}

.status-badge.failed {
    background: #ffebee;
    color: var(--admin-error);
}

.status-badge.in-progress {
    background: #e3f2fd;
    color: #2196f3;
}

/* Lambda Status */
.lambda-list {
    display: grid;
    gap: 10px;
}

.lambda-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--admin-bg);
    border-radius: 6px;
    border-left: 4px solid var(--admin-success);
}

.lambda-item.error {
    border-left-color: var(--admin-error);
}

.lambda-item.warning {
    border-left-color: var(--admin-warning);
}

.lambda-name {
    font-weight: 500;
    color: var(--admin-text);
}

.lambda-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm); /* 13px */
    color: var(--admin-text-light);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--admin-success);
}

.status-indicator.error {
    background: var(--admin-error);
}

.status-indicator.warning {
    background: var(--admin-warning);
}

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

.modal-content {
    background: var(--admin-card-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    font-size: var(--font-size-2xl); /* 20px */
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-5xl); /* 28px */
    color: var(--admin-text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

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

/* Form */
.form-group {
    padding: 15px 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--admin-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: var(--font-size-base); /* 14px */
    font-family: inherit;
}

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

.modal-actions {
    padding: 20px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal Overlay (alternate class name for test persona modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-dialog {
    background: var(--admin-card-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #F5F5F5;
}

/* Monitoring Panels */
.monitoring-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    font-size: var(--font-size-2xl); /* 20px */
    font-weight: 600;
}

.panel-body {
    padding: 24px;
}

/* Status Badges for Monitoring */
.status-badge.status-success {
    background: #10b981;
    color: white;
}

.status-badge.status-warning {
    background: #f59e0b;
    color: white;
}

.status-badge.status-error {
    background: #ef4444;
    color: white;
}

.status-badge.status-gray {
    background: #6b7280;
    color: white;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item .stat-label {
    font-size: var(--font-size-base); /* 14px */
    color: #6b7280;
    font-weight: 500;
}

.stat-item .stat-value {
    font-size: var(--font-size-xl); /* 18px */
    font-weight: 600;
    color: #111827;
}

.stat-value.text-success {
    color: #10b981;
}

.stat-value.text-warning {
    color: #f59e0b;
}

.stat-value.text-error {
    color: #ef4444;
}

.stat-value.text-gray {
    color: #6b7280;
}

/* Test Results */
.test-results {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.test-result-details h4 {
    margin: 0 0 16px 0;
    font-size: var(--font-size-lg); /* 16px */
    color: #374151;
}

.result-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-label {
    font-size: var(--font-size-sm); /* 13px */
    color: #6b7280;
}

.result-value {
    font-size: var(--font-size-lg); /* 16px */
    font-weight: 600;
    color: #111827;
}

.result-message {
    margin: 0;
    padding: 12px;
    background: white;
    border-left: 3px solid #667eea;
    border-radius: 4px;
    font-size: var(--font-size-base); /* 14px */
    color: #374151;
}

/* Panel Actions */
.panel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.action-note {
    margin: 0;
    font-size: var(--font-size-sm); /* 13px */
    color: #6b7280;
    font-style: italic;
}

/* Button Link */
.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: var(--font-size-base); /* 14px */
    text-decoration: underline;
    padding: 0;
    margin-left: 8px;
}

.btn-link:hover {
    color: #764ba2;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tab-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .card-stats {
        grid-template-columns: 1fr;
    }

    .monitoring-stats {
        grid-template-columns: 1fr;
    }

    .result-stats {
        flex-direction: column;
        gap: 12px;
    }

    /* Fix 7: Weather mappings table mobile layout */
    #weather-rules-table {
        font-size: 11px;
    }
    #weather-rules-table th,
    #weather-rules-table td {
        padding: 6px 4px;
    }
    #weather-rules-table label {
        font-size: 10px;
    }
    #weather-rules-table input[type="text"] {
        width: 80px;
        font-size: 11px;
    }
}

/* Rate Limit Management Styles */
.user-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.user-filters input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    font-size: var(--font-size-base); /* 14px */
}

.user-filters select {
    padding: 10px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    font-size: var(--font-size-base); /* 14px */
    background-color: white;
    cursor: pointer;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.users-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--admin-border);
}

.users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--admin-text);
    font-size: var(--font-size-base); /* 14px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid var(--admin-border);
    font-size: var(--font-size-base); /* 14px */
    color: var(--admin-text);
}

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

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

.users-table code {
    font-family: 'Courier New', monospace;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: var(--font-size-xs); /* 12px */
}

.text-center {
    text-align: center !important;
}

.text-red {
    color: var(--admin-error) !important;
}

.text-green {
    color: var(--admin-success) !important;
}

.text-blue {
    color: #2196f3 !important;
}

.text-yellow {
    color: var(--admin-warning) !important;
}

.text-gray {
    color: var(--admin-text-light) !important;
}

/* Form Help Text */
.form-help {
    margin: 5px 0 0 0;
    font-size: var(--font-size-sm); /* 13px */
    color: var(--admin-text-light);
}

/* Status Badge Variants */
.status-badge.status-yellow {
    background-color: #fff3cd;
    color: #856404;
}

@media (max-width: 768px) {
    .user-filters {
        flex-direction: column;
    }

    .user-filters input[type="text"],
    .user-filters select {
        width: 100%;
        min-width: 100%;
    }

    .users-table {
        font-size: var(--font-size-xs); /* 12px */
    }

    .users-table th,
    .users-table td {
        padding: 10px 8px;
    }

    .users-table code {
        font-size: var(--font-size-xs); /* 10px */
    }
}

/* Toast notification animation */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* AdminTable component */
.admin-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.admin-table-search {
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 240px;
    outline: none;
    transition: border-color 0.2s;
}

.admin-table-search:focus {
    border-color: #1976D2;
}

.admin-table-count {
    font-size: 13px;
    color: #757575;
    white-space: nowrap;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.admin-table th {
    background: #F5F5F5;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    color: #555;
    border-bottom: 2px solid #E0E0E0;
    white-space: nowrap;
    user-select: none;
}

table.admin-table th .admin-table-sort-icon {
    font-size: 12px;
    color: #1976D2;
}

table.admin-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: middle;
}

table.admin-table tbody tr:hover {
    background: #FAFAFA;
}

.admin-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.admin-table-page-size select {
    padding: 4px 8px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 13px;
    margin: 0 4px;
}

.admin-table-page-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-table-page-nav button {
    padding: 4px 12px;
    font-size: 13px;
}

table.admin-table tbody tr.row-highlight {
    font-weight: 600;
    background: #F5F5F5;
}

/* Settings section filter buttons */
.settings-filter-btn.active {
    background: #1976D2;
    color: #fff;
    border-color: #1976D2;
}

.admin-table-page-info {
    font-size: 13px;
    color: #666;
    min-width: 100px;
    text-align: center;
}

/* Venue cache audit row highlights */
tr.audit-row-missing-both { background-color: #FFEBEE; }
tr.audit-row-missing-one { background-color: #FFF3E0; }

/* API Logs badges (extracted from admin.html) */
.provider-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.provider-badge.claude {
    background: #E3F2FD;
    color: #1976D2;
}

.provider-badge.google_geocoding,
.provider-badge.google_places,
.provider-badge.google_routes,
.provider-badge.google_photos {
    background: #FFF3E0;
    color: #F57C00;
}

.test-mode-badge {
    padding: 2px 6px;
    background: #FFF9C4;
    color: #F57F17;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

/* Users status badges (extracted from admin.html) */
.status-badge.status-active {
    background: #E8F5E9;
    color: #388E3C;
}

.status-badge.status-info {
    background: #E3F2FD;
    color: #1976D2;
}

/* Tier badges */
.tier-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tier-badge.tier-free {
    background: #F5F5F5;
    color: #757575;
}

.tier-badge.tier-explorer {
    background: #E3F2FD;
    color: #1976D2;
}

.tier-badge.tier-adventurer {
    background: #F3E5F5;
    color: #7B1FA2;
}

/* Icon button */
.btn-icon {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    color: #666;
    transition: background 0.2s, color 0.2s;
}

.btn-icon:hover {
    background: #E3F2FD;
    color: #1976D2;
}


/* ============================================
   Styles extracted from admin.html inline block
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #FAFAFA;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 24px 24px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 400;
    color: #212121;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero h1 .material-icons {
    color: #1976D2;
}

.hero p {
    font-size: 16px;
    color: #757575;
    font-weight: 300;
}

/* Content Container */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Loading & Error States */
.loading-state, .error-state {
    background: white;
    border-radius: 8px;
    padding: 48px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E3F2FD;
    border-top-color: #1976D2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.error-state h2 {
    font-size: 24px;
    color: #D32F2F;
    margin-bottom: 12px;
}

/* Tab Navigation */
.admin-tabs {
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-tabs .tab {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #616161;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tabs .tab:hover {
    background: #F5F5F5;
    color: #1976D2;
}

.admin-tabs .tab.active {
    background: #1976D2;
    color: white;
}

/* Subtab Navigation */
.admin-subtabs {
    background: #F5F5F5;
    border-radius: 4px;
    padding: 4px;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.admin-subtabs .subtab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #616161;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-subtabs .subtab:hover {
    background: #E0E0E0;
    color: #1976D2;
}

.admin-subtabs .subtab.active {
    background: white;
    color: #1976D2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tab Header */
.tab-header {
    background: white;
    border-radius: 8px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tab-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: #212121;
    margin: 0;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-link {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1976D2;
    color: white;
}

.btn-primary:hover {
    background: #1565C0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #E0E0E0;
    color: #424242;
}

.btn-secondary:hover {
    background: #BDBDBD;
}

.btn-link {
    background: transparent;
    color: #1976D2;
    padding: 10px 16px;
}

.btn-link:hover {
    background: #E3F2FD;
}

/* Select Inputs */
select, input[type="text"], input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background: white;
}

select:focus, input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* Settings Section Headers */
.settings-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E0E0E0;
}

.settings-section-header:first-of-type {
    margin-top: 0;
}

.settings-section-header .material-icons {
    color: #1976D2;
    font-size: 28px;
}

.settings-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #424242;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Monitoring Panels */
.monitoring-panel {
    background: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.panel-header {
    background: #1976D2;
    color: white;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.panel-header h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.panel-body {
    padding: 32px;
}

.panel-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.action-note {
    font-size: 13px;
    color: #757575;
    margin: 0;
}

/* Configuration Fields */
.config-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.config-field label {
    font-size: 12px;
    font-weight: 500;
    color: #616161;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.config-field input,
.config-field select {
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.config-field input:focus,
.config-field select:focus {
    outline: none;
    border-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.config-field input[type="number"] {
    width: 100%;
}

.field-hint {
    font-size: 11px;
    color: #9E9E9E;
    font-style: italic;
}

/* Category Toggle Item */
.category-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #FAFAFA;
    border-radius: 4px;
    border: 1px solid #E0E0E0;
}

.category-toggle-item label {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-toggle-item input[type="text"] {
    padding: 4px 8px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 12px;
    width: 120px;
}

/* Persona Card */
.persona-card {
    background: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.persona-card.active {
    border-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
    background: #E3F2FD;
}

.persona-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.persona-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.persona-card-header .active-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

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

.persona-card-actions button {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #E0E0E0;
    background: white;
    color: #616161;
    transition: all 0.2s;
}

.persona-card-actions button:hover {
    background: #F5F5F5;
    border-color: #BDBDBD;
}

.persona-card-actions button.btn-activate {
    background: #1976D2;
    border-color: #1976D2;
    color: white;
}

.persona-card-actions button.btn-activate:hover {
    background: #1565C0;
}

.persona-card-actions button.btn-delete {
    color: #D32F2F;
}

.persona-card-actions button.btn-delete:hover {
    background: #FFEBEE;
    border-color: #D32F2F;
}

.persona-description {
    font-size: 13px;
    color: #757575;
    margin-bottom: 12px;
}

.persona-weights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.weight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #E0E0E0;
}

.weight-item .weight-label {
    font-size: 10px;
    color: #9E9E9E;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.weight-item .weight-value {
    font-size: 16px;
    font-weight: 600;
    color: #1976D2;
}

/* Layer Toggle Item */
.layer-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FAFAFA;
    border-radius: 4px;
    border: 1px solid #E0E0E0;
}

.layer-toggle-item .layer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.layer-toggle-item .layer-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E3F2FD;
    border-radius: 4px;
    color: #1976D2;
    flex-shrink: 0;
}

.layer-toggle-item .layer-icon .material-icons {
    font-size: 18px;
}

.layer-toggle-item .layer-name {
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.layer-toggle-item .layer-description {
    font-size: 11px;
    color: #757575;
}

.layer-toggle-item .layer-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 8px;
}

.layer-toggle-item .layer-actions .btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}

.layer-toggle-item .layer-actions .btn-icon .material-icons {
    font-size: 16px;
}

/* Custom Layer Item */
.custom-layer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FFF3E0;
    border-radius: 4px;
    border: 1px solid #FFE0B2;
    margin-bottom: 8px;
}

.custom-layer-item .layer-info {
    display: flex;
    flex-direction: column;
}

.custom-layer-item .layer-name {
    font-weight: 500;
    color: #333;
}

.custom-layer-item .layer-meta {
    font-size: 11px;
    color: #757575;
}

.custom-layer-item .layer-actions {
    display: flex;
    gap: 8px;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.status-green {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-blue {
    background: #BBDEFB;
    color: #1565C0;
}

.status-gray {
    background: #E0E0E0;
    color: #616161;
}

.status-red {
    background: #FFCDD2;
    color: #C62828;
}

/* Tier Badges */
.tier-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.tier-demo {
    background: #EDE7F6;
    color: #512DA8;
}

.tier-free {
    background: #E8F5E9;
    color: #388E3C;
}

.tier-explorer {
    background: #E3F2FD;
    color: #1565C0;
}

.tier-adventurer {
    background: #FFF3E0;
    color: #E65100;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    color: #212121;
    font-weight: 500;
}

.text-gray {
    color: #9E9E9E !important;
}

.text-red {
    color: #D32F2F !important;
}

.text-green {
    color: #388E3C !important;
}

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

/* Test Results */
.test-results {
    background: #F5F5F5;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #616161;
    min-height: 60px;
}

/* User Filters */
.user-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.user-filters input[type="text"] {
    flex: 1;
    min-width: 250px;
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table thead {
    background: #F5F5F5;
}

.users-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #616161;
    border-bottom: 2px solid #E0E0E0;
}

.users-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #424242;
    border-bottom: 1px solid #F5F5F5;
}

.users-table tbody tr:hover {
    background: #FAFAFA;
}

/* Sortable table headers */
.sortable-table th[data-column] {
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
}

.sortable-table th[data-column]:hover {
    background: #EEEEEE;
}

.sortable-table th .sort-indicator {
    font-size: 12px;
    margin-left: 4px;
    color: #1976D2;
}

.table-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.table-filter-row input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 13px;
}

.table-filter-row input:focus {
    outline: none;
    border-color: #1976D2;
}

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

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.modal-header {
    background: #1976D2;
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal form {
    padding: 32px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #424242;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

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

.form-group input:disabled {
    background: #F5F5F5;
    color: #9E9E9E;
}

.form-help {
    font-size: 13px;
    color: #757575;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
}

.last-refresh {
    font-size: 13px;
    color: #757575;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.16);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 16px;
    font-weight: 500;
    color: #424242;
    margin: 20px 0 12px 0;
}

/* Card Stats */
.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-box .stat-label {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
}

.stat-box .stat-value {
    font-size: 24px;
    color: #212121;
    font-weight: 500;
}

.stat-box .stat-value.success {
    color: #388E3C;
}

.stat-box .stat-value.warning {
    color: #F57C00;
}

.stat-box .stat-value.error {
    color: #D32F2F;
}

/* Validation Run Items */
.validation-run-item {
    background: #FAFAFA;
    border-left: 4px solid #1976D2;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
}

.validation-run-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.validation-run-title {
    font-size: 15px;
    font-weight: 500;
    color: #212121;
}

.validation-run-time {
    font-size: 13px;
    color: #757575;
    margin-top: 4px;
}

.validation-metrics {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
}

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

.metric-label {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
}

.metric-value {
    font-size: 14px;
    color: #424242;
    font-weight: 500;
}

/* Status Badges - Extended */
.status-badge.deployed {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-badge.failed {
    background: #FFCDD2;
    color: #C62828;
}

.status-badge.pending {
    background: #FFF9C4;
    color: #F57F17;
}

.status-badge.in-progress {
    background: #BBDEFB;
    color: #1565C0;
}

/* Lambda List */
.lambda-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lambda-item {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #4CAF50;
}

.lambda-item.warning {
    border-left-color: #FF9800;
}

.lambda-item.error {
    border-left-color: #F44336;
}

.lambda-name {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
}

.lambda-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #757575;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
}

.status-indicator.warning {
    background: #FF9800;
}

.status-indicator.error {
    background: #F44336;
}

/* Venue Cards Grid */
.venue-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.venue-card {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #1976D2;
    transition: box-shadow 0.2s, transform 0.2s;
}

.venue-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.venue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.venue-card-name {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    margin: 0;
    flex: 1;
}

.venue-card-count {
    background: #1976D2;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
}

.venue-card-location {
    font-size: 14px;
    color: #757575;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.venue-card-location .material-icons {
    font-size: 16px;
}

.venue-card-personas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.persona-tag {
    background: #E3F2FD;
    color: #1565C0;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.persona-tag.family { background: #E8F5E9; color: #2E7D32; }
.persona-tag.luxury { background: #FFF3E0; color: #E65100; }
.persona-tag.backpacker { background: #F3E5F5; color: #7B1FA2; }
.persona-tag.retirees { background: #ECEFF1; color: #455A64; }
.persona-tag.young_adventurer { background: #FCE4EC; color: #C2185B; }

.venue-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
}

.venue-card-actions a {
    font-size: 13px;
    color: #1976D2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.venue-card-actions a:hover {
    text-decoration: underline;
}

.venue-card-actions .material-icons {
    font-size: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #757575;
}

.empty-state .material-icons {
    font-size: 64px;
    color: #E0E0E0;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    color: #424242;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Suggestion Chips for Cache Prewarm */
.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    color: #424242;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: #E3F2FD;
    border-color: #1976D2;
    color: #1565C0;
}

.suggestion-chip .material-icons {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .admin-tabs .tab {
        width: 100%;
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .monitoring-stats {
        grid-template-columns: 1fr;
    }

    .users-table {
        font-size: 12px;
    }

    .users-table th,
    .users-table td {
        padding: 8px;
    }
}

/* Weight Slider Styles for Persona Scoring */
.weight-slider-group {
    margin-bottom: 16px;
}

.weight-slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.weight-slider-group label span {
    font-weight: 600;
    color: #1976D2;
}

.weight-slider-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #E0E0E0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    margin: 10px 0;
}

.weight-slider-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1976D2;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: -6px;
}

.weight-slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1976D2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.weight-slider-group input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: #E0E0E0;
}

.weight-slider-group input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #E0E0E0;
}
/* Itinerary Review Styles */
.review-param-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.review-param-label {
    color: #666;
}
.review-param-value {
    font-weight: 500;
    color: #333;
    text-align: right;
    max-width: 180px;
}
.review-param-value.highlight {
    color: #667eea;
    font-weight: 600;
}
.review-factor-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}
.review-factor-name {
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 2px;
}
.review-factor-score {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.review-factor-bar {
    height: 3px;
    background: #dee2e6;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.review-factor-bar-fill {
    height: 100%;
    background: #1976D2;
}
.review-persona-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.review-persona-name {
    width: 120px;
    font-size: 12px;
    font-weight: 500;
}
.review-persona-bar-container {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.review-persona-bar {
    height: 100%;
    border-radius: 10px;
}
.review-persona-bar.inferred {
    background: #1976D2;
}
.review-persona-bar.other {
    background: #adb5bd;
}
.review-persona-value {
    width: 45px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
}
.review-day-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
}
.review-day-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #dee2e6;
}
.review-venue-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 4px;
}
.review-venue-slot {
    width: 60px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}
.review-venue-slot.breakfast { background: #ffeaa7; color: #b7791f; }
.review-venue-slot.morning { background: #81ecec; color: #00796b; }
.review-venue-slot.lunch { background: #fab1a0; color: #e74c3c; }
.review-venue-slot.afternoon { background: #74b9ff; color: #2980b9; }
.review-venue-slot.dinner { background: #a29bfe; color: #663399; }
.review-venue-slot.evening { background: #fd79a8; color: #c2185b; }
.review-venue-slot.nighttime { background: #636e72; color: white; }
.review-lodging-card {
    background: #1976D2;
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 200px;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 16px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #4CAF50;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(14px);
}
.toggle-switch input:disabled + .toggle-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

/* Stat cards layout */
.stats-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 180px;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Category badges for venue cache table */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}
.badge-restaurant {
    background: #FFEBEE;
    color: #C62828;
}
.badge-cafe {
    background: #FFF3E0;
    color: #E65100;
}
.badge-attraction {
    background: #E3F2FD;
    color: #1565C0;
}
.badge-museum {
    background: #F3E5F5;
    color: #7B1FA2;
}
.badge-bar {
    background: #E8F5E9;
    color: #2E7D32;
}
.badge-park {
    background: #F1F8E9;
    color: #558B2F;
}
.badge-hotel {
    background: #E0F2F1;
    color: #00695C;
}
.badge-shop {
    background: #FCE4EC;
    color: #AD1457;
}
.badge-default {
    background: #F5F5F5;
    color: #616161;
}

/* Contextual help system */
.help-icon {
    font-size: 14px !important;
    color: #BDBDBD;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
    transition: color 0.2s;
}

.help-icon:hover {
    color: #1976D2;
}

.help-popover {
    position: absolute;
    z-index: 10001;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 16px;
    width: 320px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #E0E0E0;
}

.help-popover-title {
    font-weight: 600;
    font-size: 14px;
    color: #212121;
    margin-bottom: 8px;
}

.help-popover-desc {
    color: #424242;
    margin-bottom: 10px;
}

.help-popover-section {
    color: #616161;
    font-size: 12px;
    margin-bottom: 6px;
}

.help-popover-section strong {
    color: #424242;
}
