@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #000066;
    --primary-dark: #000044;
    --secondary: #FFA600;
    --secondary-hover: #ffb733;
    --text-color: #eeeeee;
    /* Light text for black bg */
    --text-muted: #aaaaaa;
    --bg-gradient-start: #111111;
    /* Black theme start */
    --bg-gradient-end: #000000;
    /* Black theme end */
    --glass-bg: rgba(30, 30, 30, 0.6);
    /* Dark glass for other elements */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --sidebar-width: 260px;
    --card-bg: var(--glass-bg);
    --card-border: var(--glass-border);
    --card-shadow: var(--glass-shadow);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ... (keep other structural styles same) ... */

    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    color: #1e293b !important;
    margin-bottom: 24px;
}
.main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content label,
.top-bar h1, .top-bar h2, .card h1, .card h2, .card h3, .card h4, .card h5 {
    color: #000066 !important;
    font-weight: 800 !important;
}
.main-content table, .card table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #334155 !important;
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    margin-top: 10px;
}
.main-content table th, .card table th {
    background: #ffffff !important;
    color: #000066 !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 14px 16px !important;
    text-align: left;
}
.main-content table td, .card table td {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 16px !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    background: #ffffff !important;
}
.main-content table tr:hover td, .card table tr:hover td {
    background: #f8fafc !important;
}
.main-content input, .main-content select, .main-content textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 8px !important;
}
.main-content input:focus, .main-content select:focus, .main-content textarea:focus {
    border-color: #000066 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,0,102,0.1) !important;
}

/* Update App Card to explicitly use WHITE background and DARK text */
.app-card-white {
    background: #ffffff !important;
    /* Force white */
    border: 1px solid #e0e0e0;
    color: #333333 !important;
    /* Force dark text inside cards */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary);
}

.app-card-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Ensure headings/text inside white app cards are dark */
.app-card-white h3,
.app-card-white p,
.app-card-white .app-status {
    color: #333333;
}

.sidebar {
    background: #050505;
    /* Deep dark for sidebar */
    border-right: 1px solid #222;
    /* ... other props */
}

/* Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
}
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #000066;
    --primary-dark: #000044;
    --secondary: #FFA600;
    --secondary-hover: #ffb733;
    --text-color: #eeeeee;
    /* Light text for black bg */
    --text-muted: #aaaaaa;
    --bg-gradient-start: #111111;
    /* Black theme start */
    --bg-gradient-end: #000000;
    /* Black theme end */
    --glass-bg: rgba(30, 30, 30, 0.6);
    /* Dark glass for other elements */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --sidebar-width: 260px;
    --card-bg: var(--glass-bg);
    --card-border: var(--glass-border);
    --card-shadow: var(--glass-shadow);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ... (keep other structural styles same) ... */

/* Update App Card to explicitly use WHITE background and DARK text */
.app-card-white {
    background: #ffffff !important;
    /* Force white */
    border: 1px solid #e0e0e0;
    color: #333333 !important;
    /* Force dark text inside cards */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary);
}

.app-card-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Ensure headings/text inside white app cards are dark */
.app-card-white h3,
.app-card-white p,
.app-card-white .app-status {
    color: #333333;
}

/* Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ── UNIFIED CASJOE BOS EXECUTIVE SIDEBAR STYLE (MATCHING /dashboard) ── */
.sidebar .nav-link {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.sidebar .nav-link:hover {
    transform: translateX(5px) !important;
    background: rgba(255, 166, 0, 0.1) !important;
    color: var(--secondary) !important;
}
.sidebar .nav-link.active {
    box-shadow: inset 4px 0 0 var(--secondary) !important;
}

.sidebar {
    width: 270px !important;
    min-width: 270px !important;
    background: rgba(3, 4, 20, 0.85) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-right: 1px solid rgba(255, 166, 0, 0.25) !important;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.4) !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    z-index: 1000 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sidebar .brand {
    padding: 24px 20px !important;
    margin: 0 0 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.sidebar ul, .sidebar .nav-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
}

select option {
    background-color: #ffffff;
    color: #000000;
}

/* Main Content Layout (Desktop) */
@media screen and (min-width: 992px) {
    .main-content, .erp-main, .cori-container {
        margin-left: 270px !important;
        width: calc(100% - 270px) !important;
        min-width: calc(100% - 270px) !important;
        flex: 1 !important;
        box-sizing: border-box !important;
    }
}

/* --- UI/UX MICRO-ANIMATIONS & POLISH --- */
.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.btn, .btn-primary, .btn-secondary, button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.btn:active, .btn-primary:active, .btn-secondary:active, button:active {
    transform: scale(0.96) !important;
}

.card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(255, 166, 0, 0.15), var(--glass-shadow) !important;
    border-color: rgba(255, 166, 0, 0.4) !important;
}

.sidebar-nav li a {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.sidebar-nav li a:hover {
    transform: translateX(5px) !important;
    background: rgba(255, 166, 0, 0.1) !important;
    color: var(--secondary) !important;
}
.sidebar-nav li.active a {
    box-shadow: inset 4px 0 0 var(--secondary) !important;
}

input, select, textarea {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 166, 0, 0.25) !important;
    border-color: var(--secondary) !important;
}

/* --- COMPREHENSIVE ERP MOBILE RESPONSIVE ENGINE --- */
@media screen and (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .app-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: -280px !important;
        width: 270px !important;
        height: 100vh !important;
        z-index: 10000 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    }
    .sidebar.active {
        left: 0 !important;
        display: flex !important;
    }
    .main-content, .cori-container, .erp-main, .main {
        margin-left: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: calc(75px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        flex: 1 !important;
    }
    .card, .stat-card, .erp-card, .table-container, .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    table, .data-table {
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Prevent iOS auto-zoom on input focus */
    input, select, textarea, .form-control {
        font-size: 16px !important;
    }
}

