/* Toast Notification System Styles */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    border-left: 4px solid #333;
}

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

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

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
    background: linear-gradient(to right, #ecfdf5 0%, white 10%);
}

.toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2 0%, white 10%);
}

.toast-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb 0%, white 10%);
}

.toast-info {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, #eff6ff 0%, white 10%);
}

/* Loading Toast */
.toast-loading .toast-icon::after {
    content: '⏳';
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Confirmation Modal */
.toast-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.toast-confirm-show {
    opacity: 1;
}

.toast-confirm-hide {
    opacity: 0;
}

.toast-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.toast-confirm-dialog {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s;
}

.toast-confirm-show .toast-confirm-dialog {
    transform: scale(1);
}

.toast-confirm-dialog h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.toast-confirm-dialog p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.toast-prompt-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.toast-prompt-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.toast-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.toast-confirm-buttons button {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.toast-confirm-cancel {
    background: #f3f4f6;
    color: #374151;
}

.toast-confirm-cancel:hover {
    background: #e5e7eb;
}

.toast-confirm-ok {
    background: #c41e3a;
    color: white;
}

.toast-confirm-ok:hover {
    background: #a01729;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: 100%;
        max-width: 100%;
        transform: translateY(-100px);
    }
    
    .toast-show {
        transform: translateY(0);
    }
    
    .toast-hide {
        transform: translateY(-100px);
    }
    
    .toast-confirm-dialog {
        padding: 24px;
        width: 95%;
    }
    
    .toast-confirm-buttons {
        flex-direction: column-reverse;
    }
    
    .toast-confirm-buttons button {
        width: 100%;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #1f2937;
        border-left-color: #4b5563;
    }
    
    .toast-message {
        color: #f3f4f6;
    }
    
    .toast-close {
        color: #9ca3af;
    }
    
    .toast-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #f3f4f6;
    }
    
    .toast-confirm-dialog {
        background: #1f2937;
    }
    
    .toast-confirm-dialog h3 {
        color: #f3f4f6;
    }
    
    .toast-confirm-dialog p {
        color: #d1d5db;
    }
    
    .toast-prompt-input {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .toast-confirm-cancel {
        background: #374151;
        color: #f3f4f6;
    }
    
    .toast-confirm-cancel:hover {
        background: #4b5563;
    }
}

