/* Toast Notification Styles */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
}

.toast {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.toast.success {
    border-left-color: #00f2fe;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.toast.error {
    border-left-color: var(--accent-pink);
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.toast.warning {
    border-left-color: #ffa726;
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.1) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.toast.info {
    border-left-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar 3s linear forwards;
}

.toast.success .toast-progress {
    color: #00f2fe;
}

.toast.error .toast-progress {
    color: var(--accent-pink);
}

.toast.warning .toast-progress {
    color: #ffa726;
}

.toast.info .toast-progress {
    color: var(--accent-purple);
}

@keyframes slideInRight {
    from {
        transform: translate3d(400px, 0, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    to {
        transform: translate3d(400px, 0, 0);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

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

/* Confirmation Modal Styles */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 450px;
    width: 90%;
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease-out;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes modalSlideIn {
    from {
        transform: translate3d(-50%, -50%, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.confirm-modal-icon {
    font-size: 2rem;
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.confirm-modal-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}