/**
 * ============================================================================
 * RAZ Creative Studio - Enterprise Custom Modal & Toast System
 * File: css/RAZModal.css
 * Deskripsi: Komponen dialog modal & toast notifikasi berbasis Glassmorphism
 *            khas RAZ dengan aksen emas premium, animasi halus, dan responsif.
 * Terakhir Diupdate: 2026-09-28
 * Versi: 1.0.0 (Anti-Native Alert & Clean UX Release)
 * Standar: RAZ Enterprise UI/UX Standard
 * ============================================================================
 */

/* ==========================================================================
   1. MODAL OVERLAY & BACKDROP
   ========================================================================== */
.raz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    padding: 20px;
    box-sizing: border-box;
}

.raz-modal-overlay.raz-active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   2. MODAL CARD CONTAINER
   ========================================================================== */
.raz-modal-card {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
    border: 1px solid rgba(212, 168, 83, 0.35);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 168, 83, 0.15);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #f3f4f6;
    text-align: center;
    position: relative;
}

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

/* ==========================================================================
   3. ICON STATUS & HEADER
   ========================================================================== */
.raz-modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.raz-modal-icon.raz-icon-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.raz-modal-icon.raz-icon-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.raz-modal-icon.raz-icon-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.raz-modal-icon.raz-icon-info {
    background: rgba(212, 168, 83, 0.15);
    color: #D4A853;
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.raz-modal-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #ffffff;
}

.raz-modal-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #9ca3af;
    margin: 0 0 25px;
    word-break: break-word;
}

/* ==========================================================================
   4. MODAL BUTTON ACTIONS
   ========================================================================== */
.raz-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.raz-modal-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 180px;
}

.raz-modal-btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #D4A853 50%, #B8860B 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.raz-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.45);
}

.raz-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.raz-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ==========================================================================
   5. TOAST NOTIFICATION CONTAINER & CARDS
   ========================================================================== */
.raz-toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.raz-toast {
    pointer-events: auto;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 14px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    animation: razToastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: opacity 0.3s, transform 0.3s;
}

.raz-toast.raz-toast-hiding {
    opacity: 0;
    transform: translateX(100px);
}

.raz-toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.raz-toast-success .raz-toast-icon { color: #4ade80; }
.raz-toast-error .raz-toast-icon { color: #f87171; }
.raz-toast-warning .raz-toast-icon { color: #facc15; }
.raz-toast-info .raz-toast-icon { color: #D4A853; }

@keyframes razToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsif Layar Kecil */
@media (max-width: 640px) {
    .raz-toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .raz-toast {
        min-width: unset;
        max-width: 100%;
    }
    .raz-modal-card {
        padding: 24px 20px;
    }
}
