/* SweetAlert Popup Custom Styling */

/* Main container styling */
.swal2-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    background: #ffffff;
}

/* Header styling */
.swal2-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Content text styling */
.swal2-content {
    color: #5a6c7d;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Icon styling */
.swal2-icon {
    margin: 1rem auto;
    border: 4px solid transparent;
    border-radius: 50%;
    /* width: 80px;
    height: 80px; */
    font-size: 15px;
    position: relative;
}

/* Success icon */
.swal2-icon.swal2-success {
    border-color: #a5dc86;
    color: #a5dc86;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #a5dc86;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #a5dc86;
}

/* Error icon */
.swal2-icon.swal2-error {
    border-color: #f27474;
    color: #f27474;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #f27474;
}

/* Warning icon */
.swal2-icon.swal2-warning {
    border-color: #f8bb86;
    color: #f8bb86;
}

/* Info icon */
.swal2-icon.swal2-info {
    border-color: #3fc3ee;
    color: #3fc3ee;
}

/* Question icon */
.swal2-icon.swal2-question {
    border-color: #87adbd;
    color: #87adbd;
}

/* Button container */
.swal2-actions {
    margin-top: 1.5rem;
    gap: 0.75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button base styling */
.swal2-styled {
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
    min-width: 100px;
}

/* Confirm button */
.swal2-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.swal2-confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Cancel button */
.swal2-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.swal2-cancel:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.swal2-cancel:active {
    background: #dee2e6;
}

/* Deny button */
.swal2-deny {
    background: #dc3545;
    color: white;
}

.swal2-deny:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Input styling */
.swal2-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.1rem;
    transition: border-color 0.2s ease;
    width: 100%;
    margin: 0.5rem 0;
}

.swal2-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Select styling */
.swal2-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.swal2-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Textarea styling */
.swal2-textarea {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.swal2-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* File input styling */
.swal2-file {
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background: #f8f9fa;
}

.swal2-file:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

/* Range input styling */
.swal2-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.swal2-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.swal2-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Radio and checkbox styling */
.swal2-radio,
.swal2-checkbox {
    margin: 0.5rem 0;
}

.swal2-radio input,
.swal2-checkbox input {
    margin-right: 0.5rem;
}

/* Progress bar styling */
.swal2-progress-steps {
    margin-bottom: 1rem;
}

.swal2-progress-step {
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.swal2-progress-step.swal2-active-progress-step {
    background: #667eea;
    color: white;
}

.swal2-progress-step.swal2-completed-progress-step {
    background: #28a745;
    color: white;
}

/* Footer styling */
.swal2-footer {
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    padding-top: 1rem;
    color: #6c757d;
    font-size: 1rem;
}

/* Close button */
.swal2-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.swal2-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Timer styling */
.swal2-timer-progress-bar {
    background: #667eea;
    height: 4px;
    border-radius: 2px;
}

/* Custom animations */
@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    45% {
        transform: scale(1.05);
        opacity: 1;
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .swal2-popup {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .swal2-title {
        font-size: 1.5rem;
    }
    
    .swal2-content {
        font-size: 1.1rem;
    }
    
    .swal2-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .swal2-styled {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .swal2-popup {
        padding: 1rem;
    }
    
    .swal2-title {
        font-size: 1.3rem;
    }
    
    .swal2-icon {
        width: 60px;
        height: 60px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .swal2-popup {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .swal2-title {
        color: #f7fafc;
    }
    
    .swal2-content {
        color: #cbd5e0;
    }
    
    .swal2-input,
    .swal2-select,
    .swal2-textarea {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .swal2-input:focus,
    .swal2-select:focus,
    .swal2-textarea:focus {
        border-color: #667eea;
    }
    
    .swal2-cancel {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .swal2-cancel:hover {
        background: #718096;
        color: #f7fafc;
    }
    
    .swal2-close {
        color: #cbd5e0;
    }
    
    .swal2-close:hover {
        background: #4a5568;
        color: #f7fafc;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .swal2-popup {
        border: 2px solid #000;
    }
    
    .swal2-styled {
        border: 2px solid #000;
    }
    
    .swal2-input,
    .swal2-select,
    .swal2-textarea {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .swal2-popup,
    .swal2-styled,
    .swal2-close {
        transition: none;
    }
    
    .swal2-confirm:hover,
    .swal2-deny:hover {
        transform: none;
    }
}

/* Disabled input styling */
.swal2-input:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dark mode support for disabled inputs */
@media (prefers-color-scheme: dark) {
    .swal2-input:disabled {
        background-color: #4a5568;
        opacity: 0.6;
    }
}
