﻿/* ---------------------------
   Modern BUHS Styles - FIXED HEADER
   --------------------------- */

:root {
    --buhs-primary: #005f5a;
    --buhs-secondary: #084e4b;
    --buhs-accent: #2f7a76;
    --buhs-light: #e6f2f1;
    --buhs-white: #ffffff;
    --buhs-text: #333333;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--buhs-text);
}

/* HEADER CONTAINER - FIXED HEIGHT */
.buhs-header-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

.buhs-header {
    background: linear-gradient(135deg, var(--buhs-white) 0%, #f8f9fa 100%);
    height: 110px; /* Fixed height for all devices */
    display: flex;
    align-items: center;
    position: relative;
}

.container-fluid.h-100 {
    height: 100% !important;
}

.row.h-100 {
    height: 100% !important;
    margin: 0;
}

/* LOGO STYLING - LEFT ALIGNED */
.buhs-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform var(--transition-speed) ease;
}

    .buhs-logo-link:hover {
        transform: scale(1.05);
    }

.buhs-logo {
    width: 80px; /* Slightly smaller for better mobile fit */
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 95, 90, 0.15);
    border: 3px solid var(--buhs-light);
    transition: all var(--transition-speed) ease;
}

    .buhs-logo:hover {
        border-color: var(--buhs-accent);
        box-shadow: 0 6px 18px rgba(0, 95, 90, 0.25);
    }

/* TITLE BLOCK - CENTERED HORIZONTALLY (next to logo) */
.buhs-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    text-align: center;
}

.buhs-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--buhs-secondary);
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.buhs-subtitle {
    font-size: 1rem;
    color: var(--buhs-accent);
    margin: 4px 0 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* MODERN NAVBAR */
.buhs-navbar {
    background: linear-gradient(135deg, var(--buhs-primary) 0%, var(--buhs-secondary) 100%);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 56px;
}

    .buhs-navbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
        background-size: 400% 100%;
        animation: gradientShift 8s ease infinite;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* NAVBAR TOGGLER */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all var(--transition-speed) ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

    .navbar-toggler:hover {
        border-color: var(--buhs-white);
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar-toggler i {
        color: var(--buhs-white);
        font-size: 1.25rem;
    }

/* NAV LINKS - ORIGINAL STATE */
.buhs-navbar .navbar-nav .nav-link {
    color: var(--buhs-white) !important;
    font-weight: 600;
    padding: 1rem 1.25rem !important;
    position: relative;
    transition: all var(--transition-speed) ease;
    border-radius: 4px;
    margin: 0 2px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

    .buhs-navbar .navbar-nav .nav-link i {
        font-size: 0.9rem;
        transition: transform var(--transition-speed) ease;
    }

    .buhs-navbar .navbar-nav .nav-link:hover i {
        transform: scale(1.1);
    }

    /* HOVER EFFECT - TEXT BECOMES BACKGROUND, BACKGROUND BECOMES TEXT */
    .buhs-navbar .navbar-nav .nav-link:hover {
        color: var(--buhs-primary) !important;
        background-color: var(--buhs-white) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* DROPDOWN MENUS */
.buhs-navbar .dropdown-menu {
    background-color: var(--buhs-white);
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 220px;
}

.buhs-navbar .dropdown-item {
    color: var(--buhs-text);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

    .buhs-navbar .dropdown-item:hover {
        color: var(--buhs-primary) !important;
        background-color: var(--buhs-light) !important;
        padding-left: 1.5rem;
    }

    .buhs-navbar .dropdown-item i {
        width: 20px;
        margin-right: 10px;
        color: var(--buhs-accent);
    }

/* DROPDOWN TOGGLE ARROW */
.buhs-navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

/* SEARCH FORM */
.buhs-navbar .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--buhs-white);
    border-radius: 6px 0 0 6px;
    min-width: 200px;
    transition: all var(--transition-speed) ease;
}

    .buhs-navbar .form-control:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--buhs-white);
        color: var(--buhs-white);
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    }

    .buhs-navbar .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

.buhs-navbar .btn-outline-light {
    border-radius: 0 6px 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    transition: all var(--transition-speed) ease;
}

    .buhs-navbar .btn-outline-light:hover {
        background-color: var(--buhs-white);
        color: var(--buhs-primary);
        border-color: var(--buhs-white);
    }

/* ACTIVE NAV ITEM */
.buhs-navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--buhs-white) !important;
    border-bottom: 3px solid var(--buhs-white);
}

