/* 👁️ SELECTOR DE VISTA PARA SUPERADMINISTRADOR */

.view-switcher {
    position: relative;
    display: inline-block;
}

.view-switcher-btn {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.view-switcher-btn:hover {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    transform: translateY(-1px);
}

.view-switcher-arrow {
    transition: transform 0.3s ease;
}

.view-switcher-btn.active .view-switcher-arrow {
    transform: rotate(180deg);
}

.view-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.view-switcher-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.view-switcher-option {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.view-switcher-option:hover {
    background: #f3f4f6;
    color: #9333ea;
}

.view-switcher-option.active {
    background: #f3e8ff;
    color: #9333ea;
    font-weight: 600;
}

.view-switcher-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Indicador de modo vista activo */
.view-as-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .view-switcher-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .view-switcher-dropdown {
        min-width: 200px;
        right: auto;
        left: 0;
    }

    .view-as-indicator {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
}
