/* resources/css/notifications.css */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #075b46;
    overflow: hidden;
    position: relative;
}

.toast.show {
    transform: translateX(0);
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #666;
}

.toast-close {
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 4px;
    line-height: 1;
}

.toast-close:hover {
    color: #333;
}

/* Types */
.toast-success { border-left-color: #075b46; }
.toast-success .toast-icon { background: #075b46; }

.toast-error { border-left-color: #e53e3e; }
.toast-error .toast-icon { background: #e53e3e; }

.toast-warning { border-left-color: #fcc417; }
.toast-warning .toast-icon { background: #fcc417; color: #000; }

.toast-info { border-left-color: #3182ce; }
.toast-info .toast-icon { background: #3182ce; }

/* Progress Bar */
.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%;
    background: inherit;
    transform-origin: left;
}

.toast-success .toast-progress-bar { background: #075b46; opacity: 0.3; }
.toast-error .toast-progress-bar { background: #e53e3e; opacity: 0.3; }
.toast-warning .toast-progress-bar { background: #fcc417; opacity: 0.3; }
.toast-info .toast-progress-bar { background: #3182ce; opacity: 0.3; }

@keyframes progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    .toast {
        width: 100%;
    }
}
