/* Estilos para el panel de administración */
.admin-panel {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 1000;
    min-width: 200px;
    border: 1px solid #e0e0e0;
}

.admin-panel.active {
    display: block;
}

/* Estilos para el botón de usuario modificado */
#login-link {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: white;
}

.user-name-display {
    font-weight: 500;
    color: white;
}

/* Botón de menú de usuario separado (3 rayas) */
.user-menu-button {
    background: none;
    border: none;
    padding: 8px 10px;
    margin-left: 10px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
    display: none;
}

.user-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.user-menu-button i {
    display: block;
    color: white;
}

.user-menu-dots {
    color: white;
    font-size: 14px;
    margin-left: 8px;
    transition: color 0.2s ease;
}

#login-link:hover .user-menu-dots {
    color: white;
}

/* Header del dropdown con información del usuario */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.user-info-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Divider */
.dropdown-divider {
    margin: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.admin-menu-item {
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.admin-menu-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.admin-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.logout-btn {
    padding: 12px 15px;
    background: none;
    border: none;
    color: #dc3545;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    width: 100%;
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
}

.logout-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.logout-btn i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.login-error {
    color: #dc3545;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    display: none;
}

.login-success {
    color: #28a745;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    display: none;
}

/* Animaciones */
@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.admin-panel {
    animation: slideIn 0.3s ease;
}