/* ---------------------------
   RESPONSIVE DESIGN
   --------------------------- */

/* Large Desktop */
@media (min-width: 1200px) {
    .buhs-title {
        font-size: 1.75rem;
    }

    .buhs-logo {
        width: 90px;
        height: 90px;
    }
}

/* Medium / Tablet */
@media (max-width: 991.98px) {
    .buhs-title {
        font-size: 1.4rem;
    }

    .buhs-subtitle {
        font-size: 0.95rem;
    }

    .buhs-logo {
        width: 75px;
        height: 75px;
    }

    .buhs-navbar .navbar-nav {
        padding: 1rem 0;
    }

    .buhs-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 2px 0;
    }

    .buhs-navbar .form-control {
        margin-top: 1rem;
        min-width: 100%;
    }
}

/* Small / Mobile */
@media (max-width: 767.98px) {
    .buhs-header {
        height: 100px; /* Slightly smaller on mobile */
    }

    .buhs-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
    }

    .buhs-subtitle {
        font-size: 0.85rem;
        margin-top: 2px;
    }

    .buhs-logo {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }

    .buhs-navbar .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
    }

    .buhs-navbar .dropdown-menu {
        min-width: 200px;
        margin-left: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
    .buhs-header {
        height: 95px; /* Compact height for very small screens */
    }

    .buhs-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .buhs-subtitle {
        font-size: 0.8rem;
    }

    .buhs-logo {
        width: 65px;
        height: 65px;
    }

    .buhs-title-block {
        padding: 0 10px;
    }
}

/* Fix for Bootstrap dropdown on hover (desktop only) */
@media (min-width: 992px) {
    .buhs-navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .buhs-navbar .dropdown-menu {
        border-top: 3px solid var(--buhs-primary);
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Animation for navbar items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buhs-navbar .navbar-nav .nav-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

    .buhs-navbar .navbar-nav .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(8) {
        animation-delay: 0.8s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(9) {
        animation-delay: 0.9s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(10) {
        animation-delay: 1.0s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(11) {
        animation-delay: 1.1s;
    }

    .buhs-navbar .navbar-nav .nav-item:nth-child(12) {
        animation-delay: 1.2s;
    }


/* FIXED TOGGLE BUTTON FOR MOBILE */
.fixed-toggler {
    position: absolute !important;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
}

/* Make sure navbar doesn't shift when toggler is clicked */
.navbar-collapse {
    transition: all 0.3s ease;
}

/* When navbar is expanded on mobile */
@media (max-width: 991.98px) {
    .buhs-navbar {
        min-height: 56px;
        padding-right: 60px; /* Space for toggle button */
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--buhs-primary);
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}


/* ---------------------------
   SIMPLE FOOTER STYLES
   --------------------------- */

.buhs-footer {
    background: linear-gradient(135deg, #0a3d3a 0%, #084e4b 100%);
    color: #ffffff;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 3px solid #2f7a76;
    position: relative;
    overflow: hidden;
}

    .buhs-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    }

.container {
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
    padding: 0 1rem;
}

.footer-copyright {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.5;
}

/* Hover effect for current year */
#currentYear {
    position: relative;
    display: inline-block;
    padding: 0 4px;
    transition: all 0.3s ease;
}

    #currentYear:hover {
        color: #91eae4;
        transform: translateY(-1px);
        text-shadow: 0 2px 8px rgba(145, 234, 228, 0.3);
    }

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .buhs-footer {
        padding: 1.5rem 0;
    }

    .footer-copyright {
        font-size: 1rem;
        line-height: 1.5;
    }

    .footer-disclaimer {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .buhs-footer {
        padding: 1.25rem 0;
    }

    .footer-copyright {
        font-size: 0.9rem;
    }
}


.password-requirements .met i {
    color: #28a745;
}

.password-requirements .met span {
    color: #28a745;
}

.password-requirements .not-met i,
.password-requirements .not-met span {
    color: #dc3545;
}

.password-strength-meter {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.2s ease;
}
