﻿
/* ========== MODAL DE CONFIRMACIÓN ========== */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .confirmation-modal.show {
        display: flex;
        opacity: 1;
    }

.confirmation-modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.confirmation-modal.show .confirmation-modal-content {
    transform: scale(1);
    animation: modalBounce 0.4s ease;
}

@keyframes modalBounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-modal-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: iconBounce 0.6s ease infinite alternate;
}

@keyframes iconBounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.confirmation-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.confirmation-modal-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.confirmation-modal-actions {
    display: flex;
    gap: 1rem;
}

.confirmation-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.confirmation-btn-cancel {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

    .confirmation-btn-cancel:hover {
        background: var(--bg-card);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

.confirmation-btn-confirm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

    .confirmation-btn-confirm:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
    }

/* ========== TEMA CLARO PARA MENU LATERAL ========== */
body.light-theme .sidebar {
    background: #ffffff;
    border-right: 1px solid #dee2e6;
}

body.light-theme .sidebar-footer {
    border-top: 1px solid #dee2e6;
}

    body.light-theme .sidebar-footer .theme-toggle,
    body.light-theme .sidebar-footer .logout-btn {
        color: var(--text-light);
    }

        body.light-theme .sidebar-footer .theme-toggle:hover,
        body.light-theme .sidebar-footer .logout-btn:hover {
            background: #e9ecef;
            color: var(--text-light);
        }

        body.light-theme .sidebar-footer .logout-btn:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }

body.light-theme .confirmation-modal-content {
    background: #ffffff;
    border: 1px solid #dee2e6;
}

body.light-theme .confirmation-modal-title {
    color: #212529;
}

body.light-theme .confirmation-modal-text {
    color: #6c757d;
}

body.light-theme .confirmation-btn-cancel {
    background: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

    body.light-theme .confirmation-btn-cancel:hover {
        background: #e9ecef;
    }


/* ========== OCULTAR REPORTES ========== */
.nav-item[data-section="reportes"] {
    display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .confirmation-modal-content {
        padding: 2rem;
        max-width: 90%;
    }

    .confirmation-modal-icon {
        font-size: 3rem;
    }

    .confirmation-modal-title {
        font-size: 1.5rem;
    }

    .confirmation-modal-actions {
        flex-direction: column;
    }
}
