/* toast.css - Add this to your project */

#toast-container {
    padding-top: 60px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast-persistent {
    border-left: 4px solid currentColor;
}

.toast-persistent .toast-progress {
    display: none;
}


.toast {
    pointer-events: auto;
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in forwards;
    animation-delay: 0s, 4.7s;
    backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border-width: 1px;
}

.toast-content {
    padding: 16px;
    padding-bottom: 0px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.toast-text {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.4;
}

.toast-close {
    color: rgba(148, 163, 184, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
    width: 20px;
    height: 20px;
}

.toast-close:hover {
    color: white;
}

.toast-progress {
    height: 4px;
    margin-top: 12px;
    border-radius: 9999px;
    animation: progress 5s linear forwards;
}

/* Toast Types */
.toast-success {
    background: rgba(6, 78, 59, 0.9);
    border-color: rgba(5, 150, 105, 0.5);
}
.toast-success .toast-icon {
    background: rgb(5, 150, 105);
}
.toast-success .toast-progress {
    background: rgb(16, 185, 129);
}

.toast-error {
    background: rgba(127, 29, 29, 0.9);
    border-color: rgba(220, 38, 38, 0.5);
}
.toast-error .toast-icon {
    background: rgb(220, 38, 38);
}
.toast-error .toast-progress {
    background: rgb(239, 68, 68);
}

.toast-info {
    background: rgba(30, 58, 138, 0.9);
    border-color: rgba(37, 99, 235, 0.5);
}
.toast-info .toast-icon {
    background: rgb(37, 99, 235);
}
.toast-info .toast-progress {
    background: rgb(59, 130, 246);
}

.toast-gray {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.5);
}
.toast-gray .toast-icon {
    background: rgb(71, 85, 105);
}
.toast-gray .toast-progress {
    background: rgb(100, 116, 139);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}