﻿/* ===== Navbar (Bootstrap dark) ===== */
.navbar-main {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* higher than Bootstrap defaults */
    background-color: #212529;
    min-height: 56px;
}

.nav-icon-btn {
    border: none;
    background: transparent;
    color: #e5e5e5;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .nav-icon-btn i {
        font-size: 1.2rem;
    }

    .nav-icon-btn:hover,
    .nav-icon-btn:focus {
        color: #ffffff;
        outline: none;
    }

.nav-icon-link {
    color: #e5e5e5;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .nav-icon-link i {
        font-size: 1.2rem;
    }

    .nav-icon-link:hover,
    .nav-icon-link:focus {
        color: #ffffff;
    }


.admin-home-btn {
    padding: 3px 14px;
    background: linear-gradient(to bottom, #33c2cf 0%, #249aa6 100%);
    font-size:0.91rem;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.25),
    inset 0 -1px 2px rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.3); 
    transition: all 0.2s ease-in-out;
}

    /* Hover effect */
    .admin-home-btn:hover {
        background: linear-gradient(to bottom, #38d1df 0%, #1f8c97 100%);
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), inset 0 -1px 2px rgba(0,0,0,0.3), 0 3px 6px rgba(0,0,0,0.4);
    }

.top-nav-link {
    color: #e5e5e5;
    font-weight: 500;
    font-size: 0.91rem;
    text-decoration: none;
    padding: 0.20rem 0.20rem;
}

    .top-nav-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

    
    .top-nav-link.dropdown-toggle::after {
        content: "";
        display: inline-block;
        margin-left: 6px;
        width: 0.35rem;
        height: 0.35rem;
        border: 0; 
        border-right: 2px solid #cbd5e1;
        border-bottom: 2px solid #cbd5e1;
        transform: rotate(45deg) translateY(-1px); 
        transition: transform 0.32s ease, border-color 0.32s ease;
        vertical-align: middle;
    }

    
    .top-nav-link.dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(-135deg) translateY(-1px); /* keep aligned when flipped */
        border-right-color: #ffffff;
        border-bottom-color: #ffffff;
    }


.top-nav-link {
    color: #e2e8f0 !important;
}

    .top-nav-link:hover {
        color: #ffffff !important;
    }

@media (max-width: 1255px) {
    .auto_hide_links {
        display: none !important;
    }
}

@media (min-width: 1256px) {
    .auto_hide_links {
        display: flex !important;
    }
}


/* ===== Nav Hub Panel (Under Navbar, same dark color) ===== */
.nav-hub {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1040;
    background: linear-gradient(180deg, rgba(33,37,41,1) 57%, rgba(15,18,20,1) 100%);
    border-bottom: 1px solid #343a40;
    color: #e5e7eb;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* 👇 HIDE SCROLLBAR — WORKS ON CHROME, SAFARI, EDGE */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge legacy */
}

    .nav-hub::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }


.nav-hub-inner {
    max-width: 1200px;
}

.nav-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nav-hub-subtitle {
    font-size: 0.85rem;
    color: #adb5bd;
}

.nav-hub-close {
    border-radius: 999px;
}

#navHub.collapsing {
    transition: height 0.4s ease; 
}

/* ===== Left Vertical Nav (Sections) ===== */
.nav-hub-nav .nav-link {
    text-align: left;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #e5e7eb;
    background: transparent;
}

    .nav-hub-nav .nav-link:hover {
        background: #343a40;
        color: #ffffff;
    }

    .nav-hub-nav .nav-link.active {
        background: linear-gradient(135deg, #30aebe, #198092);
        color: #ffffff;
    }

    .nav-hub-nav .nav-link i {
        font-size: 1rem;
    }

/* ===== Right Side Tiles (dark cards inside hub) ===== */
.nav-hub-tile {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid #343a40;
    background: transparent;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease, background 0.2s ease !important;
}

    .nav-hub-tile:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        transform: translateY(-1px);
        border-color: #30aebe;
        background: #1c1f24;
        text-decoration: none;
    }

.nav-hub-tile-title {
    font-weight: 600;
    color: #f8f9fa;
    font-size: 0.95rem;
}

.nav-hub-tile-desc {
    font-size: 0.8rem;
    color: #ced4da;
    margin-bottom: 0;
}

.navbar-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.35);
    display: inline-block;
}

.tab-pane h6 {
    color: #f8f9fa;
}

.tab-pane p.text-muted {
    color: #ced4da !important;
}

main.container {
    color: #212529;
}

/* Mobile/tight screens */
@media (max-width: 767.98px) {
    .nav-hub-inner {
        padding-inline: 0;
    }

    .nav-hub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-hub-close {
        display: none !important;
    }
}

/* Admin button in navbar */
.admin-btn {
    background-color: transparent;
    border: 1px solid #d3d3d3;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .admin-btn:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: #ffffff;
        text-decoration: none;
        color: #ffffff;
    }

/* --- Dropdown Menu  --- */
.modern-dropdown {
    border: 1px solid #e5e7eb; 
    border-radius: 10px;
    padding: 4px;
    margin-top: 8px;
    max-height: 65vh;
    overflow-y: auto;
    background: #f9fafb; 
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    min-width: 240px;
}

    
    .modern-dropdown::-webkit-scrollbar {
        width: 6px;
    }

    .modern-dropdown::-webkit-scrollbar-thumb {
        background: #337a8d; 
        border-radius: 4px; 
    }

    /* Each dropdown item */
    .modern-dropdown .dropdown-item {
        padding: 8px 12px;
        font-size: 0.9rem;
        color: #0f172a;
        white-space: nowrap;
        transition: background 0.12s ease, color 0.12s ease;
    }

        
        .modern-dropdown .dropdown-item:hover {
            background: #e5e7eb;
            color: #0f172a;
        }

        
        .modern-dropdown .dropdown-item.active {
            background: #dbeafe;
            color: #1d4ed8;
            font-weight: 500;
        }
