/* Toast Notification Styles */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    border-left: 4px solid var(--primary-600);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    pointer-events: all;
    min-width: 300px;
    max-width: 400px;
}

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

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

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-message {
    flex: 1;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-900);
}

.toast-content {
    flex: 1;
    font-family: 'Lora', serif;
}

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.2s ease-in-out;
}

.toast-close:hover {
    color: var(--gray-900);
}

.toast-close svg {
    width: 100%;
    height: 100%;
}

/* Toast Types */
.toast-success {
    border-left-color: var(--green-600);
}

.toast-success .toast-icon {
    color: var(--green-600);
}

.toast-error {
    border-left-color: var(--red-600);
}

.toast-error .toast-icon {
    color: var(--red-600);
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left-color: var(--primary-600);
}

.toast-info .toast-icon {
    color: var(--primary-600);
}

/* Confirmation Toast */
.toast-confirm {
    border-left-color: var(--primary-600);
    padding: 20px;
}

.toast-confirm .toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toast-confirm .toast-icon {
    color: var(--primary-600);
}

.toast-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.toast-btn {
    padding: 8px 16px;
    outline: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: 'Merriweather', serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.toast-btn-cancel {
    background: white;
    color: var(--gray-700);
}

.toast-btn-cancel:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.toast-btn-confirm {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.toast-btn-confirm:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
}

/* Responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: 0;
        max-width: none;
    }
}
