#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

/* === TOAST CARD === */
.app-toast {
    position: relative;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow:
        0 10px 30px -5px rgba(0, 0, 0, 0.1),
        0 5px 10px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;

    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.4s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
}

.app-toast.closing {
    animation: slideOut 0.4s forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* === CONTENT === */
.toast-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.toast-content { flex: 1; }
.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 4px;
    color: #1e293b;
}
.toast-message {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.toast-close {
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
}
.toast-close:hover {
    background: #f1f5f9;
    color: #334155;
}

/* === PROGRESS === */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,0.05);
}
.toast-progress-bar {
    height: 100%;
    width: 100%;
    animation: progress linear forwards;
}
.app-toast:hover .toast-progress-bar {
    animation-play-state: paused;
}
@keyframes progress {
    to { width: 0%; }
}

/* === THEMES === */
.app-toast.success {
    border-left: 4px solid #059669;
}
.app-toast.success .toast-icon-wrapper {
    background: #d1fae5;
    color: #059669;
}
.app-toast.success .toast-progress-bar {
    background: #059669;
}

.app-toast.error {
    border-left: 4px solid #dc2626;
}
.app-toast.error .toast-icon-wrapper {
    background: #fee2e2;
    color: #dc2626;
}
.app-toast.error .toast-progress-bar {
    background: #dc2626;
}

.app-toast.warning {
    border-left: 4px solid #d97706;
}
.app-toast.warning .toast-icon-wrapper {
    background: #fef3c7;
    color: #d97706;
}
.app-toast.warning .toast-progress-bar {
    background: #d97706;
}

.app-toast.info {
    border-left: 4px solid #2563eb;
}
.app-toast.info .toast-icon-wrapper {
    background: #dbeafe;
    color: #2563eb;
}
.app-toast.info .toast-progress-bar {
    background: #2563eb;
}
