/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    max-width: 320px;
    width: auto;
    pointer-events: none;
}

@media (max-width: 576px) {
    .toast-container {
        top: 60px;
        right: 10px;
        max-width: 280px;
    }
}

.toast {
    pointer-events: auto;
    background-color: var(--card-bg, #ffffff);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin-bottom: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    min-width: 280px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hiding {
    opacity: 0;
    transform: translateX(400px);
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-bottom: none;
    background-color: transparent;
}

.toast-icon {
    display: none;
}

.toast-title {
    flex: 1;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    padding: 0;
    margin-left: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 16px;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    opacity: 1;
}

.toast-body {
    padding: 8px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    word-wrap: break-word;
    line-height: 1.4;
}

.toast-body a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.toast-body a:hover {
    opacity: 0.8;
}

.toast-progress {
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.toast-progress-bar {
    height: 100%;
    background-color: currentColor;
    transition: width linear;
    width: 100%;
}

/* Toast Types */
.toast.toast-success {
    background-color: var(--success-color, #059669);
}

.toast.toast-success .toast-progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
}

.toast.toast-warning {
    background-color: var(--warning-color, #d97706);
}

.toast.toast-warning .toast-progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
}

.toast.toast-error {
    background-color: var(--danger-color, #dc2626);
}

.toast.toast-error .toast-progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
}

.toast.toast-info {
    background-color: var(--info-color, #0891b2);
}

.toast.toast-info .toast-progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Dark Theme Support */
html[data-theme='dark'] .toast-progress {
    background-color: rgba(255, 255, 255, 0.15);
}
