/**
 * SYMA NOTIFICATION COMPONENT - REUSABLE
 * Standalone notification system CSS
 * Used by: Referral System, and other features
 * 
 * Dependencies: None
 * 
 * Usage: Include this file in layout templates
 * <link rel="stylesheet" href="<?=__ASSET__ . '/css/notification.css?v=' . __CSS_VERSION__?>">
 */

/* ======================================== */
/* BASE NOTIFICATION CONTAINER             */
/* ======================================== */

.syma-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    min-width: 300px;
    padding: 16px 45px 16px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* ======================================== */
/* NOTIFICATION TYPES                       */
/* ======================================== */

/* Success notification (green) - For confirmations, success messages */
.syma-notification-success {
    background-color: #46be8a;
}

/* Error notification (red) - For errors, failures, validation issues */
.syma-notification-error {
    background-color: #fb434a;
}

/* Warning notification (orange) - For warnings, cautions */
.syma-notification-warning {
    background-color: #f39834;
}

/* Info notification (blue) - For information, tips, hints */
.syma-notification-info {
    background-color: #0190da;
}

/* ======================================== */
/* CLOSE BUTTON                             */
/* ======================================== */

.syma-notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 24px;
    height: 24px;
}

.syma-notification-close:hover {
    opacity: 1;
}

.syma-notification-close:focus {
    outline: none;
}

/* ======================================== */
/* MESSAGE CONTENT                          */
/* ======================================== */

.syma-notification-message {
    margin: 0;
    padding-right: 10px;
}

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

/* Tablet and mobile */
@media (max-width: 768px) {
    .syma-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: 0;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .syma-notification {
        font-size: 13px;
        padding: 14px 40px 14px 16px;
    }
    
    .syma-notification-close {
        right: 10px;
        font-size: 20px;
    }
}

/* ======================================== */
/* ANIMATION HELPERS                        */
/* ======================================== */

/* Fade in animation */
@keyframes notificationFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade out animation */
@keyframes notificationFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Optional: Add animation classes */
.syma-notification.fade-in {
    animation: notificationFadeIn 0.3s ease-in-out;
}

.syma-notification.fade-out {
    animation: notificationFadeOut 0.3s ease-in-out;
}

