/* =================================================================
   TOASTER NOTIFICATION STYLES
   ================================================================= */

.toaster-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toaster {
    pointer-events: all;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.3s ease;
}

.toaster.removing {
    animation: slideOutRight 0.3s ease forwards;
}

.toaster-content {
    display: flex;
    align-items: start;
    padding: 18px 20px;
    gap: 14px;
}

.toaster-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toaster-body {
    flex: 1;
    padding-top: 2px;
}

.toaster-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.toaster-message {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.toaster-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    margin-top: -2px;
}

.toaster-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.toaster-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.toaster-progress-bar {
    height: 100%;
    background: currentColor;
    animation: progress linear;
    transform-origin: left;
}

/* Success Toast */
.toaster.success .toaster-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.toaster.success .toaster-title {
    color: #065f46;
}

.toaster.success .toaster-message {
    color: #047857;
}

.toaster.success .toaster-progress-bar {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Error Toast */
.toaster.error .toaster-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.toaster.error .toaster-title {
    color: #991b1b;
}

.toaster.error .toaster-message {
    color: #dc2626;
}

.toaster.error .toaster-progress-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Warning Toast */
.toaster.warning .toaster-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.toaster.warning .toaster-title {
    color: #92400e;
}

.toaster.warning .toaster-message {
    color: #d97706;
}

.toaster.warning .toaster-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Info Toast */
.toaster.info .toaster-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.toaster.info .toaster-title {
    color: #1e40af;
}

.toaster.info .toaster-message {
    color: #2563eb;
}

.toaster.info .toaster-progress-bar {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .toaster-container {
        left: 15px;
        right: 15px;
        top: 15px;
    }

    .toaster {
        min-width: auto;
        max-width: none;
    }

    .toaster-content {
        padding: 15px;
    }

    .toaster-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

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

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