/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transform: translateX(400px);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    max-width: 100%;
    animation: slideIn 0.3s ease forwards;
}

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

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

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

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

.toast.info {
    border-left-color: #17a2b8;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 12px 16px 8px;
    font-weight: 600;
    font-size: 14px;
}

.toast-icon {
    margin-right: 8px;
    font-size: 16px;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

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

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #495057;
}

.toast-body {
    padding: 0 16px 12px;
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
}

.toast-progress {
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background-color: currentColor;
    width: 100%;
    transform-origin: left;
    animation: progressBar linear forwards;
}

.toast.success .toast-progress-bar {
    background-color: #28a745;
}

.toast.error .toast-progress-bar {
    background-color: #dc3545;
}

.toast.warning .toast-progress-bar {
    background-color: #ffc107;
}

.toast.info .toast-progress-bar {
    background-color: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        transform: translateY(-100px);
        animation: slideInMobile 0.3s ease forwards;
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes slideInMobile {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d3748;
        color: #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .toast-body {
        color: #cbd5e0;
    }
    
    .toast-close {
        color: #a0aec0;
    }
    
    .toast-close:hover {
        color: #e2e8f0;
    }
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirmation-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.confirmation-modal.show .confirmation-dialog {
    transform: scale(1) translateY(0);
}

.confirmation-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirmation-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.confirmation-icon.danger {
    background-color: #ffeaea;
    color: #dc3545;
}

.confirmation-icon.warning {
    background-color: #fff3cd;
    color: #856404;
}

.confirmation-icon.info {
    background-color: #cce7ff;
    color: #0066cc;
}

.confirmation-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.confirmation-body {
    padding: 20px 24px;
}

.confirmation-message {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.confirmation-details {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #6c757d;
    border-left: 3px solid #dee2e6;
}

.confirmation-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.confirmation-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.confirmation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.confirmation-btn.primary {
    background-color: #dc3545;
    color: white;
}

.confirmation-btn.primary:hover:not(:disabled) {
    background-color: #c82333;
    transform: translateY(-1px);
}

.confirmation-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.confirmation-btn.secondary:hover:not(:disabled) {
    background-color: #5a6268;
}

/* Dark theme support for modals */
@media (prefers-color-scheme: dark) {
    .confirmation-dialog {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .confirmation-header {
        border-bottom-color: #4a5568;
    }
    
    .confirmation-title {
        color: #e2e8f0;
    }
    
    .confirmation-message {
        color: #cbd5e0;
    }
    
    .confirmation-details {
        background-color: #1a202c;
        color: #a0aec0;
        border-left-color: #4a5568;
    }
    
    .confirmation-footer {
        border-top-color: #4a5568;
    }
}
