/* Premium Onedash SweetAlert2 Global Overrides (Outline Style) */
.swal2-popup { border-radius: 20px !important; padding: 1.5rem !important; border: 1px solid rgba(0,0,0,0.05) !important; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1) !important; }
.swal2-title { font-weight: 800 !important; color: #1a1a1a !important; font-size: 1.3rem !important; margin-bottom: 10px !important; }
.swal2-html-container { font-size: 13px !important; color: #555 !important; line-height: 1.6 !important; }
.swal2-actions { margin-top: 2rem !important; gap: 15px !important; }
.swal2-icon { display: none !important; } /* Forcibly hide icons */

/* Button Base Styling (Outline Focus) */
.swal2-styled { 
    border-radius: 30px !important; 
    padding: 12px 45px !important; 
    font-weight: 700 !important; 
    font-size: 12px !important; 
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(.4,0,.2,1) !important;
    background: transparent !important;
    border-width: 2px !important;
    box-shadow: none !important; /* Remove default shadow */
}
.swal2-styled:focus { box-shadow: none !important; }
.swal2-styled:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important; }

/* Dynamic Outline Colors */
.swal-btn-success { border: 2px solid #28a745 !important; color: #28a745 !important; }
.swal-btn-success:hover { background: #28a745 !important; color: #fff !important; }

.swal-btn-danger { border: 2px solid #dc3545 !important; color: #dc3545 !important; }
.swal-btn-danger:hover { background: #dc3545 !important; color: #fff !important; }

.swal-btn-info { border: 2px solid #0dcaf0 !important; color: #0dcaf0 !important; }
.swal-btn-info:hover { background: #0dcaf0 !important; color: #fff !important; }

.swal-btn-warning { border: 2px solid #ffc107 !important; color: #ffc107 !important; }
.swal-btn-warning:hover { background: #ffc107 !important; color: #000 !important; }

.swal-btn-primary { border: 2px solid #0d6efd !important; color: #0d6efd !important; }
.swal-btn-primary:hover { background: #0d6efd !important; color: #fff !important; }

.swal2-cancel { border: 2px solid #6c757d !important; color: #6c757d !important; background: transparent !important; }
.swal2-cancel:hover { background: #6c757d !important; color: #fff !important; }

.swal2-show { animation: swal2-show 0.4s cubic-bezier(.34,1.56,.64,1) !important; }

/* Premium Receipt Card Styling */
.receipt-container { background: #fff; border: 2px dashed #333; border-radius: 12px; padding: 25px; text-align: left; margin-top: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.receipt-label { color: #666; font-size: 12px; text-transform: uppercase; font-weight: 700; }
.receipt-value { color: #111; font-size: 14px; font-weight: 800; }
.receipt-pan { color: #0d6efd; font-family: 'Courier New', Courier, monospace; letter-spacing: 2px; font-size: 16px; }
.receipt-actions { margin-top: 20px; display: flex; gap: 10px; }

/* Modal Animation */
.modal.fade .modal-dialog { transform: scale(0.8); transition: transform 0.3s ease-out; }
.modal.show .modal-dialog { transform: scale(1); }

/* A4 Print Optimization */
@media print {
    @page { size: A4; margin: 2cm; }
    body * { visibility: hidden; }
    #printArea, #printArea * { visibility: visible; }
    #printArea { 
        position: absolute; left: 0; top: 0; width: 100%; 
        border: 2px dashed #000 !important; 
        padding: 40px !important;
        box-shadow: none !important;
    }
    .receipt-actions { display: none !important; }
    .print-header { display: block !important; text-align: center; margin-bottom: 30px; border-bottom: 2px solid #000; padding-bottom: 10px; }
}
.print-header { display: none; }

/* Dashboard Widget Styles */
.widgets-icons-2 {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border-radius: 10px;
}
.bg-gradient-primary { background: linear-gradient(45deg, #008cff, #21d4fd) !important; }
.bg-gradient-info { background: linear-gradient(45deg, #02c0df, #99e1e5) !important; }
.bg-gradient-success { background: linear-gradient(45deg, #15d734, #9ef0b0) !important; }
.bg-gradient-danger { background: linear-gradient(45deg, #ff5b2e, #ff896d) !important; }
.bg-gradient-purple { background: linear-gradient(45deg, #6a11cb, #2575fc) !important; }

.card.radius-10 { transition: all 0.3s ease; }
.card.radius-10:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

.stats-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
}

.btn-white { background: #fff; color: #2575fc; border: 1px solid #fff; }
.btn-white:hover { background: #f8f9fa; color: #6a11cb; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid #ffffff66; }
.btn-outline-white:hover { background: #ffffff22; color: #fff; }

/* Dark Mode Compatibility Fixes */
html.dark-theme .text-muted { color: rgba(255, 255, 255, 0.5) !important; }
html.dark-theme .form-label { color: #d1d4d7 !important; }
.extra-small { font-size: 11px; }

/* Transitions */
.transition-all { transition: all 0.3s ease !important; }
.hover-light:hover { background-color: rgba(0,0,0,0.02) !important; }

/* Legacy Utilities */
.btn-sm { padding: 4px 10px; font-size: 13px }
.bg-red { background: red }
.pulse { animation: 1.4s infinite pulseEffect }
@keyframes pulseEffect { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.1) } }
.logo-icon { width: 40px }
.sidebar-header .logo-text { font-size: 18px; font-weight: 600 }
.btn-xs { padding: 2px 8px; font-size: 11px; line-height: 1.2; border-radius: 3px }
.badge { display: inline-block; padding: 3px 8px; font-size: 11px; border-radius: 4px; color: #fff }
.badge-primary { background: #0d6efd }
.badge-success { background: #28a745 }
.badge-danger { background: #dc3545 }
.badge-warning { background: #ffc107; color: #000 }
.badge-info { background: #17a2b8 }
.badge-dark { background: #343a40 }
.loader-logo { width: 85px; animation: 2s infinite smoothPulse; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .15)) }
.spinner { width: 50px; height: 50px; border: 4px solid #0d6efd; border-top-color: transparent; border-radius: 50%; margin: 20px auto 0; animation: spin 1s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes smoothPulse { 0%, 100% { transform: scale(1); opacity: .85 } 50% { transform: scale(1.12); opacity: 1 } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px) } }

/* Premium Loader Styles */
.premium-loader {
    width: 60px;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.premium-loader span {
    width: 10px;
    height: 10px;
    background: #0d6efd;
    border-radius: 5px;
    animation: premium-loader 0.5s ease-in-out infinite alternate;
}
.premium-loader span:nth-child(2) { animation-delay: 0.1s; }
.premium-loader span:nth-child(3) { animation-delay: 0.2s; }
.premium-loader span:nth-child(4) { animation-delay: 0.3s; }
@keyframes premium-loader {
    from { height: 10px; }
    to { height: 40px; }
}

/* Premium Tables Styling */
.table-responsive {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

html.dark-theme .table-responsive {
    background: #151f30;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.table {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

/* Headers */
.table thead {
    background: rgba(52, 97, 255, 0.03) !important;
}

html.dark-theme .table thead {
    background: rgba(52, 97, 255, 0.08) !important;
}

.table thead th {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #475569 !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-top: none !important;
}

html.dark-theme .table thead th {
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Body rows & cells */
.table tbody tr {
    transition: all 0.2s ease-in-out !important;
}

.table tbody tr:hover {
    background-color: rgba(52, 97, 255, 0.02) !important;
}

html.dark-theme .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.table tbody td {
    padding: 14px 20px !important;
    font-size: 13px !important;
    color: #334155 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-top: none !important;
    vertical-align: middle !important;
}

html.dark-theme .table tbody td {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.table tr:last-child td {
    border-bottom: none !important;
}

/* DataTables elements layout spacing */
.dataTables_wrapper .dataTables_filter {
    padding: 1.25rem !important;
}

.dataTables_wrapper .dataTables_length {
    padding: 1.25rem !important;
}

.dataTables_wrapper .dataTables_info {
    padding: 1.25rem !important;
    font-size: 13px !important;
    color: #64748b !important;
}

html.dark-theme .dataTables_wrapper .dataTables_info {
    color: #94a3b8 !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 1.25rem !important;
}

/* Pagination buttons custom layout */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin-left: 4px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3461ff !important;
    color: #ffffff !important;
    border-color: #3461ff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #3461ff !important;
    color: #ffffff !important;
    border-color: #3461ff !important;
}

html.dark-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #151f30 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

/* Premium Soft Badge Styling */
.badge {
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    letter-spacing: 0.3px;
}
.bg-light-success {
    background-color: rgba(18, 191, 35, 0.08) !important;
    color: #12bf24 !important;
    border: 1px solid rgba(18, 191, 35, 0.15) !important;
}
.bg-light-danger {
    background-color: rgba(231, 46, 46, 0.08) !important;
    color: #e72e2e !important;
    border: 1px solid rgba(231, 46, 46, 0.15) !important;
}
.bg-light-warning {
    background-color: rgba(255, 204, 50, 0.08) !important;
    color: #ffb800 !important;
    border: 1px solid rgba(255, 204, 50, 0.15) !important;
}
.bg-light-info {
    background-color: rgba(50, 190, 255, 0.08) !important;
    color: #32bfff !important;
    border: 1px solid rgba(50, 190, 255, 0.15) !important;
}
.bg-light-secondary {
    background-color: rgba(108, 117, 125, 0.08) !important;
    color: #6c757d !important;
    border: 1px solid rgba(108, 117, 125, 0.15) !important;
}

/* Table Filter & Input Enhancements */
.input-group.radius-10 {
    border-radius: 10px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01) !important;
    transition: all 0.2s ease;
}
.input-group.radius-10:focus-within {
    border-color: #3461ff !important;
    box-shadow: 0 0 0 3px rgba(52, 97, 255, 0.1) !important;
}
.form-select.radius-10, .form-control.radius-10 {
    border-radius: 10px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    transition: all 0.2s ease;
}
.form-select.radius-10:focus, .form-control.radius-10:focus {
    border-color: #3461ff !important;
    box-shadow: 0 0 0 3px rgba(52, 97, 255, 0.1) !important;
}

/* Premium Form Design overrides */
.form-card-premium {
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
}

html.dark-theme .form-card-premium {
    background: #151f30 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.form-header-premium {
    background: linear-gradient(135deg, #3461ff, #5e5ce6) !important;
    color: #fff !important;
    padding: 2.5rem 2rem !important;
    border-bottom: none !important;
}

.price-badge-premium {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    display: inline-block;
}

.form-body-premium {
    padding: 3rem 2.5rem !important;
}

.form-label-premium {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}

html.dark-theme .form-label-premium {
    color: #94a3b8 !important;
}

.form-control-premium {
    border-radius: 12px !important;
    border: 1.5px solid rgba(226, 232, 240, 0.8) !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html.dark-theme .form-control-premium {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.form-control-premium:focus {
    border-color: #3461ff !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(52, 97, 255, 0.12) !important;
    outline: none !important;
}

html.dark-theme .form-control-premium:focus {
    background: #0f172a !important;
    border-color: #3461ff !important;
    box-shadow: 0 0 0 4px rgba(52, 97, 255, 0.2) !important;
}

/* Styled Upload Inputs */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(52, 97, 255, 0.25) !important;
    background: rgba(52, 97, 255, 0.02) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-upload-wrapper:hover {
    border-color: #3461ff !important;
    background: rgba(52, 97, 255, 0.05) !important;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn {
    background: #3461ff !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.file-upload-text {
    font-size: 13px !important;
    color: #64748b !important;
    pointer-events: none;
}

html.dark-theme .file-upload-text {
    color: #94a3b8 !important;
}


