/* === GLOBAL RESET === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f6f7fa;
}

/* === HEADER & TOPNAV === */
#topnav {
    background-color: #003366;
    color: #fff;
    padding: 0;
}

#header-sticky {
    position: relative;
    width: 100%;
    transition: box-shadow 0.2s ease;
}

    /* Fixed state */
    #header-sticky.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

.header {
    height: 60px;
    background: #EBEBEB;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo img {
    /*height: 36px;*/
    height: 45px;
}

.logo-text {
    display: flex;
    font-weight: bold;
    flex-direction: column; /* ensures top & bottom alignment */
    line-height: 1.2;
}


.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .nav a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }

/* === DROPDOWN MENU === */
.nav-item {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    min-width: 160px;
    z-index: 1100;
}

    .dropdown-menu a {
        padding: 10px 15px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

        .dropdown-menu a:last-child {
            border-bottom: none;
        }

        .dropdown-menu a:hover {
            background-color: #f5f5f5;
        }

.nav-item.show .dropdown-menu {
    display: flex;
}

/* === USER DROPDOWN === */
.user-dropdown {
    position: relative;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
}

    .user img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 1100;
}

    .user-menu a {
        padding: 10px 15px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

        .user-menu a:last-child {
            border-bottom: none;
        }

        .user-menu a:hover {
            background-color: #f5f5f5;
        }

.user-dropdown.show .user-menu {
    display: flex;
}

/* === SIDEBAR === */
.layout {
    display: flex;
    flex-direction: row;
    margin-top: 10px; /* header height */
    /*margin-top: 60px;*/ /* header height */
}

.sidebar {
    position: fixed;
    top: 100px; /* original position */
    left: 0;
    width: 250px;
    background-color: #003366;
    color: #fff;
    padding: 20px;
    height: calc(100vh - 100px); /* fixed height for scrolling */
    overflow-y: auto; /* enables vertical scrolling */
    transition: top 0.25s ease, transform 1.5s ease; /* combine transitions */
    z-index: 998;
}

    .sidebar h4 {
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 10px;
    }

    .sidebar a {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 5px;
    }

        .sidebar a:hover,
        .sidebar a.active {
            background-color: rgba(255,255,255,0.2);
        }

/* Footer fixed at bottom inside sidebar */
.sidebar-footer {
    position: sticky;
    bottom: 0;
    background: #003366;
    padding: 10px;
    font-size: 12px;
    text-align: center;
    color: #ccc;
}

@media (min-width: 768px) {
    .sidebar {
        top: 140px !important;
        height: calc(100vh - 140px);
    }
}

@media (min-width: 919px) {
    .sidebar {
        top: 100px !important;
        height: calc(100vh - 100px);
    }
}

/* When scrolled */
.sidebar.is-raised {
    top: 60px !important;
    height: calc(100vh - 60px);
}

/* Parent must be relative */
.sidebar-dropdown {
    position: relative;
}

/* Hide submenu by default */
.sidebar-submenu {
    display: none;
    padding-left: 20px;
}

/* Show submenu when parent has .show */
.sidebar-dropdown.show .sidebar-submenu {
    display: block;
}

/* Optional styling */
.sidebar-submenu a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
}




/* === MAIN CONTENT === */
.main {
    flex: 1;
    padding: 20px;
    min-height: 55dvh;
}

