/* ============================================
   NRE MODALS - PREMIUM DESIGN SYSTEM
   ============================================ */

.nre-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.nre-modal-overlay.active {
    opacity: 1;
}

.nre-modal-content {
    background: rgba(26, 26, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 100%;
    max-width: 450px;
    padding: 35px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.nre-modal-overlay.active .nre-modal-content {
    transform: translateY(0) scale(1);
}

.nre-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 5px;
}

.nre-modal-icon.confirm {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.nre-modal-icon.alert {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.nre-modal-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.nre-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.nre-modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 5px;
}

.nre-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.nre-modal-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nre-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.nre-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nre-modal-btn-confirm {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.nre-modal-btn-confirm:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

.nre-modal-btn-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

.nre-modal-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.5);
}

/* Theme adaptation */
[data-theme="light"] .nre-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .nre-modal-title {
    color: #1a1a20;
}

[data-theme="light"] .nre-modal-message {
    color: #475569;
}

[data-theme="light"] .nre-modal-btn-cancel {
    background: #f1f5f9;
    color: #1a1a20;
    border-color: #e2e8f0;
}

[data-theme="light"] .nre-modal-btn-cancel:hover {
    background: #e2e8f0;
}
