/* ============================================
   FLASH NOTIFICATION - Pure CSS Fade In/Out
   ============================================ */

/* Container */
#flashcontainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    max-width: 90%;
}

/* Elemen notifikasi tunggal */
#flashnotif {
    padding: 15px 20px;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none; /* Default: tersembunyi */
    
    /* Fade In */
    animation: fadeIn 0.4s ease forwards;
}

/* Animasi Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi Fade Out */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Class untuk fade out */
#flashnotif.hide {
    animation: fadeOut 0.4s ease forwards;
}

/* ============================================
   VARIAN WARNA
   ============================================ */

#flashnotif.success {
    background: #95bfff;
    border-left: 4px solid #5398ff;
	color:#fff;
	font-weight:bold;
}

#flashnotif.warning {
    background: #ffa6a6;
    border-left: 4px solid #ff4a4a;
    color: #000;
	font-weight:bold;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    #flashcontainer {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    #flashnotif {
        font-size: 13px;
        padding: 12px 16px;
    }
}