/* Custom Alert Styles dengan Tema Website */

/* Primary/Danger Alert - Warna Maroon (#6A001D) */
.swal2-popup.swal2-icon-success .swal2-success-ring,
.swal2-popup.swal2-icon-success .swal2-success-fix {
    border-color: #6A001D !important;
}

.swal2-popup.swal2-icon-success [class^='swal2-success-line'] {
    background-color: #6A001D !important;
}

/* Success Alert */
.swal2-popup.swal2-icon-success {
    border-left: 5px solid #28a745 !important;
}

.swal2-popup.swal2-icon-success .swal2-icon {
    border-color: #28a745 !important;
    color: #28a745 !important;
}

/* Error Alert - Warna Maroon (#6A001D) */
.swal2-popup.swal2-icon-error {
    border-left: 5px solid #6A001D !important;
}

.swal2-popup.swal2-icon-error .swal2-icon {
    border-color: #6A001D !important;
    color: #6A001D !important;
}

.swal2-popup.swal2-icon-error [class^='swal2-x-mark-line'] {
    background-color: #6A001D !important;
}

/* Warning Alert - Warna Orange (#F79526) */
.swal2-popup.swal2-icon-warning {
    border-left: 5px solid #F79526 !important;
}

.swal2-popup.swal2-icon-warning .swal2-icon {
    border-color: #F79526 !important;
    color: #F79526 !important;
}

/* Info Alert - Warna Orange Soft */
.swal2-popup.swal2-icon-info {
    border-left: 5px solid #17a2b8 !important;
}

.swal2-popup.swal2-icon-info .swal2-icon {
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

/* Custom Button Colors */
.swal2-confirm {
    background-color: #6A001D !important;
    border-color: #6A001D !important;
}

.swal2-confirm:hover {
    background-color: #540016 !important;
    border-color: #540016 !important;
}

.swal2-cancel {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Toast Alerts */
.swal2-toast.swal2-icon-success {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745 !important;
}

.swal2-toast.swal2-icon-error {
    background-color: #f8d7da !important;
    border-left: 4px solid #6A001D !important;
}

.swal2-toast.swal2-icon-warning {
    background-color: #fff3cd !important;
    border-left: 4px solid #F79526 !important;
}

.swal2-toast.swal2-icon-info {
    background-color: #d1ecf1 !important;
    border-left: 4px solid #17a2b8 !important;
}

/* Alert Title */
.swal2-title {
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

/* Alert Text */
.swal2-html-container {
    color: #495057 !important;
}

/* Alert Container */
.swal2-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(106, 0, 29, 0.15) !important;
}

/* Progress Bar untuk Toast */
.swal2-timer-progress-bar {
    background-color: #6A001D !important;
}

/* Livewire Alert Override */
.jconfirm.jconfirm-light .jconfirm-box.jconfirm-type-blue {
    border-left-color: #6A001D !important;
}

.jconfirm.jconfirm-light .jconfirm-box.jconfirm-type-green {
    border-left-color: #28a745 !important;
}

.jconfirm.jconfirm-light .jconfirm-box.jconfirm-type-orange {
    border-left-color: #F79526 !important;
}

.jconfirm.jconfirm-light .jconfirm-box.jconfirm-type-red {
    border-left-color: #6A001D !important;
}

/* Language Switcher Style */
#languageDropdown {
    color: #fff !important;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

#languageDropdown:hover {
    color: #F79526 !important;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item.active {
    background-color: #6A001D !important;
    color: #fff !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #6A001D !important;
}
