﻿/* Reset & Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.page {
    display: flex;
    flex-direction: column; /* NavMenu on top, main content below */
    min-height: 100vh;
}

.page-main-content {
    flex: 1;
    padding-top: 5rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    background-color: #D7E8EC; /*#969aa7 #2E6F40*/ /*#afb0b3*/
}

/* ================================
   NAVBAR STYLING
================================ */
.custom-nav-header {
    background-color: #D7E8EC; /*#969aa7 #2E6F40*/ /*#afb0b3*/
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1030;
    border-bottom: 1px solid white; /* White line at the bottom */
}

/* Brand / Logo */
.navbar-brand img {
    height: 45px;
    width: auto;
}

/* Toggler Button */
.navbar-toggler {
    background-color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

/* Navbar Links */
.navbar-nav .nav-link {
    color: black !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: orangered !important;
    }

    /* Hover underline animation */
    .navbar-nav .nav-link::before {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -3px;
        left: 0;
        background-color: orangered;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .navbar-nav .nav-link:hover::before {
        visibility: visible;
        width: 100%;
    }


/* Right-side component alignment */
.right-components {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================================
   DROPDOWN STYLING
================================ */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    margin-top: 5px;
}

.dropdown-item {
    color: #333 !important;
    padding: 8px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: orangered !important;
    }

    .dropdown-item.active {
        color: orangered !important;
        background-color: #f2f2f2;
    }

/* Profile Dropdown Alignment */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* ================================
   MOBILE & RESPONSIVE STYLING
================================ */
@media (max-width: 991px) {
    /* Collapse background */
    .navbar-collapse {
        background-color: #D7E8EC; /*#969aa7 #2E6F40*/ /*#afb0b3*/
        padding: 10px 0;
    }

    /* Nav links inside mobile view */
    .navbar-nav .nav-link {
        color: black !important;
        padding: 10px 15px;
        text-align: left;
        width: 100%;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        box-shadow: none;
        background-color: #f8f9fa;
    }

    .navbar-nav .dropdown-item {
        padding: 10px 20px;
    }

    /* Adjust right components */
    .right-components {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    /* Mobile dropdown toggles */
    .navbar-nav .nav-item.dropdown > .nav-link::after {
        margin-left: 5px;
    }
}

/* ================================
   SCROLL EFFECT / SHADOW ON FIXED NAV
================================ */
.navbar.fixed-top {
    transition: box-shadow 0.3s ease;
}

    .navbar.fixed-top.scrolled {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

/* ================================
   UTILITY CLASSES
================================ */
a {
    text-decoration: none;
}

    a:focus,
    button:focus {
        outline: none;
        box-shadow: none;
    }

/* Active dropdown highlighting */
.dropdown-item.active {
    color: orangered !important;
}

/* Scrollbar styling (for long dropdowns or side menus) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

/* ================================
   EXTRA NICE TOUCH
================================ */
.navbar-nav .nav-item {
    margin-right: 5px;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 5px;
}

.menu-svg{
    height:25px;
    width:25px;
}
