﻿body {
    overflow-x: hidden;
    background-color: #f4f6f9;
}
/* ===============================
           TOP NAVBAR
        =================================*/
.top-navbar {
    height: 60px;
    background: linear-gradient(90deg, #5b6bdc, #6f7ee8);
}

    .top-navbar .navbar-brand {
        font-weight: 600;
        font-size: 18px;
    }


/* ===============================
           SIDEBAR
        =================================*/
/* Sidebar base */
/* ================= SIDEBAR LAYOUT ================= */

/* ================= SIDEBAR LAYOUT ================= */

.sidebar {
    position: fixed;
    top: 56px; /* Start below topbar */
    left: 0;
    width: 250px;
    height: calc(100vh - 56px); /* Adjust height */
    overflow-y: auto;
    background: #f8f9fa;
    transition: all .3s;
    z-index: 1000;
}

/* Content area */
.content-wrapper {
    margin-left: 250px;
    margin-top: 56px; /* Prevent hiding under topbar */
    transition: all .3s;
}

/* Desktop collapsed sidebar */
.sidebar.collapsed {
    width: 75px;
}

    .sidebar.collapsed span {
        display: none;
    }

    .sidebar.collapsed .nav-link {
        justify-content: center;
    }

    .sidebar.collapsed + .content-wrapper {
        margin-left: 75px;
    }


/* ================= MAIN MENU STYLE ================= */

.sidebar > ul > li > a {
    font-weight: 600;
    padding: 10px 15px;
    border-left: 4px solid transparent;
    color: #333;
}

    /* Main menu hover */
    .sidebar > ul > li > a:hover {
        background: #e9f2ff;
        border-left: 4px solid #0d6efd;
        color: #0d6efd;
    }

/* ================= SUBMENU STYLE ================= */

.sidebar .collapse .nav-link {
    font-weight: 400;
    font-size: 0.9rem;
    padding-left: 35px;
    color: #555;
}

    /* Submenu hover */
    .sidebar .collapse .nav-link:hover {
        background: #f1f1f1;
        color: #000;
    }

    /* Submenu icons slightly smaller */
    .sidebar .collapse .nav-link i {
        font-size: 0.9rem;
    }


/* ================= SECTION HEADINGS ================= */

.sidebar .text-muted {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ================= MOBILE ================= */

@media (max-width:768px) {

    .sidebar {
        margin-left: -250px;
    }

        /* Toggle -> icons only */
        .sidebar.show {
            margin-left: 0;
            width: 75px;
        }

            .sidebar.show span {
                display: none;
            }

            .sidebar.show .nav-link {
                justify-content: center;
            }

    .content-wrapper {
        margin-left: 0;
    }
}
/* Hover dropdown for sm and above */
@media (min-width: 576px) {
    .top-hover-dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.mega-dropdown {
    position: static !important;
}

    .mega-dropdown .dropdown-menu {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        margin-top: 0;
        border-radius: 0 0 12px 12px;
    }

/* Prevent wrapping of tobar, newly added*/


/* Force the LoginPartial container to stay on one line */
/* Assuming the partial is rendered directly inside the navbar-nav */
/* Force everything to stay on one line */
.top-navbar .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
}

    /* Add space between Register and Login (and all other nav items) */
    .top-navbar .navbar-nav > li,
    .top-navbar .navbar-nav > .nav-item {
        margin-left: 0.5rem; /* Space between items */
        margin-right: 0.5rem;
        display: flex;
        align-items: center;
    }

    /* Specifically target links inside the Login Partial if they are bare <a> tags */
    .top-navbar .navbar-nav a {
        white-space: nowrap !important;
    }

/* Responsive adjustment for very small screens */
@media (max-width: 400px) {
    .top-navbar .navbar-nav > li {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}

/* Ensure the dropdown container is the reference point */
.nav-item.dropdown {
    position: relative;
}

/* Fix the positioning of the dropdown menu */
.top-navbar .dropdown-menu {
    top: 100% !important; /* Position right below the nav-link */
    margin-top: 0.5rem !important; /* Small gap from the top bar */
    transform: none !important; /* Stop Bootstrap from trying to center it */
}

/* Right-align the user profile dropdown so it doesn't go off-screen */
.top-navbar .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* Hover effect: ensure it displays correctly if you're using a hover-dropdown script */
.top-hover-dropdown:hover > .dropdown-menu {
    display: block;
}



/* Enhance default Bootstrap card */
/* MAIN CARD */
.card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    /* 3D shadow */
    box-shadow: 0 10px 20px rgba(0,0,0,0.10), 0 6px 6px rgba(0,0,0,0.05);
    transition: all .3s ease;
}

    /* Hover lift effect */
    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.18), 0 10px 10px rgba(0,0,0,0.08);
    }

/* HEADER 3D EFFECT */
.card-header {
    background: #ffffff;
    border: none;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0d6efd;
    padding: 18px 22px;
    /* inner shadow = 3D pressed effect */
    box-shadow: inset 0 -2px 3px rgba(0,0,0,0.08), inset 0 2px 3px rgba(255,255,255,0.8);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* BODY */
.card-body {
    padding: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* FOOTER */
.card-footer {
    background: #ffffff;
    border: none;
    padding: 16px 22px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

    /* READ MORE BUTTON */
    .card-footer a {
        text-decoration: none;
        font-weight: 500;
    }

.sticky-footer {
    font-size: 13px;
}

.dev-link {
    color: #0d6efd;
    transition: all .2s ease;
}

    .dev-link:hover {
        color: #084298;
        text-decoration: underline;
    }


    /*New Notice card*/
.news-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: all .3s ease;
}

    .news-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    }

.news-header {
    background: linear-gradient(135deg,#f8fbff,#eef5ff);
    border-bottom: 1px solid #e5e5e5;
}

.notice-item {
    background: #fafafa;
    transition: all .2s;
}

    .notice-item:hover {
        background: #f1f6ff;
    }

.quick-card {
    transition: all 0.25s ease;
}

    .quick-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
        background-color: #f8f9fa;
    }