@media (min-width: 1010px) {
    .main {
        padding-left: 260px;
    }
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

    .card h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

    .card .value {
        font-size: 28px;
        font-weight: bold;
        color: #0d6efd;
        margin-top: 10px;
    }

/* === CHARTS === */
.chart-card {
    position: relative;
    min-height: 350px;
    padding: 20px 20px 40px;
    overflow: visible;
}

canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* === GRADIENT CARDS === */
.gradient-applicants {
    background: linear-gradient(135deg, #1c3c60, #375a7f);
}

.gradient-users {
    background: linear-gradient(135deg, #6bb9f0, #4a90e2);
}

.gradient-process {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.gradient-reports {
    background: linear-gradient(135deg, #e52d27, #ff6a5a);
}

.card .card-title,
.card .value {
    color: #fff !important;
}

/* === TABLES === */
.table th, .table td {
    vertical-align: middle;
    padding: 0.75rem;
}

.table-dark thead th {
    color: #ffc107;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.05);
}

/* === LOGIN PAGE === */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    /*  background: linear-gradient(135deg, #003366, #0d6efd);*/
    background: linear-gradient(135deg, #a8a9ad, #eef0f3);
    padding: 40px 0;
}

.login-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
}

    .login-card h3 {
        text-align: center;
        color: #003366;
        font-weight: 700;
        margin-bottom: 25px;
    }

.logo-area img {
    display: block;
    margin: 0 auto 20px;
    max-height: 60px;
}

.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #d0d7de;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
    }

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #d0d7de;
}

.btn-login {
    width: 100%;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-login:hover {
        background-color: #0044cc;
    }

@media(min-width: 1010px) {
    .footer, .terms-conditions {
        padding-left: 260px;
    }
}

.footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

/* === RESPONSIVE BEHAVIOR === */
.menu-toggle {
    display: none; /* hidden by default */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

    .menu-toggle i {
        font-size: 24px;
        color: #333;
        display: inline-block;
    }

/* Show toggle only on small screens */
@media (max-width: 1010px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 100px; /* original position */
        left: 0;
        width: 250px;
        background-color: #003366;
        color: #fff;
        padding: 20px;
        min-height: calc(100dvh - 100px);
        overflow-y: auto;
        z-index: 998;
        transform: translateX(-200%);
    }

        .sidebar.show {
            transform: translateX(0);
        }
}





/* === NAV MENU & SUBMENU (large screens only) === */
@media (min-width: 1010px) {
    .nav {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .nav-item {
        position: relative;
    }

    .dropdown-toggle {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        cursor: pointer;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        border-radius: 6px;
        display: none;
        flex-direction: column;
        min-width: 160px;
        z-index: 1000;
    }

        .dropdown-menu a {
            padding: 10px 15px;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            border-bottom: 1px solid #eee;
        }

            .dropdown-menu a:hover {
                background-color: #f5f5f5;
            }

            .dropdown-menu a:last-child {
                border-bottom: none;
            }

    .nav-item.show .dropdown-menu {
        display: flex;
    }

    /* Nav bar menu search */
    .nav-search {
        margin-top: 10px;
        padding-left: 20px;
    }

    .search-form {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        flex: 1;
        max-width: 300px;
    }

    .search-button {
        background-color: #0d6efd;
        color: #fff;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
    }

        .search-button i {
            font-size: 14px;
        }
}


.footer-row .col-list h3 {
    text-transform: uppercase;
    font-weight: bold; /* optional */
    margin-bottom: 10px; /* spacing between heading and list */
    color: #FF9933; /* match your footer style */
}



/* footer-note */

.footer-note {
    text-align: center;
    font-size: 15px;
    color: #ffffff;
    margin-top: 20px;
    /* padding: 10px 0;*/
    /* border-top: 1px solid #302756; */ /* optional separator line */
}


/* footer terms */

.terms {
    /* border-top: #302756 solid 1px;*/
    background-color: var(--color-blue5);
    font-size: 14px;
}

    .terms .container {
        display: flex;
        justify-content: center; /* centers the UL */
        align-items: center;
    }

    /* UL styling */
    .terms ul {
        padding: 16px 0;
        margin: 0;
        list-style: none;
    }

        /* LI styling */
        .terms ul li {
            text-align: center;
        }

            /* A tag styling */
            .terms ul li a {
                color: var(--color-white);
                text-decoration: none;
                display: inline-block;
            }


/* === CARD TABLE SIZE SMALLER === */

/* Reduce font size for table */ .table-smaller {
    font-size: 13px; /* adjust as needed */
}
    /* Reduce padding inside cells */

    .table-smaller th, .table-smaller td {
        padding: 4px 6px; /* tighter spacing */
    }
    /* Make images smaller */

    .table-smaller img {
        max-width: 80px; /* adjust photo size */
        height: auto;
    }


/* === TEXT BOX & LABEL SIZE SMALLER === */

/* Smaller labels */ .form-label-sm {
    font-size: 13px; /* smaller font */
    margin-bottom: 2px; /* tighter spacing */
}
/* Smaller textboxes */

.form-control-smaller {
    font-size: 13px; /* smaller text inside */
    height: 28px; /* reduce height */
    padding: 2px 6px; /* tighter padding */
}
/* Smaller buttons */

.btn-smaller {
    font-size: 13px;
    padding: 4px 8px;
}

/* === Header Caption === */

.caption-head {
    font-size: 22px; /* adjust size */
    color: #FF9933; /* adjust color */
    font-weight: bold; /* optional */
}






