﻿.notification-wrapper {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    align-items: center;
}

.notification-wrapper-right {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.notification-wrapper-center {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
}

/* Card */
.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    border-radius: 14px;
    min-width: 340px;
    position: relative;
    backdrop-filter: blur(6px);
    animation: slideInRight 0.3s ease forwards;
}

    /* ICON */
    .notification-card .icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    /* TEXT */
    .notification-card .title {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 4px;
    }

    .notification-card .message {
        font-size: 13px;
        opacity: 0.85;
    }

    /* CLOSE */
    .notification-card .close-btn {
        position: absolute;
        right: 12px;
        top: 8px;
        background: transparent;
        border: none;
        font-size: 14px;
        cursor: pointer;
        opacity: 0.6;
    }

        .notification-card .close-btn:hover {
            opacity: 1;
        }

    /* SUCCESS */
    .notification-card.success {
        background: #FFF6EE; 
        border: 1px solid #FE9F43;
        color: #212B36;
    }

        .notification-card.success .icon {
            background: #FE9F43;
            color: #ffffff;
        }

    /* ERROR */
    .notification-card.error {
        background: #fdecea;
        border: 1px solid #f5c2c0;
        color: #842029;
    }

        .notification-card.error .icon {
            background: #f8d7da;
            color: #b02a37;
        }

    /* WARNING */
    .notification-card.warning {
        background: #fff4e5;
        border: 1px solid #ffd8a8;
        color: #7c2d12;
    }

        .notification-card.warning .icon {
            background: #ffe8cc;
            color: #d97706;
        }

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===============================
   SUBMIT SUCCESS PREMIUM STYLE
================================ */

.submit-success-card {
    width: 360px;
    padding: 30px 25px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #FE9F43, #FBB034);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(254, 159, 67, 0.35);
    position: relative;
    animation: slideInDown 0.3s ease forwards;
}

/* Icon */
.submit-success-icon {
    margin-bottom: 18px;
}

    .submit-success-icon .circle {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        border-radius: 50%;
        background: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    /* Checkmark */
    .submit-success-icon .checkmark {
        font-size: 34px;
        color: #FE9F43;
        font-weight: bold;
        animation: pop 0.4s ease forwards;
    }

/* Text */
.submit-success-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
}

.submit-success-message {
    font-size: 13px;
    color: #fff;
    opacity: 0.9;
}

/* Close Button */
.submit-success-card .close-btn {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
}

    .submit-success-card .close-btn:hover {
        opacity: 1;
    }

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-10px);
    }
}

.notification-hide {
    animation: fadeOut 0.4s ease forwards;
}

/* Pop animation */
@keyframes pop {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}
