/* =========================
   CSS DO DROPDOWN E ICONE DE USUARIO LOGADO
   Arquivo: iconelogado.css
   Diretório: ativerma\inicio\css\iconelogado.css
   Descrição: Estilos principais da página
========================= */

/* =========================
   USER PROFILE DROPDOWN
========================= */
.user-profile-dropdown {
    position: relative;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 350px;
}

.btn-profile:hover {
    background: #f9fafb;
    border-color: #1672d8;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    white-space: nowrap;
}

.profile-email {
    font-size: 0.8rem;
    color: #6B7280;
    white-space: nowrap;
}

.profile-arrow {
    color: #6B7280;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-profile-dropdown.active .profile-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-profile-dropdown.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1.25rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.profile-menu-item:hover {
    background: #f9fafb;
    color: #1672d8;
}

.profile-menu-item i {
    width: 18px;
    text-align: center;
    color: #6B7280;
}

.profile-menu-item:hover i {
    color: #1672d8;
}

.profile-menu-item.text-danger {
    color: #dc2626;
}

.profile-menu-item.text-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.profile-menu-item.text-danger i {
    color: #dc2626;
}

.profile-menu-divider {
    height: 1px;
    background: #e5e7eb;
}


@media (max-width: 768px) {

    /* Profile dropdown mobile */
    .btn-profile {
        padding: 0.5rem;
        gap: 8px;
        max-width: none;
    }
    
    .profile-info {
        display: none;
    }
    
    .profile-arrow {
        display: none;
    }
    
    .profile-menu {
        right: -10px;
    }
}