/* Modern Toast Notification System - Top Right */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 30, 48, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 18px 22px;
    display: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    min-width: 320px;
    max-width: 420px;
    backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.toast-notification.show {
    display: flex;
    animation: toastSlideIn 0.3s ease-out;
}

.toast-notification.hide {
    animation: toastSlideOut 0.3s ease-in;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Content Wrapper */
.toast-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Toast Title */
.toast-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

/* Toast Message */
.toast-message {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    word-break: break-word;
}

/* Close Button */
.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: -2px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.toast-close:active {
    transform: scale(0.95);
}

.toast-close i {
    font-size: 14px;
}

/* Type Variations */
.toast-notification.success {
    border-left: 3px solid rgb(16 185 129 / 67%);
}

.toast-notification.success .toast-title {
    color: rgb(16 185 129 / 67%);
}

.toast-notification.error {
    border-left: 3px solid rgb(255 60 60 / 54%);
}

.toast-notification.error .toast-title {
    color: rgb(255 60 60 / 54%);
}

.toast-notification.warning {
    border-left: 3px solid #f59e0b;
}

.toast-notification.warning .toast-title {
    color: #f59e0b;
}

.toast-notification.info {
    border-left: 3px solid #3b82f6;
}

.toast-notification.info .toast-title {
    color: #3b82f6;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .toast-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        min-width: unset;
        max-width: unset;
        padding: 16px 18px;
    }

    .toast-notification.show {
        animation: toastSlideIn 0.3s ease-out;
    }

    .toast-notification.hide {
        animation: toastSlideOut 0.3s ease-in;
    }

    .toast-title {
        font-size: 14px;
    }

    .toast-message {
        font-size: 13px;
    }

    .toast-close {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .toast-close i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .toast-notification {
        padding: 16px 18px;
    }

    .toast-content-wrapper {
        gap: 4px;
    }
}
