/* ========== HEADER THEMES CSS ========== */
/* Arquivo único contendo todos os temas de header para os diferentes níveis de acesso */

/* Estilos Base para Header (compartilhado entre todos os temas) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: all 0.3s ease;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Logo área */
.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    font-weight: 600;
}

.header-logo img {
    height: 40px;
    max-width: 180px;
    object-fit: contain;
}

.header-logo i {
    margin-right: 10px;
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Área central com ícones de acesso rápido */
.header-quick-access {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-icon-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.header-icon-link:hover {
    opacity: 1;
    color: #c5cae9;
}

.header-icon-link i {
    font-size: 1.5rem;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tooltip para os ícones */
.header-icon-link .tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
}

.header-icon-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Área de logout */
.header-logout {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logout-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.header-logout-link:hover {
    opacity: 1;
    color: #c5cae9;
}

.header-logout-link i {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header-logout-link .tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
}

.header-logout-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsividade */
@media (max-width: 992px) {
    .header {
        padding: 0 15px;
    }
    
    .header-icon-link {
        margin: 0 10px;
    }
    
    .header-icon-link i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .header-icon-link {
        margin: 0 8px;
    }
    
    .header-icon-link i {
        font-size: 1.2rem;
    }

    .header-logo {
        margin-left: 50px;
    }
    
    .header-icon-link {
        margin: 0 5px;
    }
    
    .header-icon-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 994px) {
    .header-logo img {
        height: 35px;
        max-width: 120px;
        margin-left: 50px;
    }
    
    .header-icon-link {
        margin: 0 5px;
    }
    
    .header-icon-link i {
        font-size: 1.1rem;
    }
}

/* Para dispositivos muito pequenos, podemos esconder alguns ícones */
@media (max-width: 480px) {
    .header-icon-link.optional {
        display: none;
    }
}

/* ========== TEMAS ESPECÍFICOS POR NÍVEL DE ACESSO ========== */

/* 1. TEMA ADMINISTRADOR - Tons de Azul */
.header.admin-theme {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.header.admin-theme .header-icon-link:hover {
    color: #c5cae9;
}

.header.admin-theme .header-logout-link:hover {
    color: #c5cae9;
}

/* Efeito de destaque para ícones */
.header.admin-theme .header-icon-link.active {
    background-color: rgba(197, 202, 233, 0.2);
    padding: 5px;
    border-radius: 5px;
}

/* 2. TEMA GERENTE - Tons de Verde Água */
.header.gerente-theme {
    background: linear-gradient(135deg, #009688 0%, #00695c 100%);
}

.header.gerente-theme .header-icon-link:hover {
    color: #b2dfdb;
}

.header.gerente-theme .header-logout-link:hover {
    color: #b2dfdb;
}

/* Efeito de destaque para ícones */
.header.gerente-theme .header-icon-link.active {
    background-color: rgba(178, 223, 219, 0.2);
    padding: 5px;
    border-radius: 5px;
}

/* 3. TEMA VETERINÁRIO - Tons de Verde */
.header.veterinario-theme {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.header.veterinario-theme .header-icon-link:hover {
    color: #c8e6c9;
}

.header.veterinario-theme .header-logout-link:hover {
    color: #c8e6c9;
}

/* Efeito de destaque para ícones */
.header.veterinario-theme .header-icon-link.active {
    background-color: rgba(200, 230, 201, 0.2);
    padding: 5px;
    border-radius: 5px;
}

/* 4. TEMA RECEPCIONISTA - Tons de Laranja */
.header.recepcionista-theme {
    background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
}

.header.recepcionista-theme .header-icon-link:hover {
    color: #ffe0b2;
}

.header.recepcionista-theme .header-logout-link:hover {
    color: #ffe0b2;
}

/* Efeito de destaque para ícones */
.header.recepcionista-theme .header-icon-link.active {
    background-color: rgba(255, 224, 178, 0.2);
    padding: 5px;
    border-radius: 5px;
}

/* 5. TEMA AUXILIAR - Tons de Roxo */
.header.auxiliar-theme {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%);
}

.header.auxiliar-theme .header-icon-link:hover {
    color: #e1bee7;
}

.header.auxiliar-theme .header-logout-link:hover {
    color: #e1bee7;
}

/* Efeito de destaque para ícones */
.header.auxiliar-theme .header-icon-link.active {
    background-color: rgba(225, 190, 231, 0.2);
    padding: 5px;
    border-radius: 5px;
}

/* Ajustes para visibilidade de texto */
.header-icon-link,
.header-logout-link {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}