.nv-color {
    background-color: rgb(160, 31, 31);
}

.nav-pills .nav-link.active {
    background-color: rgb(120, 0, 0); /* darker red */
    color: white;
    border-radius: 6px; /* optional rounding */
    transition: background-color 0.3s ease;
}

.nav-pills .nav-link.active:hover {
    background-color: rgb(140, 0, 0); /* slightly lighter on hover */
}

.nav-link {
    color: white;
    font-size: 23px;
    font-weight: 500;
    margin-right: 34px;
}

.redcross-icon { height: 60px; }
.profile-icon { height: 80px; }

#profile h4 {
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.btn-danger {
    background-color: rgb(160, 31, 31) !important;
    border-color: rgb(160, 31, 31) !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active {
    background-color: rgb(160, 31, 31) !important;
    border-color: rgb(160, 31, 31) !important;
}

.btn-warning { color: white; }

.flatpickr-calendar { font-size: 18px; }

.announcement-description {
    max-width: 350px;
    word-wrap: break-word;
    white-space: normal;
}

/* =======================
   ADMIN LAYOUT NAVIGATION
======================= */

/* Sidebar (landscape devices) */
@media (orientation: landscape) {
    nav.nv-color.sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        overflow-y: auto; 
        z-index: 9999;    
    }
    
    /* hide topbar in landscape */
    nav.nv-color.topbar {
        display: none;
    }
}

/* Top navbar (portrait devices) */
@media (orientation: portrait) {
    nav.nv-color.topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

    /* hide sidebar in portrait */
    nav.nv-color.sidebar {
        display: none;
    }

    /* Mobile collapse menu */
    #mobileMenu {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        padding-bottom: 1rem;
        transition: height 0.3s ease, opacity 0.3s ease;
    }
}

@media (max-width: 767px) {
    main {
        padding-top: 66px;  /* space for navbar */
        height: auto;        /* let content grow naturally */
        overflow-y: visible; /* scroll normally */
    }
}
