﻿:root {
    --primary-red: #d32f2f;
    --primary-blue: #1976d2;
    --primary-green: #388e3c;
    --dark-blue: #1565c0;
    --dark-green: #2e7d32;
    --light-blue: #e3f2fd;
}

.hospital-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 8px 0;
    position: fixed; /* Cố định header ở đầu trang */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000; /* Giúp header nằm trên các phần tử khác */
}

.hospital-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.hospital-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.hospital-slogan {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.logo-container {
    background: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.contact-icon {
    background: rgba(255,255,255,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    background: var(--primary-green);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .login-btn:hover {
        background: var(--dark-green);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.main-navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary-blue) !important;
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20px;
            right: 20px;
            height: 3px;
            background: var(--primary-blue);
            border-radius: 3px 3px 0 0;
        }

.search-form {
    position: relative;
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 45px 8px 20px;
    transition: all 0.3s ease;
    width: 250px;
}

    .search-input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
    }

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .header-contact {
        display: none;
    }

    .hospital-name {
        font-size: 1.1rem;
    }

    .search-input {
        width: 200px;
    }
}
