/* Omni Global Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* Default fallback variables */
:root {
    --brand-primary: #38bdf8;
    --brand-light: #c0dcf8;
    --brand-dark: #0f172a;
    --slate-bg: #f8fafc;
}

/* Theme Overrides - These must be OUTSIDE :root to work on the body tag */
.theme-sky-blue { --brand-primary: #38bdf8; --brand-light: #c0dcf8; }
.theme-emerald  { --brand-primary: #10b981; --brand-light: #d1fae5; }
.theme-rose     { --brand-primary: #f43f5e; --brand-light: #ffe4e6; }
.theme-amber    { --brand-primary: #f59e0b; --brand-light: #fef3c7; }

body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--brand-light) !important; /* Soft white/slate */
}

/* Add a themed background utility if you want to use it on specific cards */
.bg-theme-light {
    background-color: var(--brand-light) !important;
    opacity: 0.2; /* Subtle tint */
}


/* Apply variables to dynamic elements */
.bg-sky { 
    background-color: var(--brand-primary) !important; 
    transition: background-color 0.4s ease;
}
.text-sky { color: var(--brand-primary) !important; }
.border-sky { border-color: var(--brand-primary) !important; }

/* Dashboard Login Background */
.login-bg {
    background-color: var(--brand-light);
    background-image: radial-gradient(var(--brand-primary) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

/* Menu items now follow the theme */
.menu-item-vibrant {
    color: var(--brand-primary) !important;
}
.menu-item-vibrant i {
    color: var(--brand-primary) !important;
}

/* Bottom Navigator following theme */
.nav-theme-bg {
    background-color: var(--brand-primary) !important;
    transition: background-color 0.4s ease;
}

.sidebar-gradient {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.bg-dark-blue { background-color: var(--dark-blue); }


/* Text Colors */
.text-dark-blue { color: var(--dark-blue); }

nav button.text-sky { 
    color: var(--brand-primary) !important; 
}
/* Components */
.active-nav {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--sky-blue);
}

.safe-area-bottom {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* Navigation Shadow */
.nav-shadow {
    shadow: 0 -10px 25px rgba(56, 189, 248, 0.2);
}

/* Custom Scrollbar for lengthy reports */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--sky-blue);
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: #334155; /* Slate 700 */
    font-weight: 500;
    transition: all 0.2s;
}

.menu-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 1rem;
    color: #94a3b8; /* Slate 400 */
}

.menu-item:hover {
    background-color: #f1f5f9; /* Slate 100 */
    color: #0ea5e9; /* Sky 500 */
}

.menu-item:hover i {
    color: #0ea5e9;
}

/* style.css additions */

.menu-item-dark {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    color: #cbd5e1; /* Slate 300 (Light Gray) */
    font-weight: 500;
    transition: all 0.2s;
}

.menu-item-dark i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #38bdf8; /* Sky Blue Icons */
}

.menu-item-dark:active, .menu-item-dark:hover {
    background-color: rgba(56, 189, 248, 0.1); /* Subtle Sky Blue Highlight */
    color: #ffffff; /* Pure white text on hover */
}

/* Ensure sub-headers stay distinct in the dark theme */
.bg-slate-900\/50 {
    background-color: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* style.css refinements */
/* Omni Global Stylesheet - Menu Fixes */

.menu-dark-container {
    background-color: #0f172a !important; /* Solid Dark Blue */
    border: 1px solid #1e293b;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Force vertical stacking */
    width: 280px !important;
}
.menu-dark-container:not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
}
/* Omni Global Stylesheet - Final Menu Rectification */

#userMenu {
    display: none; /* Crucial: Start hidden */
    color: var(--brand-primary) !important;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 12px 0;
    width: 250px;
    box-sizing: border-box;
    position: absolute;
    right: 0;
    top: 50px; /* Positions it below the avatar */
    border-radius: 1.5rem; /* 24px */
    z-index: 100;
}

/* 2. The Toggle Class: When this is added via JS, the menu shows */
#userMenu {
    display: none;
    color: var(--brand-primary) !important;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    width: 250px;
    box-sizing: border-box;
    position: absolute;
    right: 0;
    top: 50px; 
    border-radius: 1.5rem;
    z-index: 100;
}

 
#userMenu.show-menu {
    display: flex !important;
    flex-direction: column !important;
}

/* Reduced padding for tighter spacing */
.menu-item-vibrant {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 8px 20px; /* Reduced gap */
    color: #38bdf8;
    text-decoration: none;
    font-size: 13px; /* Slightly smaller for mobile */
    font-weight: 600;
    transition: background 0.2s;
}

.menu-item-vibrant i {
    color: #38bdf8;
    margin-right: 12px;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* Category Accordion Header */
.category-divider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 10px 20px 4px 20px;
    cursor: pointer;
}

/* Sub-menu container for accordion */
.submenu {
    display: none; /* Hidden by default */
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.02);
}

.submenu.open {
    display: flex !important;
}

.profile-input {
     width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem; /* Tighter corners */
    padding: 10px 15px; /* Reduced padding */
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
}

.profile-input:focus {
    border-color: var(--brand-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.profile-input-sm {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem; /* Tighter corners */
    padding: 10px 15px; /* Reduced padding */
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
}

/* Ensure the Submit Button stands out against white header */
header .bg-sky {
    background-color: var(--brand-primary) !important;
    color: white !important;
}
/* The Circle Container */
    .theme-bg {
        background-color:  var(--brand-primary) !important;
    }

    /* The Circle Container */
    .back-btn-circle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        transition: transform 0.1s ease;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .back-btn-circle:active {
        transform: scale(0.9);
    }

    /* Pure CSS Arrow - No External Dependencies */
    .css-left-arrow {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-left: 3px solid white;
        border-bottom: 3px solid white;
        transform: rotate(45deg);
        margin-left: 4px; /* Centers the weight of the arrow */
    }

    /* Red/Green Toggle Styling */
    .peer:checked ~ .toggle-bg {
        background-color: #10b981 !important; /* Emerald Green */
    }
    .toggle-bg {
        background-color: #ef4444 !important; /* Rose Red */
    }