/* ==========================================
   RIDE ME CENTRAL ADMIN - STYLESHEET
   Dark Glassmorphism Theme (Gold & Obsidian)
   ========================================== */

:root {
    --bg-dark: #07080C;
    --bg-surface: #10121A;
    --card-glass: rgba(20, 22, 32, 0.78);
    --card-glass-hover: rgba(28, 31, 44, 0.88);
    --card-border: rgba(255, 184, 0, 0.18);
    --card-border-gold: rgba(255, 184, 0, 0.5);

    --gold-primary: #FFB800;
    --gold-hover: #E6A500;
    --gold-light: #FFCF4D;
    --gold-glow: rgba(255, 184, 0, 0.35);

    --whatsapp-green: #25D366;
    --accent-red: #FF3B30;
    --accent-blue: #0A84FF;
    --accent-green: #30D158;

    --text-main: #F4F5F8;
    --text-muted: #9BA1B0;
    --text-dark: #12131A;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
.text-gold { color: var(--gold-primary) !important; }
.text-center { text-align: center; }
.margin-top-md { margin-top: 1.25rem; }
.margin-bottom-lg { margin-bottom: 1.5rem; }

/* Login Modal Overlay */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(5, 6, 9, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    max-width: 440px;
    width: 100%;
    border: 1px solid var(--card-border-gold);
    box-shadow: 0 0 50px rgba(255, 184, 0, 0.25);
    background: rgba(18, 20, 30, 0.92);
}

.login-header {
    margin-bottom: 1.75rem;
}

.login-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.login-error-msg {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin: 1rem 0;
    text-align: center;
}

.credentials-hint-box {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--text-muted);
}

.code-badge {
    background: rgba(255, 184, 0, 0.15);
    color: var(--gold-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 8, 12, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 184, 0, 0.2);
    padding: 0.85rem 1.5rem;
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge {
    font-size: 0.7rem;
    background: rgba(255, 184, 0, 0.2);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.country-filter-pills {
    display: flex;
    gap: 0.5rem;
}

.c-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.c-pill:hover {
    background: rgba(255, 184, 0, 0.15);
    color: var(--text-main);
}

.c-pill.active {
    background: var(--gold-primary);
    color: var(--text-dark);
    border-color: var(--gold-primary);
}

/* Glass Panel */
.glass-panel {
    background: var(--card-glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.main-content { flex: 1; }

.section-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-title-box {
    margin-bottom: 2rem;
}

.admin-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
}

.m-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-yellow { background: rgba(255, 184, 0, 0.15); color: var(--gold-primary); }
.icon-green { background: rgba(48, 209, 88, 0.15); color: var(--accent-green); }
.icon-blue { background: rgba(10, 132, 255, 0.15); color: var(--accent-blue); }
.icon-gold { background: rgba(255, 207, 77, 0.2); color: var(--gold-light); }

.m-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: #FFF;
}

.m-subvalue {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* Admin Subtabs */
.admin-tabs-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.admin-tab-btn.active {
    background: var(--gold-primary);
    color: var(--text-dark);
    border-color: var(--gold-primary);
}

.admin-subpanel { display: none; }
.admin-subpanel.active { display: block; }

.table-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

input[type="text"], input[type="password"], select {
    background: rgba(12, 14, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: #FFF;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.table-responsive { overflow-x: auto; }

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.custom-table th {
    background: rgba(12, 14, 22, 0.9);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

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

/* Country Cards */
.country-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.country-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--card-border-gold);
}

.c-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.c-flag { font-size: 2rem; }
.c-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.btn-primary-gold {
    background: linear-gradient(135deg, #FFB800 0%, #E6A500 100%);
    color: #12131A;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-block { width: 100%; }

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; }
.btn-danger { background: rgba(255, 59, 48, 0.2); color: var(--accent-red); border: 1px solid var(--accent-red); }

/* Status Badges */
.status-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pending { background: rgba(255, 184, 0, 0.2); color: var(--gold-primary); border: 1px solid var(--gold-primary); }
.status-approved { background: rgba(48, 209, 88, 0.2); color: var(--accent-green); border: 1px solid var(--accent-green); }
.status-rejected { background: rgba(255, 59, 48, 0.2); color: var(--accent-red); border: 1px solid var(--accent-red); }

/* Footer */
.footer {
    background: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-logo { width: 48px; height: 48px; }
.footer-title { font-family: var(--font-heading); font-weight: 900; color: var(--gold-primary); }
.footer-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(20, 22, 32, 0.95);
    border: 1px solid var(--gold-primary);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .metrics-grid, .country-cards-grid { grid-template-columns: 1fr; }
}

/* 2FA Apple Styling */
.step-2fa-badge {
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.setup-2fa-box {
    margin-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.btn-setup-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 0.4rem;
    transition: color 0.2s ease;
}

.btn-setup-toggle:hover {
    color: var(--gold-primary);
}

.setup-2fa-content {
    background: rgba(10, 12, 18, 0.9);
    border: 1px dashed var(--card-border-gold);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.75rem;
    text-align: center;
}

.setup-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.qr-img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gold-primary);
    background: white;
    padding: 4px;
}

.code-badge-large {
    background: rgba(255, 184, 0, 0.2);
    color: var(--gold-primary);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
    font-family: monospace;
}

