/* public/css/header.css */

.app-header {
    background: #ffffff;
    border-bottom: 4px solid #14532d;
    box-shadow: 0 0.2rem 0.8rem rgba(15, 23, 42, 0.08);
}

.app-header-top {
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    border-bottom: 1px solid #dbe3ec;
}

.app-header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.app-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 220px;
}

.app-header-logo {
    height: 82px;
    width: auto;
    object-fit: contain;
}

.app-header-title-wrap {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.app-header-title {
    color: #14532d;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.app-header-subtitle {
    color: #475569;
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.app-header-user {
    min-width: 220px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.app-navbar {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.app-navbar .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.app-navbar .navbar-nav {
    gap: 0.15rem;
}

.app-navbar .nav-link {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.93rem;
    border-radius: 0.55rem;
    padding: 0.55rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: #14532d;
    background: #dcfce7;
}

.app-navbar .dropdown-menu {
    border-color: #cbd5e1;
    border-radius: 0.65rem;
    box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.12);
    padding: 0.45rem;
}

.app-navbar .dropdown-item {
    color: #1e293b;
    font-weight: 650;
    border-radius: 0.45rem;
    padding: 0.55rem 0.75rem;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
    color: #14532d;
    background: #dcfce7;
}

.app-navbar .navbar-toggler {
    border-color: #94a3b8;
    background: #ffffff;
    min-height: 42px;
}

.app-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(20, 83, 45, 0.18);
}

.app-logout-link {
    color: #991b1b !important;
}

.app-logout-link:hover,
.app-logout-link:focus {
    color: #7f1d1d !important;
    background: #fee2e2 !important;
}

@media (max-width: 991.98px) {
    .app-header-inner {
        min-height: auto;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        align-items: center;
    }

    .app-header-brand {
        min-width: auto;
    }

    .app-header-logo {
        height: 66px;
    }

    .app-header-title-wrap {
        text-align: left;
        padding: 0;
    }

    .app-header-title {
        font-size: 1.1rem;
    }

    .app-header-subtitle {
        display: none;
    }

    .app-header-user {
        display: none;
    }

    .app-navbar .navbar {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .app-navbar .navbar-collapse {
        margin-top: 0.5rem;
        border-top: 1px solid #cbd5e1;
        padding-top: 0.5rem;
    }

    .app-navbar .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .app-navbar .dropdown-menu {
        box-shadow: none;
        border-radius: 0.5rem;
        margin-top: 0.2rem;
    }
}

@media (max-width: 575.98px) {
    .app-header-logo {
        height: 54px;
    }

    .app-header-title {
        font-size: 0.98rem;
    }

    .app-header-inner {
        gap: 0.75rem;
    }
}