/* ✅ SweetAlert2 Custom Styling - Antikvariát Theme */

/* Modal container */
.swal2-container {
    z-index: 10000 !important;
}

/* Main alert box */
.swal2-modal {
    border: 3px solid #931c00 !important;
    box-shadow: 0 0 30px rgba(147, 28, 0, 0.4) !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #fff 0%, #f9f6f3 100%) !important;
}

/* Title */
.swal2-title {
    color: #931c00 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    font-family: Merriweather, Arial, serif !important;
}

/* Content/HTML */
.swal2-html-container {
    color: #333 !important;
    font-size: 16px !important;
    font-family: Merriweather, Arial, serif !important;
    line-height: 1.5 !important;
}

/* Confirm button (default action) */
.swal2-confirm {
    background-color: #931c00 !important;
    color: #fff !important;
    border: 2px solid #931c00 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px 30px !important;
    border-radius: 4px !important;
    font-family: Merriweather, Arial, serif !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    background-color: #c30 !important;
    border-color: #c30 !important;
    letter-spacing: 1px !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(147, 28, 0, 0.3) !important;
}

/* Cancel button */
.swal2-cancel {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 2px solid #ccc !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px 30px !important;
    border-radius: 4px !important;
    font-family: Merriweather, Arial, serif !important;
}

.swal2-cancel:hover {
    background-color: #e5e5e5 !important;
    border-color: #999 !important;
}

/* Buttons container */
.swal2-actions {
    margin-top: 25px !important;
    gap: 10px !important;
}

/* Success icon styling */
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #931c00 !important;
}

.swal2-icon.swal2-success [class*='swal2-success-'] {
    border-color: #931c00 !important;
}

.swal2-icon.swal2-success .swal2-success-line--tip {
    background-color: #931c00 !important;
}

.swal2-icon.swal2-success .swal2-success-line--long {
    background-color: #931c00 !important;
}

/* Warning icon styling */
.swal2-icon.swal2-warning {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

/* Error icon styling */
.swal2-icon.swal2-error .swal2-x-mark {
    color: #c30 !important;
}

.swal2-icon.swal2-error [class*='swal2-x-mark-line'] {
    background-color: #c30 !important;
}

/* Info icon styling */
.swal2-icon.swal2-info {
    border-color: #4ac5d9 !important;
    color: #4ac5d9 !important;
}

/* Input field styling */
.swal2-input {
    border: 1px solid #ccc !important;
    background-color: #fff !important;
    color: #333 !important;
    font-family: Merriweather, Arial, serif !important;
    font-size: 14px !important;
}

.swal2-input:focus {
    border-color: #931c00 !important;
    box-shadow: 0 0 0 3px rgba(147, 28, 0, 0.1) !important;
}

/* Textarea styling */
.swal2-textarea {
    border: 1px solid #ccc !important;
    background-color: #fff !important;
    color: #333 !important;
    font-family: Merriweather, Arial, serif !important;
}

.swal2-textarea:focus {
    border-color: #931c00 !important;
    box-shadow: 0 0 0 3px rgba(147, 28, 0, 0.1) !important;
}

/* Popup header (optional) */
.swal2-popup.swal2-show {
    animation: swal2-show-custom 0.3s ease-in !important;
}

@keyframes swal2-show-custom {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Backdrop styling */
.swal2-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Close button styling */
.swal2-close {
    color: #931c00 !important;
    font-size: 0 !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
}

.swal2-close::before {
    content: 'X' !important;
    font-size: 24px !important;
    font-weight: bold !important;
    letter-spacing: 2px !important;
    color: #931c00 !important;
}

.swal2-close:hover {
    opacity: 1 !important;
    transform: scale(1.15) !important;
    color: #931c00 !important;
}

.swal2-close:hover::before {
    color: #c30 !important;
}

.swal2-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(147, 28, 0, 0.2) !important;
}
