/* =====================================================
   ROOT VARIABLES (Brand Colors)
===================================================== */
:root {
    --brand-dark: #00416A;
    --brand-blue: #2C6D9D;
    --brand-electric: #007bff;
    --brand-light: #00c6ff;
}

/* =====================================================
   GLOBAL
===================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width:768px) and (max-width:1024px) {
    html {
        font-size: 9px;
    }
}

body {
    padding-bottom: 60px;
    position: relative;
    background-color: #f0f2f5;
}

/* =====================================================
   LAYOUT
===================================================== */

.main {
    margin-top: 65px;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5;
    color: black;
    text-align: center;
    padding: 10px 0;
}

/* =====================================================
   LOGIN
===================================================== */

.login-card {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
    overflow: hidden;
}

.image-container {
    background: url('../Images/whitelogin.jpg') no-repeat center center;
    background-size: cover;
    min-height: 500px;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    background: linear-gradient(135deg,var(--brand-dark),var(--brand-blue)) !important;
    padding: 5px 0;
    border-bottom: 3px solid var(--brand-blue);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.navbar-brand {
    font-family: Cambria, Cochin, Georgia, Times, serif;
    font-size: 24px;
    font-weight: bolder;
    color: #fff;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    opacity: .8;
    padding: 8px 15px !important;
    transition: all .3s ease;
}

    .nav-link:hover {
        opacity: 1;
        color: var(--brand-light) !important;
        transform: translateY(-1px);
    }

    .nav-link.active {
        opacity: 1;
        background: rgba(255,255,255,.1);
        border-radius: 8px;
    }

/* =====================================================
   NAV TABS
===================================================== */

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

    .nav-tabs .nav-link {
        color: var(--brand-dark) !important;
        font-weight: 600;
    }

        .nav-tabs .nav-link:hover {
            color: var(--brand-blue) !important;
            background: rgba(44,109,157,.08);
            border-radius: 8px;
        }

        .nav-tabs .nav-link.active {
            color: var(--brand-blue) !important;
            font-weight: 700;
            border: none !important;
            border-bottom: 3px solid var(--brand-blue) !important;
            background: transparent !important;
        }

/* =====================================================
   DROPDOWN
===================================================== */

.dropdown-menu {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    padding: 12px;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0,65,106,.15);
    margin-top: 15px !important;
}

.dropdown-item {
    color: var(--brand-dark) !important;
    font-weight: 600;
    border-radius: 12px;
    margin: 4px 8px;
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid transparent;
    transition: all .3s ease;
}

    .dropdown-item:hover,
    .dropdown-item.active {
        background: rgba(44,109,157,.05) !important;
        color: var(--brand-blue) !important;
        padding-left: 28px;
        border: 1px solid rgba(44,109,157,.1);
    }

    .dropdown-item::before {
        content: "";
        position: absolute;
        left: 8px;
        width: 0;
        height: 20px;
        background: linear-gradient(var(--brand-electric),var(--brand-light));
        border-radius: 10px;
        transition: .3s;
        opacity: 0;
    }

    .dropdown-item:hover::before,
    .dropdown-item.active::before {
        width: 5px;
        opacity: 1;
    }

    /* ICONS */

    .dropdown-item i {
        width: 35px;
        height: 35px;
        background: #f8f9fa;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        color: var(--brand-dark);
    }

    .dropdown-item:hover i,
    .dropdown-item.active i {
        background: linear-gradient(135deg,var(--brand-dark),var(--brand-blue));
        color: #fff;
        box-shadow: 0 4px 10px rgba(44,109,157,.3);
    }

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
    background: linear-gradient(135deg,var(--brand-blue),var(--brand-dark)) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all .3s ease;
    text-transform: uppercase;
    font-size: .85rem;
}

    .btn-primary:hover {
        background: linear-gradient(135deg,#3a8cc9,var(--brand-blue)) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(44,109,157,.35);
    }

.btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #4a5568 !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 24px;
}

/* =====================================================
   CARDS
===================================================== */

.CardCustom {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,65,106,.08);
}

.CardHeaderCustom {
    background: linear-gradient(135deg,var(--brand-dark),var(--brand-blue)) !important;
    color: #fff !important;
    padding: .75rem 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-card {
    border: none;
    border-radius: .75rem;
    color: #fff;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

    .dashboard-card .icon {
        font-size: 2rem;
        opacity: .2;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

/* DASHBOARD COLORS */

.bg-gradient-blue {
    background: linear-gradient(135deg,#007bff,#00c6ff);
}

.bg-gradient-orange {
    background: linear-gradient(135deg,#fd7e14,#ffb347);
}

.bg-gradient-green {
    background: linear-gradient(135deg,#28a745,#a8e063);
}

.bg-gradient-purple {
    background: linear-gradient(135deg,#6f42c1,#b19cd9);
}

.page-container {
    animation: fadeInPage 0.4s ease-in-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-custom {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

    .table-custom thead {
        background: linear-gradient(135deg,#00416A,#2C6D9D);
        color: white;
    }

    .table-custom th {
        font-weight: 600;
        font-size: 14px;
        border: none;
    }

    .table-custom td {
        vertical-align: middle;
    }

    .table-custom tbody tr:hover {
        background-color: #f3f8fc;
    }

/* Chrome / Edge */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
    background: #2C6D9D;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #00416A;
    }


.dashboard-card {
    transition: all 0.3s ease;
}

    .dashboard-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }
