/* --- BVSUSA Portal Master Theme --- */

:root {
    --portal-navy: #1e293b;
    --portal-slate: #334155;
    --portal-red: #ef4444;
    --portal-gold: #fbbf24;
    --portal-bg: #f8fafc;
    --portal-white: #ffffff;
    --portal-green: #10b981;
    --portal-blue: #0d6efd;
}

/* 1. Override Body for the App Feel */
body {
    background-color: var(--portal-bg) !important;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--portal-slate) !important;
}

/* --- The Management Console (Sidebar/Menu) --- */
.bvs-console {
    background-color: var(--portal-navy) !important;
    color: var(--portal-white) !important;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(30, 41, 59, 0.2);
}

.bvs-console h6 {
    color: var(--portal-gold) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

/* Dark mode menu buttons */
.console-btn {
    background: rgba(255,255,255,0.08) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.console-btn:hover {
    background: var(--portal-red) !important;
    color: var(--portal-white) !important;
    transform: translateX(8px);
}

/* --- UI Cards & Data Containers --- */
.card {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    border-radius: 15px !important;
}

.card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 25px !important;
    font-weight: 700;
}

.stat-card { 
    cursor: pointer; 
    transition: all 0.2s ease; 
    border-radius: 1.25rem !important; 
    border: none !important; 
}

.stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important; 
    filter: brightness(1.05); 
}

/* --- Tables --- */
.table thead th {
    background-color: #f8fafc;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    padding: 15px 25px;
}

.table tbody td { padding: 18px 25px; border-bottom: 1px solid #f1f5f9; }

/* --- Admin / Portal Action Buttons --- */
.btn-console { 
    text-align: left; 
    padding: 0.85rem 1.2rem; 
    border: none; 
    font-size: 0.95rem; 
    transition: all 0.2s ease-in-out; 
    border-radius: 0.8rem !important; 
    font-weight: 500; 
    display: block; 
    width: 100%; 
    text-decoration: none; 
    margin-bottom: 10px;
    background-color: #f8f9fa; 
    color: #333;
}

/* THE SAFFRON HOVER FIX */
.btn-console:hover,
.btn-success.btn-console:hover, 
.btn-danger.btn-console:hover,
.btn-primary.btn-console:hover,
.btn-warning.btn-console:hover { 
    transform: translateX(8px); 
    background-color: #FF9933 !important; /* Saffron */
    color: #000000 !important;           
    font-weight: 800 !important;          
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

/* Keep text white for specific colored buttons until hover */
.btn-success.btn-console, .btn-danger.btn-console, .btn-primary.btn-console {
    color: #ffffff;
}

.btn-saffron {
    background-color: #FF9933 !important;
    color: #000 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-saffron:hover {
    background-color: #e68a00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.4);
    font-weight: bold;
}

/* --- Role-Based Mobile Switcher Styles --- */
.icon-box { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; }
.bg-primary.bg-opacity-10 { background-color: rgba(13, 110, 253, 0.1) !important; }
.bg-danger.bg-opacity-10 { background-color: rgba(239, 68, 68, 0.1) !important; }

/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    body { padding-bottom: 90px !important; } /* Space for FAB */
    
    .console-btn { padding: 16px; font-size: 1rem; }
    .console-btn:hover { transform: none; }

    .mobile-dropdown-sheet {
        position: fixed !important; bottom: 85px !important; right: 15px !important; 
        left: 15px !important; width: auto !important; border-radius: 24px !important;
    }

    .pulse-button { animation: pulse-gold 2s infinite; }
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}