/* ============================================
   DASHBOARD LIGHTBOX MODAL - AAA PREMIUM
   Modal para visualização em tela cheia dos dashboards
   ============================================ */

/* Overlay escuro (backdrop) */
.dashboard-lightbox {
    display: none; /* Hidden por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.dashboard-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Container da imagem */
.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(200, 162, 79, 0.3);
}

/* Botão de fechar (X) */
.lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(200, 162, 79, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(200, 162, 79, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(200, 162, 79, 0.5);
}

/* Badge com nome do dashboard */
.lightbox-badge {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(200, 162, 79, 0.2), rgba(200, 162, 79, 0.1));
    border: 1px solid rgba(200, 162, 79, 0.5);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    z-index: 10000;
    animation: slideDown 0.4s ease-out;
}

.lightbox-badge p {
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--premium-gold, #C8A24F);
    margin: 0;
    font-weight: 600;
}

/* Ícone de lupa nos cards (indicador de clicabilidade) */
.dashboard-card .zoom-indicator {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(200, 162, 79, 0.15);
    border: 2px solid rgba(200, 162, 79, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 5;
}

.dashboard-card:hover .zoom-indicator {
    opacity: 1;
    transform: scale(1.1);
}

.dashboard-card .zoom-indicator i {
    color: var(--premium-gold, #C8A24F);
    font-size: 1.1rem;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile responsivo */
@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .lightbox-badge {
        top: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .lightbox-badge p {
        font-size: 0.75rem;
    }
    
    .lightbox-content {
        padding: 1rem;
    }
}

/* Desabilitar scroll do body quando modal está aberto */
body.lightbox-open {
    overflow: hidden;
}

/* Cursor pointer nos cards clicáveis */
.dashboard-card {
    cursor: pointer;
    user-select: none;
}

.dashboard-card img {
    pointer-events: none; /* Evita arraste acidental */
}
