@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0B4F8A;
    --dark-blue: #06345C;
    --gold: #D8A735;
    --light-gold: #F5D77A;
    --white: #ffffff;
    --light-bg: #F5F8FB;
    --soft-blue: #EAF4FC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --danger: #DC3545;
    --success: #198754;
    --shadow-sm: 0 8px 20px rgba(6, 52, 92, 0.08);
    --shadow-md: 0 15px 35px rgba(6, 52, 92, 0.14);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.main-wrapper {
    min-height: 100vh;
}

/* Buttons */
.btn-brand {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark-blue);
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-brand {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Navbar */
.brand-navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}

.brand-logo {
    height: 52px;
    width: auto;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 12px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 52, 92, 0.95), rgba(11, 79, 138, 0.85)),
        radial-gradient(circle at top right, rgba(216, 167, 53, 0.35), transparent 35%);
    color: var(--white);
    padding: 110px 0 90px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--light-gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero-title span {
    color: var(--light-gold);
}

.hero-text {
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    max-width: 620px;
    margin-bottom: 32px;
}

/* Cards */
.brand-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: auto;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.icon-card {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 18px;
}

.brand-card:hover .icon-card {
    background: var(--gold);
    color: var(--dark-blue);
}

/* Sections */
.section-padding {
    padding: 90px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 44px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(6, 52, 92, 0.96), rgba(11, 79, 138, 0.88)),
        radial-gradient(circle at top right, rgba(245, 215, 122, 0.28), transparent 32%);
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.auth-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auth-side {
    background:
        linear-gradient(160deg, rgba(6, 52, 92, 0.96), rgba(11, 79, 138, 0.92));
    color: var(--white);
    padding: 50px;
    height: 100%;
}

.auth-side h2 {
    font-weight: 800;
}

.auth-side p {
    color: rgba(255,255,255,0.85);
}

.auth-form {
    padding: 50px;
}

.form-label {
    font-weight: 700;
    color: var(--dark-blue);
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(11, 79, 138, 0.12);
}

/* Dashboard Cards */
.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--gold);
}

.stat-card h6 {
    color: var(--text-muted);
    font-weight: 700;
}

.stat-card h3 {
    color: var(--dark-blue);
    font-weight: 800;
}

/* Tables */
.table-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    overflow-x: auto;
}

.table thead th {
    background: var(--soft-blue);
    color: var(--dark-blue);
    border: none;
}

.badge-brand {
    background: var(--soft-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    padding: 7px 12px;
}

/* Footer */
.site-footer {
    background: var(--dark-blue);
    color: rgba(255,255,255,0.82);
    padding: 55px 0 25px;
}

.site-footer h5 {
    color: var(--white);
    font-weight: 800;
}

.site-footer a:hover {
    color: var(--light-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 35px;
    padding-top: 20px;
    font-size: 14px;
}

/* Utilities */
.text-brand {
    color: var(--primary-blue);
}

.text-gold {
    color: var(--gold);
}

.bg-soft-blue {
    background: var(--soft-blue);
}

.rounded-brand {
    border-radius: var(--radius);
}

.shadow-brand {
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding: 85px 0 70px;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-side {
        padding: 35px;
        text-align: center;
    }

    .auth-form {
        padding: 35px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 65px 0;
    }

    .brand-card {
        padding: 22px;
    }

    .auth-form {
        padding: 28px 22px;
    }

    .auth-side {
        padding: 30px 22px;
    }

    .btn-brand,
    .btn-gold,
    .btn-outline-brand {
        width: 100%;
        text-align: center;
    }
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 14px 22px;
}

.app-clock {
    font-weight: 800;
    color: var(--dark-blue);
    text-align: center;
}

.app-clock small {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    font-weight: 600;
    padding: 10px 16px;
}

.dropdown-item:hover {
    background: var(--soft-blue);
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .app-topbar {
        gap: 12px;
    }

    .app-clock {
        order: 3;
        width: 100%;
        font-size: 14px;
    }
}

.sidebar-logo-sticky {
    position: sticky;
    top: 18px;
    z-index: 20;
    background: #ffffff;
    padding-bottom: 12px;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 14px 22px;
}

.app-clock {
    font-weight: 800;
    color: var(--dark-blue);
    text-align: center;
}

.app-clock small {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    font-weight: 600;
    padding: 10px 16px;
}

.dropdown-item:hover {
    background: var(--soft-blue);
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .app-topbar {
        gap: 12px;
    }

    .app-clock {
        order: 3;
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .auth-page {
        padding: 25px 12px;
        align-items: flex-start;
    }

    .auth-card {
        border-radius: 20px;
        width: 100%;
    }

    .auth-side {
        display: none !important;
    }

    .auth-form {
        padding: 32px 22px;
    }

    .auth-card .row {
        display: block;
    }

    .auth-card .col-lg-5,
    .auth-card .col-lg-6,
    .auth-card .col-lg-7 {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================
   MOBILE SIDEBAR
========================================= */

.sidebar-panel {
    transition: all .3s ease;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 991px) {

    .sidebar-panel {
        position: fixed;
        left: -300px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1055;
        overflow-y: auto;
        background: #fff;
        transition: all .3s ease;
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

    .sidebar-panel.show {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1050;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-panel{
    background:#fff;
}

.sidebar-overlay{
    display:none;
}

@media (max-width:991px){

    .sidebar-panel{
        position:fixed;
        left:-300px;
        top:0;
        width:280px;
        height:100vh;
        z-index:1055;
        overflow-y:auto;
        transition:.3s ease;
        box-shadow:0 15px 35px rgba(0,0,0,.15);
    }

    .sidebar-panel.show{
        left:0;
    }

    .sidebar-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        z-index:1050;
        display:none;
    }

    .sidebar-overlay.show{
        display:block;
    }
}