/**
 *
 * You can write your CSS code here, DO NOT touch the default JavaScript file
 * because it will make it harder for you to update.
 *
 */

/*# sourceMappingURL=custom.css.map */

/* Override app.css fixed icon sizing inside buttons */
.btn i,
.btn svg {
    height: auto !important;
    width: auto !important;
    margin: 4px;
}

/* Add spacing between FA icons and adjacent text inside buttons.
   Uses margin-inline-end for automatic RTL/LTR support.
   Resets physical margins to override any mr-* / ml-* utility classes. */
/* .btn > i {
    margin-inline-end: 0.3em;
} */

/*
 * Geist Variable bold (700) is heavier than the previous Nunito font.
 * Remap weights down two steps so the UI doesn't feel over-bold:
 *   bold / 700  → 500 (medium)
 *   800         → 600 (semi-bold)
 *   900         → 700
 */
b,
strong {
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

th,
dt,
label {
    font-weight: 500;
}

.fw-bold,
.font-weight-bold {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 450 !important;
}

.fw-bolder {
    font-weight: 600 !important;
}

.form-group.mandatory .form-label:first-child:after {
    color: #dc3545;
    content: " *";
}

.custom-switch {
    padding: 0 !important;
}

.custom-switch-2 {
    padding-left: 2.25rem !important;
}

.edit-image-preview {
    max-width: 10%;
    height: auto;
    margin-top: 5px;
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 5px;
}

.pagination {
    gap: 6px 4px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    margin: 0;
}

/* Toggle subcategories button */
button.toggle-subcategories {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    vertical-align: middle;
    margin-right: 6px;
}

button.toggle-subcategories i {
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.table:not(.table-sm):not(.table-md):not(.dataTable) td,
.table:not(.table-sm):not(.table-md):not(.dataTable) th {
    padding: 0 17px;
}

.btn.icon {
    min-width: 30px !important;
    min-height: 30px !important;
}

#table_list .dropdown {
    padding: 0;
    min-width: 20px !important;
    min-height: 30px !important;
    width: 40px;
}

.draggable .draggable-item .bg-light {
    height: 93% !important;
}

.chart-container {
    position: relative;
    height: 300px !important;
    max-height: 300px;
}

#mainChart {
    max-height: 300px !important;
}

.card-statistic-1 {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow: hidden;
}

.card-statistic-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-statistic-1 .card {
    height: 100%;
    margin-bottom: 0;
}

.card-statistic-1 .card-wrap {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.card-statistic-1 .card-icon {
    flex-shrink: 0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.card-statistic-1 .card-icon i {
    font-size: 18px;
}

.card-statistic-1 .card-header {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5px;
}

.card-statistic-1 .card-header h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #6c757d;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-wrap: break-word;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
    text-align: left;
}

.card-statistic-1 .card-body {
    flex-shrink: 0;
    text-align: right;
    min-width: fit-content;
}

.card-statistic-1 .card-body span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
}

.card-statistic-1 .card-body .text-small {
    font-size: 12px;
    margin-top: 4px;
}

/* Ensure equal heights for cards in rows */
.row>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.row>[class*="col-"]>.card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    padding: 8px;
}

.card-statistic-1 .card-icon i {
    font-size: 18px;
    color: white;
}

.card-statistic-2 .card-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-statistic-2 .card-icon i {
    font-size: 18px;
    color: white;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile/Touch Support */
.sortable li {
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sortable li.ui-sortable-helper {
    opacity: 0.8;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sortable li.ui-sortable-placeholder {
    visibility: visible !important;
    opacity: 0.3;
    border: 2px dashed #007bff;
    background: #f0f0f0;
}

.sortable>div {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex-direction: row !important;
}

.sortable .ui-state-default {
    display: flex;
    flex-direction: row;
}

.sortable .ui-state-default>div {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.sortable .ui-state-default .row {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: stretch;
    margin: 0;
}

.sortable .ui-state-default .col-6 {
    display: flex;
    flex-direction: column;
}

.sortable .ui-state-default .col-6:first-child {
    align-items: center;
    justify-content: center;
}

.sortable .ui-state-default .col-6:first-child img {
    max-height: 150px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sortable .ui-state-default .col-6:last-child {
    justify-content: center;
    align-items: center;
}

/* Mobile/Touch Support */
.sortable li {
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sortable li.ui-sortable-helper {
    opacity: 0.8;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sortable li.ui-sortable-placeholder {
    visibility: visible !important;
    opacity: 0.3;
    border: 2px dashed #007bff;
    background: #f0f0f0;
}

.bootstrap-table .fixed-table-container .fixed-table-body {
    height: auto !important;
}

.language-switcher {
    margin-right: 0;
    white-space: nowrap;
}

.language-switcher .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
    overflow: visible;
}

.language-switcher .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-switcher .nav-link .language-name {
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block;
    margin-right: 4px;
}

.language-switcher .nav-link span {
    display: inline-block;
}

.language-dropdown {
    min-width: 220px;
    max-width: 300px;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    background-color: #fff;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    overflow: visible;
    word-wrap: break-word;
}

.language-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.language-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.language-item .language-flag {
    border-radius: 2px;
    object-fit: cover;
}

.language-item span {
    flex: 1;
    margin-left: 8px;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    min-width: 0;
}

.language-item i {
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 8px;
}

.language-item .rtl-indicator {
    margin-left: 8px;
    flex-shrink: 0;
}

/* RTL Support */
[dir="rtl"] .language-switcher .nav-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-item span {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .language-item i {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher .nav-link span {
        display: none;
    }

    .language-dropdown {
        min-width: 150px;
    }

    .language-item span {
        font-size: 14px;
    }
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
    .sortable li {
        min-height: 120px;
        padding: 10px;
    }

    .sortable li .row {
        min-height: 100px;
    }
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
    .sortable li {
        min-height: 120px;
        padding: 10px;
    }

    .sortable li .row {
        min-height: 100px;
    }
}

/* Fix action button click on mobile devices */
@media (max-width: 768px) {

    .btn-action-icon,
    .delete-form,
    .edit-data,
    .edit_btn,
    .set-form-url,
    .btn-icon {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        user-select: none !important;
    }

    /* Status toggle switches */
    .update-status,
    .custom-control-input.update-status,
    .custom-switch .custom-control-input {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    /* Ensure buttons in mobile responsive table are clickable */
    .bootstrap-table .fixed-table-body .table td .btn-action-icon,
    .bootstrap-table .fixed-table-body .table td .delete-form,
    .bootstrap-table .fixed-table-body .table td .edit-data,
    .bootstrap-table .fixed-table-body .table td .edit_btn,
    .bootstrap-table .fixed-table-body .table td .set-form-url {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }

    /* Specific styles for action column in tables */
    .bootstrap-table .fixed-table-body .table td[data-field="operate"] {
        padding: 8px !important;
    }

    /* Status switches in table */
    .bootstrap-table .fixed-table-body .table td .update-status,
    .bootstrap-table .fixed-table-body .table td .update-status *,
    .bootstrap-table .fixed-table-body .table td .custom-control-input,
    .bootstrap-table .fixed-table-body .table td .custom-control-input * {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .card-statistic-1 .card-wrap {
        padding: 15px;
        gap: 10px;
    }

    .card-statistic-1 .card-icon {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .card-statistic-1 .card-body span {
        font-size: 16px;
    }

    .card-statistic-1 .card-header h4 {
        font-size: 13px;
    }

}

/** Small mobile device (max-width: 480px) media query */
@media (max-width: 480px) {
    .card-statistic-1 .card-wrap {
        flex-direction: column;
        padding: 10px;
        gap: 6px;
    }

    .card-statistic-1 .card-icon {
        width: 32px !important;
        height: 32px !important;
        padding: 6px !important;
        font-size: 16px !important;
    }

    .card-statistic-1 .card-header h4 {
        font-size: 10px !important;
    }

    .card-statistic-1 .card-body span {
        font-size: 13px !important;
    }

    .card-statistic-1 .card-body {
        text-align: center;
    }

    .card-statistic-1 .card-header {
        padding-bottom: 2px !important;
        padding-top: 2px !important;
        text-align: center;
    }

    .card-statistic-1 {
        margin-bottom: 8px !important;
    }
}

/* Resource Section UI Fixes */
.resource-container {
    margin-top: 15px;
}

.resource-input-section {
    position: relative;
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.resource-input-section:hover {
    border-color: #5a67d8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style Parsley error messages to be clean and inline */
.parsley-errors-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0 !important;
    display: block;
}

.parsley-errors-list.filled {
    margin-top: 5px !important;
}

.parsley-errors-list .parsley-required {
    color: #dc3545;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1.4;
}

/* Remove any large error bars or alert boxes in resource section */
.resource-container .alert-danger,
.resource-container .alert,
.resource-input-section .alert-danger,
.resource-input-section .alert {
    display: none !important;
}

/* Style resource form fields */
.resource-container .form-group {
    margin-bottom: 1rem;
}

.resource-container .form-control.parsley-error {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.resource-container .form-control.parsley-success {
    border-color: #28a745;
}

/* Remove button styling for remove resource */
.remove-resource {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* Ensure resource section spacing */
.resource-section {
    margin-top: 15px;
}

.resource-toggle-section {
    margin-bottom: 15px;
}

/* Hide any unwanted error bars or boxes */
.resource-container .bg-danger,
.resource-container .text-danger.bg-danger,
.resource-container [class*="error-bar"],
.resource-container [class*="alert-bar"] {
    display: none !important;
}

/* ============================================
   Reports Pages CSS (from blade files 1-6)
   ============================================ */

/* Report Card Styles - Common for all reports */
.report-card {
    transition: transform 0.2s;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: white;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.report-card .card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.report-card .card-icon i {
    font-size: 32px;
    color: white;
    line-height: 1;
}

.report-card .card-wrap {
    display: flex;
    align-items: center;
    padding: 20px;
}

.report-card .card-header h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-card .card-body {
    margin: 0;
    padding: 0;
}

.report-card .card-body span {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: visible;
    word-wrap: normal;
    text-overflow: clip;
}

/* Filter Section - Common for all reports */
.filter-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.filter-section h5 {
    color: var(--secondary);
}

/* Revenue Report Specific Styles */
.revenue-card {
    border-left: 4px solid #28a745;
}

/* Sales Report Specific Styles */
.report-card .card-header h4 {
    margin: 0 0 4px 0;
    font-size: 10px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: auto;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-card .card-body {
    margin: 0;
    padding: 0;
    min-width: 0;
    flex: 1;
    min-width: fit-content;
}

/* Responsive font size for mobile - Sales Report */
@media (max-width: 768px) {
    .report-card .card-body span {
        font-size: 14px;
    }
}

/* For very large numbers, use smaller font - Sales Report */
@media (max-width: 1200px) {
    .report-card .card-body span {
        font-size: 15px;
    }
}

/* Chart Container - Sales Report */
.chart-container {
    height: 400px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Commission Report Specific Styles */
.commission-card {
    border-left: 4px solid #28a745;
}

.report-card .card-icon.bg-primary {
    background-color: #6777ef !important;
}

.report-card .card-icon.bg-success {
    background-color: #6777ef !important;
}

.report-card .card-icon.bg-warning {
    background-color: #ffa426 !important;
}

.report-card .card-icon.bg-info {
    background-color: #17a2b8 !important;
}

.report-card .card-header {
    flex: 1;
    min-width: 0;
    padding: 15px 15px 15px 15px !important;
}

/* Commission Report - Smaller card icon */
.report-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.report-card .card-icon i {
    font-size: 20px;
}

.report-card .card-header h4 {
    margin: 0 0 5px 0;
    font-size: 12px;
    line-height: 1.4;
}

/* ============================================
   Admin Pages CSS (from blade files 13-20)
   ============================================ */


/* Admin Dashboard - Card Spacing */
.list-unstyled-border li {
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.card-body {
    padding-bottom: 1.5rem !important;
}

.card-header {
    margin-bottom: 0.5rem !important;
}

.card-header+.card-body {
    padding-top: 1.5rem !important;
}

/* Invoice Page Styles */
.invoice-container {
    max-width: 800px;
    margin: auto;
}

.invoice-header {
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
    margin-bottom: 25px;
}

.invoice-header .logo {
    max-height: 70px;
    margin-bottom: 10px;
}

.invoice-company-name {
    font-size: 20px;
    font-weight: bold;
}

.invoice-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.invoice-box {
    width: 48%;
}

.invoice-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.invoice-box p {
    margin: 6px 0;
}

.invoice-box strong {
    color: #000;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid #000;
}

.invoice-table th,
.invoice-table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: left;
}

.invoice-table th {
    background: #f2f2f2;
    font-size: 13px;
    font-weight: bold;
}

.invoice-table td:last-child,
.invoice-table th:last-child {
    text-align: right;
}

.invoice-summary {
    width: 300px;
    margin-left: auto;
    margin-top: 25px;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    padding: 8px 0;
    font-size: 14px;
}

.invoice-summary-row.total {
    font-size: 16px;
    font-weight: bold;
}

.invoice-promo-section {
    margin-top: 25px;
    padding: 10px;
    border: 1px solid #000;
}

.invoice-promo-section h4 {
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.invoice-promo-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.invoice-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #000;
    font-size: 13px;
    color: #444;
}

/* Razorpay Payment Page Styles */
.payment-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.payment-header {
    margin-bottom: 2rem;
}

.payment-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.payment-header p {
    color: #666;
    margin: 0;
}

.payment-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.payment-details h3 {
    margin-top: 0;
    color: #333;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.payment-detail-label {
    font-weight: bold;
    color: #555;
}

.payment-detail-value {
    color: #333;
}

.pay-button {
    background: #F37254;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.pay-button:hover {
    background: #e55a3e;
}

.pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.payment-loading {
    display: none;
    margin-top: 1rem;
}

.payment-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #F37254;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Courses Index - Filter Button Styles */
#reset_filters {
    min-height: 38px !important;
    padding: 8px 16px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#apply-filter,
#clear-filter {
    height: 42px !important;
}

.select2-container--default .select2-selection--single {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

#filter_is_active {
    height: 38px;
}

/* Generic Toolbar Filter Responsive Styles */
.filter-item-sm {
    width: 150px;
    max-width: 100%;
    flex: 0 1 auto;
}

.filter-item-md {
    width: 250px;
}

.filter-item-lg {
    width: 350px;
}

@media (min-width: 769px) {
    #toolbar .d-flex {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 768px) {

    .filter-item-sm,
    .filter-item-md,
    .filter-item-lg {
        width: 100% !important;
        flex: 1 1 100%;
    }
}

/* Courses Requests - Filter Button Styles */
#reset_request_filters {
    min-height: 38px !important;
    height: 38px !important;
    padding: 8px 16px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#request_instructor_id {
    height: 38px;
}

/* Language Settings - Dropdown Menu Fix */
#table_list .dropdown {
    position: relative;
}

/* #table_list .dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0.125rem !important;
} */

/* #table_list td {
    position: relative;
    overflow: visible;
    padding: 0 25px !important;
} */

.fixed-table-body .dropdown-menu {
    z-index: 9999 !important;
}

/* ============================================
   Pages View CSS (from blade file 21)
   ============================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e5e7eb;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.page-header {
    background: var(--accent-gradient);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-secondary);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.page-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.page-type-badge svg {
    width: 16px;
    height: 16px;
}

.page-title {
    font-family: 'Geist Variable', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.page-container {
    max-width: 900px;
    margin: -40px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.content-card {
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.page-icon-container {
    padding: 32px 40px 0;
    text-align: center;
}

.page-icon {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 16px;
}

.page-content {
    padding: 40px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    font-family: 'Geist Variable', sans-serif;
    color: var(--text-color);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.3;
}

.page-content h1 {
    font-size: 2rem;
}

.page-content h2 {
    font-size: 1.75rem;
}

.page-content h3 {
    font-size: 1.5rem;
}

.page-content h4 {
    font-size: 1.25rem;
}

.page-content p {
    margin-bottom: 1.25em;
    color: var(--text-color);
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.page-content a:hover {
    border-bottom-color: var(--primary-color);
}

.page-content ul,
.page-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.page-content li {
    margin-bottom: 0.5em;
}

.page-content blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-light);
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-content th,
.page-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.page-content th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
}

.page-content pre,
.page-content code {
    font-family: 'Geist Mono Variable', monospace;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.page-content code {
    padding: 2px 8px;
    font-size: 0.9em;
}

.page-content pre {
    padding: 16px 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.page-content pre code {
    padding: 0;
    background: transparent;
}

.page-footer {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 60px;
    }

    .page-content {
        padding: 24px;
    }

    .page-meta {
        gap: 16px;
    }

    .content-card {
        border-radius: 16px;
    }
}

@media print {
    .page-header {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }

    .page-header::before,
    .page-header::after {
        display: none;
    }

    .page-title {
        color: black !important;
    }

    .back-link,
    .page-type-badge {
        display: none;
    }

    .content-card {
        box-shadow: none;
    }
}

/* ============================================
   Feature Sections Index CSS (from blade file 22)
   ============================================ */
#table_list.disable-drag-drop tbody tr,
#table_list.disable-drag-drop tbody tr td {
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    pointer-events: auto !important;
    -webkit-touch-callout: none !important;
}

#table_list.disable-drag-drop tbody tr:hover,
#table_list.disable-drag-drop tbody tr td:hover {
    cursor: default !important;
}

#table_list.disable-drag-drop tbody tr.ui-sortable-helper,
#table_list.disable-drag-drop tbody tr.ui-sortable-placeholder,
#table_list.disable-drag-drop tbody tr.ui-draggable-dragging {
    display: none !important;
    visibility: hidden !important;
}

#table_list.disable-drag-drop tbody tr .drag-handle,
#table_list.disable-drag-drop tbody tr::before,
#table_list.disable-drag-drop tbody tr::after {
    display: none !important;
    cursor: default !important;
}

#table_list.disable-drag-drop tbody tr.reorder-rows-on-drag-class {
    background-color: transparent !important;
    box-shadow: none !important;
}

#rank-note.hidden {
    display: none !important;
}

/* ============================================
   Notifications Index CSS (from blade file 23)
   ============================================ */
#table_list th[data-field="title"],
#table_list td[data-field="title"] {
    width: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

#table_list th[data-field="message"],
#table_list td[data-field="message"] {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

#table_list th[data-field="type_id_display"],
#table_list td[data-field="type_id_display"] {
    width: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

#table_list table {
    table-layout: fixed;
    width: 100%;
}

/* ============================================
   FAQ Index CSS (from blade file 24)
   ============================================ */
.faq-answer-container {
    max-width: 100%;
    word-wrap: break-word;
}

.faq-answer-text {
    line-height: 1.6;
    color: #333;
}

.view-more-link,
.view-less-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
    cursor: pointer;
}

.view-more-link:hover,
.view-less-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.view-more-text,
.view-less-text {
    font-size: 0.9em;
}

/* ============================================
   Helpdesk Groups CSS (from blade file 25)
   ============================================ */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    margin-right: 2px;
}

.btn-sm i {
    font-size: 12px;
}

/* ============================================
   Course Certificate Template CSS (from blade file 26)
   ============================================ */
.certificate-container {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 0 auto;
    padding: 0;
    background-color: #ffffff;
    border: 2px dashed #d3d3d3;
    overflow: hidden;
}

.certificate-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

.student-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    max-width: 70%;
    word-wrap: break-word;
}

.course-name {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    text-align: right;
    max-width: 40%;
    word-wrap: break-word;
}

.completion-date {
    position: absolute;
    bottom: 40px;
    left: 50px;
    font-size: 14px;
    color: #999999;
    text-align: left;
}

.sub-text {
    position: absolute;
    top: 45px;
    left: 20px;
    font-size: 12px;
    color: #999999;
}

/* ============================================
   Quiz Certificate Template CSS (from blade file 27)
   ============================================ */
.title {
    font-size: 28px;
    font-weight: bold;
}

.subtitle {
    font-size: 18px;
    margin-top: 10px;
}

.score {
    font-size: 16px;
    margin-top: 20px;
}

/* ============================================
   Welcome Page CSS (from blade file 28)
   ============================================ */
/* Note: Welcome page uses inline Tailwind CSS classes, no custom CSS to extract */

/* ============================================
   Auth Login CSS (from blade file 29)
   ============================================ */
.password-toggle-btn {
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #495057 !important;
}

.password-toggle-btn:focus {
    outline: none;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-input-wrapper .form-control.is-invalid {
    padding-right: 70px;
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8h-.8'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.password-input-wrapper .form-control.is-invalid~.password-toggle-btn {
    right: 35px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 5px 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* ============================================
   Email Templates CSS (from blade files 30-31)
   ============================================ */
/* Team Invitation Email */
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.content {
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px 0;
}

.button:hover {
    background-color: #0056b3;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Contact Form Email */
.field {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.field-label {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.message-content {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
}

/* ============================================
   Mail Layout CSS (from blade file 32)
   ============================================ */
@media only screen and (max-width: 600px) {
    .inner-body {
        width: 100% !important;
    }

    .footer {
        width: 100% !important;
    }
}

@media only screen and (max-width: 500px) {
    .button {
        width: 100% !important;
    }
}

/* ============================================
   Installer CSS (from blade file 33)
   ============================================ */
/* Note: Installer uses external CSS file, no inline CSS to extract */

/* ============================================
   Enrollments Show CSS (from blade file 34)
   ============================================ */
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

/* ============================================
   Payment Success CSS (from blade file 35)
   ============================================ */
.success-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.payment-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: bold;
    color: #555;
}

.detail-value {
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    opacity: 0.9;
}

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

.btn-secondary:hover {
    background: #545b62;
}

/* Normalize all modal footer buttons to same size */
.modal-footer .btn {
    height: 40px;
    min-width: 100px;
    padding: 6px 20px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
    box-sizing: border-box;
}

/* Pagination alignment and sizing */
.pagination .page-link {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.4;
    min-width: 38px;
    text-align: center;
}

.pagination .page-item:not(.active) .page-link:hover {
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* ============================================
   Payment Cancel CSS (from blade file 36)
   ============================================ */
.cancel-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.cancel-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.cancel-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cancel-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-details {
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: left;
    border-left: 4px solid #ff6b6b;
}

.error-message {
    color: #d32f2f;
    font-weight: bold;
}

/* ============================================
   Certificate Editor CSS (from blade file 37)
   ============================================ */
.element-content {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
}

.element-content:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

@media (min-width: 576px) {
    .btn-sm-md {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }

    .btn-group-sm-md {
        flex-direction: row;
    }
}

@media (max-width: 575.98px) {
    .btn-group-sm-md {
        flex-direction: column;
    }

    .btn-group-sm-md .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .btn-group-sm-md .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .certificate-canvas {
        height: 500px !important;
        min-height: 400px !important;
    }
}

@media (max-width: 767.98px) {
    .certificate-canvas {
        height: 450px !important;
        min-height: 350px !important;
    }
}

@media (max-width: 575.98px) {
    .certificate-canvas {
        height: 400px !important;
        min-height: 300px !important;
    }

    .draggable-element {
        font-size: 0.9em !important;
        padding: 6px !important;
        min-width: 150px !important;
    }

    .element-content {
        font-size: 0.85em !important;
    }

    #title-element .element-content {
        font-size: 24px !important;
    }

    #subtitle-element .element-content {
        font-size: 14px !important;
    }

    #student-name-element .element-content {
        font-size: 18px !important;
    }

    #course-name-element .element-content {
        font-size: 16px !important;
    }
}

.control-panel {
    position: sticky;
    top: 20px;
}

@media (max-width: 991.98px) {
    .control-panel {
        position: relative;
        top: 0;
        margin-top: 1rem;
    }
}

.draggable-element.selected {
    border: 2px solid #007bff !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.draggable-element:hover {
    border: 1px solid #007bff;
}

/* ============================================
   Certificate Preview CSS (from blade file 38)
   ============================================ */
.certificate-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.certificate-preview {
    position: relative;
    width: 100%;
    min-height: 800px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
}

.certificate-element {
    position: absolute;
    word-wrap: break-word;
    box-sizing: border-box;
}

.certificate-content {
    position: relative;
    z-index: 2;
    color: #333;
    width: 100%;
}

.certificate-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.certificate-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-style: italic;
}

.certificate-body {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-signature {
    position: absolute;
    bottom: 80px;
    right: 100px;
    text-align: center;
}

.signature-image {
    max-width: 200px;
    max-height: 100px;
    margin-bottom: 10px;
}

.signature-text {
    font-size: 1rem;
    font-weight: bold;
}

.certificate-date {
    position: absolute;
    bottom: 40px;
    left: 100px;
    font-size: 1rem;
}

.preview-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

.placeholder-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plr-50 {
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a,
.main-sidebar .sidebar-menu li a span {
    line-height: 12px;
}

.main-sidebar .nav-link .badge {
    min-width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    padding-top: 2px;
}

.main-sidebar .nav-link .badge-warning {
    background-color: #ffc107;
    color: #000;
}

/* Sidebar close button - outside sidebar so always visible on mobile when open (RTL + LTR) */
.sidebar-close-btn-mobile {
    display: none;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 100001;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #6777ef;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-close-btn-mobile:hover {
    background: #5a6fd6;
    color: #fff;
}

.sidebar-close-btn-mobile i {
    pointer-events: none;
}

@media (max-width: 1024px) {

    /* Show when sidebar open: same for LTR and RTL - body.sidebar-show or .main-sidebar.show */
    .main-sidebar.show+.sidebar-close-btn-mobile,
    body.sidebar-show .sidebar-close-btn-mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* RTL mobile: close button always visible when sidebar open, above everything */
    body[dir="rtl"].sidebar-show .sidebar-close-btn-mobile,
    html[dir="rtl"] body.sidebar-show .sidebar-close-btn-mobile,
    html[dir="rtl"] .main-sidebar.show+.sidebar-close-btn-mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
        pointer-events: auto !important;
    }
}

@media (min-width: 1025px) {
    .sidebar-close-btn-mobile {
        display: none !important;
    }
}

/* RTL: keep close button on physical right (sidebar opens from right) - same position as LTR close on left */
html[dir="rtl"] .sidebar-close-btn-mobile,
body[dir="rtl"] .sidebar-close-btn-mobile {
    right: auto;
    left: 14px;
    transform: none;
}

/* RTL: close button above navbar and sidebar (z-index 99999) so always visible when open */
body[dir="rtl"].sidebar-show .sidebar-close-btn-mobile,
html[dir="rtl"] body.sidebar-show .sidebar-close-btn-mobile,
html[dir="rtl"] .main-sidebar.show+.sidebar-close-btn-mobile {
    z-index: 99999 !important;
    border: 2px solid #fff;
    top: 12px;
}

/* RTL: main content full width - fills space to the left of sidebar (desktop) or full width (mobile) */
html[dir="rtl"] .main-content,
body[dir="rtl"] .main-content,
html[dir="rtl"] .main-wrapper .main-content,
body[dir="rtl"] .main-wrapper .main-content {
    width: calc(100% - 260px) !important;
    max-width: calc(100% - 260px) !important;
    box-sizing: border-box !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    margin-right: 260px !important;
    margin-left: 0 !important;
}

@media (max-width: 1024px) {

    html[dir="rtl"] .main-content,
    body[dir="rtl"] .main-content,
    html[dir="rtl"] .main-wrapper .main-content,
    body[dir="rtl"] .main-wrapper .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    html[dir="rtl"] .main-content .section,
    body[dir="rtl"] .main-content .section,
    html[dir="rtl"] .main-content .container,
    body[dir="rtl"] .main-content .container,
    html[dir="rtl"] .main-content .container-fluid,
    body[dir="rtl"] .main-content .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* RTL: navbar and navbar-bg only over content area (left side), not over sidebar */
body[dir="rtl"] .navbar-bg,
html[dir="rtl"] .navbar-bg {
    left: 0 !important;
    right: 260px !important;
    width: auto !important;
}

@media (max-width: 1024px) {

    body[dir="rtl"] .navbar-bg,
    html[dir="rtl"] .navbar-bg {
        right: 0 !important;
        width: 100% !important;
    }
}

/* RTL navbar: proper mirror of LTR - navbar on left of screen, content order reversed */
body[dir="rtl"] .main-navbar,
html[dir="rtl"] .main-navbar {
    left: 5px !important;
    right: 260px !important;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

body[dir="rtl"] .main-navbar .form-inline.mr-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

body[dir="rtl"] .main-navbar .form-inline.mr-auto .nav-link.nav-link-lg {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[dir="rtl"] .main-navbar .navbar-right .dropdown .dropdown-menu {
    left: 0;
    right: auto;
}

@media (max-width: 1024px) {

    body[dir="rtl"] .main-navbar,
    html[dir="rtl"] .main-navbar {
        left: 0 !important;
        right: 0 !important;
    }

    body[dir="rtl"] .main-navbar .form-inline.mr-auto {
        display: block !important;
    }
}

#sidebar-wrapper {
    background: #fff;
}

.justify-content-end {
    justify-content: flex-end;
}

.section-header h1 .fas,
.section-header h3 .fas,
.section-header h4 .fas {
    font-size: 20px;
}

.dropdown-item .fas {
    padding-right: 5px;
}

.btn .badge {
    border-radius: 30px !important;
}

.progress {
    --bs-progress-bg: #e0e0e0;
}

#userDetailsContent strong {
    color: #000;
    padding-top: 5px;
}

.remove-learning,
.remove-requirement {
    width: 40%;
    height: 40px;
    margin-top: 3px;
}

/* button[type="button"],
button[type="submit"] {
    height: 40px;
} */

.filter-section .fas {
    font-size: 16px;
}

.plr-20 {
    padding: 10px 20px !important;

}

.flex-end {
    align-items: flex-end;
}

.space-between {
    justify-content: space-between !important;
}

/* ============================================
   Action Column Buttons - Consistent Styling
   Clean, modern, square buttons with rounded corners
   ============================================ */

/* Action column container */
th[data-field="operate"],
td[data-field="operate"] {
    width: auto !important;
    min-width: 120px !important;
    text-align: center !important;
    white-space: nowrap;
}

/* Action column menu wrapper - used by actionColumnFormatter */
.action-column-menu {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Buttons inside .action-column-menu - no margin needed, gap handles spacing */
.action-column-menu a,
.action-column-menu .btn,
.action-column-menu>* {
    margin: 0 !important;
}

/* Unified action button styling */
.btn-action-icon,
.btn.btn-action-icon,
a.btn-action-icon,
td[data-field="operate"] a,
td[data-field="operate"] .btn,
td[data-field="operate"] a.btn,
td[data-field="operate"] button.btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 3px !important;
    font-size: 12px !important;
    line-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    border: none !important;
    box-shadow: none !important;
}

/* Override: No margin for buttons inside action-column-menu (gap handles it) */
.action-column-menu a,
.action-column-menu .btn {
    margin: 0 !important;
}

/* First and last button margin adjustment for non-wrapped buttons */
td[data-field="operate"]>a:first-of-type,
td[data-field="operate"]>.btn:first-of-type {
    margin-left: 0 !important;
}

td[data-field="operate"]>a:last-of-type,
td[data-field="operate"]>.btn:last-of-type {
    margin-right: 0 !important;
}

/* Dropdown menu refinements */
.dropdown-toggle.no-caret::after {
    display: none !important;
}

/* Ensure the row containing the open dropdown is elevated above subsequent rows */
.bootstrap-table .table tr:has(.dropdown.show) {
    z-index: 101 !important;
    position: relative;
}

.action-column-menu .dropdown-menu {
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 9999 !important;
    /* Extremely high to stay above all other table elements */
}

/* Ensure the parent dropdown container has a higher stacking context when open */
.action-column-menu .dropdown.show {
    position: relative;
    z-index: 1001;
}

.action-column-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
}

.action-column-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.action-column-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Custom Transparent Badges */
.badge-info-transparent {
    background-color: rgba(54, 185, 204, 0.1);
    color: #36b9cc;
    border: 1px solid rgba(54, 185, 204, 0.2);
    font-weight: 500;
}

.badge-success-transparent {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
    border: 1px solid rgba(28, 200, 138, 0.2);
    font-weight: 500;
}

.badge-warning-transparent {
    background-color: rgba(246, 194, 62, 0.1);
    color: #f6c23e;
    border: 1px solid rgba(246, 194, 62, 0.2);
    font-weight: 500;
}

.badge-info-transparent:hover,
.badge-success-transparent:hover,
.badge-warning-transparent:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Translation Editor UI */
.translation-card-container {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e3e6f0;
    padding: 15px;
    height: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.translation-card-container:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.translation-key {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4e73df;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
    padding-right: 25px;
    /* Prevent overlap with indicator */
    line-height: 1.4;
    word-break: break-word;
}

.translation-source {
    background: #f8f9fc;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-left: 3px solid #d1d3e2;
}

.translation-source small {
    display: block;
    color: #858796;
    font-size: 0.75rem;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.translation-source-text {
    color: #5a5c69;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    word-break: break-word;
}

.translation-status-indicator {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 10px;
}

.translation-tool-header {
    background: linear-gradient(to right, #ffffff, #f8f9fc);
    border-radius: 12px;
    border: 1px solid #e3e6f0;
    padding: 20px;
    margin-bottom: 25px;
}

.translation-stats-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 2px solid #e3e6f0;
    padding: 12px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.translation-dashboard {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e3e6f0;
    overflow: hidden;
}

.dashboard-upper {
    background: linear-gradient(to right, #ffffff, #f8f9fc);
}

.dashboard-sticky-bar {
    border-top: none;
    transition: all 0.3s ease;
}

.translation-stat-box {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e3e6f0;
    margin: 0 8px;
    flex: 1;
    min-width: 150px;
    transition: all 0.3s ease;
}

.translation-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.translation-stat-box i {
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.8;
}

.translation-stat-box .count {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1;
    color: #4e73df;
}

.translation-stat-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #858796;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-total {
    border-top: 3px solid #36b9cc;
}

.stat-translated {
    border-top: 3px solid #1cc88a;
}

.stat-missing {
    border-top: 3px solid #f6c23e;
}

.stat-translated .count {
    color: #1cc88a;
}

.stat-missing .count {
    color: #f6c23e;
}

.stat-total .count {
    color: #36b9cc;
}

.stat-translated i {
    color: #1cc88a;
}

.stat-missing i {
    color: #f6c23e;
}

.stat-total i {
    color: #36b9cc;
}

/* Pagination Offset Column */
td[data-field="no"] {
    font-weight: 500;
    color: #858796;
}

/* Icon sizing inside action buttons */
.btn-action-icon i,
td[data-field="operate"] a i,
td[data-field="operate"] .btn i {
    height: auto !important;
    width: auto !important;
    font-size: 12px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Text inside action buttons (hidden by default) */
.btn-action-icon .btn-text {
    display: none;
}

/* Hover effects - simple opacity change, no shadows */
.btn-action-icon:hover,
td[data-field="operate"] a:hover,
td[data-field="operate"] .btn:hover {
    opacity: 0.85;
    box-shadow: none !important;
}

/* Focus state for accessibility */
.btn-action-icon:focus,
td[data-field="operate"] a:focus,
td[data-field="operate"] .btn:focus {
    outline: 2px solid rgba(103, 119, 239, 0.5);
    outline-offset: 1px;
    box-shadow: none !important;
}

/* Button color variants */
.btn-action-icon.btn-primary,
td[data-field="operate"] .btn-primary {
    background-color: #6777ef !important;
    color: #fff !important;
}

.btn-action-icon.btn-danger,
td[data-field="operate"] .btn-danger {
    background-color: #fc544b !important;
    color: #fff !important;
}

.btn-action-icon.btn-info,
td[data-field="operate"] .btn-info {
    background-color: #3abaf4 !important;
    color: #fff !important;
}

.btn-action-icon.btn-success,
td[data-field="operate"] .btn-success {
    background-color: #47c363 !important;
    color: #fff !important;
}

.btn-action-icon.btn-warning,
td[data-field="operate"] .btn-warning {
    background-color: #ffa426 !important;
    color: #fff !important;
}

.btn-action-icon.btn-secondary,
td[data-field="operate"] .btn-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Dropdown button in action column */
.btn-action-icon.dropdown,
td[data-field="operate"] .dropdown {
    display: inline-block !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.btn-action-icon.dropdown .dropdown-toggle,
td[data-field="operate"] .dropdown .dropdown-toggle {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

/* Mobile responsive - slightly larger for touch */
@media (max-width: 768px) {

    th[data-field="operate"],
    td[data-field="operate"] {
        min-width: 100px !important;
    }

    .btn-action-icon,
    .btn.btn-action-icon,
    a.btn-action-icon,
    td[data-field="operate"] a,
    td[data-field="operate"] .btn,
    td[data-field="operate"] a.btn,
    td[data-field="operate"] button.btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 14px !important;
    }

    .btn-action-icon i,
    .btn.btn-action-icon i,
    td[data-field="operate"] a i,
    td[data-field="operate"] .btn i {
        font-size: 14px !important;
    }

    .action-column-menu {
        gap: 8px;
    }

    button.toggle-subcategories {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 991.98px) {
    .certificate-preview {
        min-height: 600px;
        padding: 40px 20px;
    }

    .certificate-title {
        font-size: 2.5rem;
    }

    .certificate-subtitle {
        font-size: 1.3rem;
    }

    .certificate-body {
        font-size: 1.1rem;
    }

    .certificate-signature {
        bottom: 60px;
        right: 50px;
    }

    .certificate-date {
        bottom: 30px;
        left: 50px;
    }

    .signature-image {
        max-width: 150px;
        max-height: 80px;
    }
}

@media (max-width: 767.98px) {
    .preview-controls {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-bottom: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .preview-controls .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .btn-text-short {
        display: inline;
    }

    .btn-text-full {
        display: none;
    }

    .certificate-preview {
        min-height: 500px;
        padding: 30px 15px;
    }

    .certificate-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .certificate-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .certificate-body {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .certificate-signature {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .certificate-date {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
    }

    .signature-image {
        max-width: 120px;
        max-height: 60px;
    }
}

@media (max-width: 575.98px) {
    .certificate-preview {
        min-height: 400px;
        padding: 20px 10px;
    }

    .certificate-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .certificate-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .certificate-body {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .certificate-body p {
        margin: 8px 0;
    }

    .preview-controls {
        padding: 10px;
    }

    .preview-controls .btn {
        padding: 6px 12px;
        font-size: 0.875rem;
        min-width: 100px;
    }

    .signature-image {
        max-width: 100px;
        max-height: 50px;
    }

    .signature-text {
        font-size: 0.875rem;
    }

    .certificate-date {
        font-size: 0.875rem;
    }
}

@media print {
    .preview-controls {
        display: none;
    }
}

/* ============================================
   Accessibility & Contrast Improvements
   ============================================ */

/* Table Sort Icons - Improved Contrast (Override SVG icons with darker colors) */
/* Default/unsorted state - using #6c757d instead of #dcdcdc for better contrast */
.bootstrap-table .fixed-table-container .table tfoot th .both,
.bootstrap-table .fixed-table-container .table thead th .both {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="%236c757d"><path d="m103.05877,41.4c9.37707,-12.5 24.60541,-12.5 33.98248,0l96.02113,128c6.90152,9.2 8.92696,22.9 5.17614,34.9s-12.45274,19.8 -22.20489,19.8l-192.04225,-0.1c-9.67713,0 -18.45406,-7.8 -22.20489,-19.8s-1.65036,-25.7 5.17614,-34.9l96.02113,-128l0.07501,0.1zm0,429.3l-96.02113,-128c-6.90152,-9.2 -8.92696,-22.9 -5.17614,-34.9s12.45274,-19.8 22.20489,-19.8l192.04225,0c9.67713,0 18.45406,7.8 22.20489,19.8s1.65036,25.7 -5.17614,34.9l-96.02113,128c-9.37707,12.5 -24.60541,12.5 -33.98248,0l-0.07501,0z"/></svg>') !important;
    background-size: 16px 16px !important;
    background-position: center right 2px !important;
}

/* Ascending sort icon - using #495057 for active state */
.bootstrap-table .fixed-table-container .table tfoot th .asc,
.bootstrap-table .fixed-table-container .table thead th .asc {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="%23495057"><path d="m136.9496,41.4c-9.3763,-12.5 -24.60342,-12.5 -33.97972,0l-96.01334,128c-6.90096,9.2 -8.92624,22.9 -5.17572,34.9s12.45173,19.8 22.20309,19.8l192.02668,0c9.67634,0 18.45256,-7.8 22.20309,-19.8s1.65023,-25.7 -5.17572,-34.9l-96.01334,-128l-0.07501,0z"/></svg>') !important;
}

/* Descending sort icon - using #495057 for active state */
.bootstrap-table .fixed-table-container .table tfoot th .desc,
.bootstrap-table .fixed-table-container .table thead th .desc {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="%23495057"><path d="m136.94959,471.6c-9.3763,12.5 -24.60342,12.5 -33.97972,0l-96.01334,-128c-6.90096,-9.2 -8.92624,-22.9 -5.17572,-34.9s12.45173,-19.8 22.20308,-19.8l192.02667,0c9.67634,0 18.45256,7.8 22.20308,19.8s1.65023,25.7 -5.17572,34.9l-96.01334,128l-0.07501,0z"/></svg>') !important;
}

/* Search Input - Improved Contrast */
.bootstrap-table .fixed-table-toolbar .search input,
.bootstrap-table .search input.form-control,
.card .card-header .form-control,
.fixed-table-toolbar .search-input {
    color: #495057 !important;
    border-color: #adb5bd !important;
    background-color: #fff !important;
}

.bootstrap-table .fixed-table-toolbar .search input::placeholder,
.bootstrap-table .search input.form-control::placeholder,
.card .card-header .form-control::placeholder,
.fixed-table-toolbar .search-input::placeholder,
.form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Focus state for search inputs */
.bootstrap-table .fixed-table-toolbar .search input:focus,
.bootstrap-table .search input.form-control:focus,
.card .card-header .form-control:focus {
    border-color: #6777ef !important;
    box-shadow: 0 0 0 0.2rem rgba(103, 119, 239, 0.25) !important;
}

/* Table Header Text - Better Readability */
.bootstrap-table .fixed-table-container .table thead th,
.bootstrap-table .fixed-table-header th,
.table thead th,
.table-bordered thead th {
    color: #343a40 !important;
    font-weight: 600;
}

/* Form Controls - Improved Border Contrast */
.form-control {
    border-color: #adb5bd;
    color: #495057;
}

.form-control:focus {
    border-color: #6777ef;
    box-shadow: 0 0 0 0.2rem rgba(103, 119, 239, 0.25);
}

/* Force Select2 to use Geist Variable font */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-results__option {
    font-family: 'Geist Variable', sans-serif !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    font-family: 'Geist Variable', sans-serif !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: #adb5bd !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 4px !important;
    background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057 !important;
    line-height: 42px !important;
    padding-left: 12px !important;
    padding-right: 20px !important;
}

.select2-container--default .select2-selection--multiple {
    padding: 2px 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: #495057 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100%;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #6777ef;
    border-color: #6777ef;
    color: #fff;
    padding: 0px 8px;
    margin: 2px 4px 2px 0;
    height: 28px;
    line-height: 26px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 6px;
    opacity: 0.8;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 6px;
    display: inline-block;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    opacity: 1;
    background: transparent !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin: 2px 0 !important;
    line-height: 24px !important;
    padding-left: 4px !important;
    font-family: 'Geist Variable', sans-serif !important;
    height: 28px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #6777ef !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 1px !important;
    right: 5px !important;
}

/* DataTables Sort Icons - Improved Contrast */
table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting_desc::after {
    opacity: 0.7 !important;
}

table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::after {
    opacity: 1 !important;
}

/* Input Group Text - Better Contrast */
.input-group-text {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Card Header Search Icons */
.card .card-header .input-group-text,
.fixed-table-toolbar .input-group-text {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
}

/* Toolbar Buttons - Clean Modern Styling (Refresh, Columns, Export) */
.bootstrap-table .fixed-table-toolbar .btn:not(.btn-secondary):not(.btn-outline-secondary),
.bootstrap-table .fixed-table-toolbar .btn-default,
.bootstrap-table .fixed-table-toolbar .btn-group>.btn:not(.btn-secondary):not(.btn-outline-secondary) {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    color: #6777ef !important;
    box-shadow: none !important;
    transition: all 0.15s ease-in-out !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
}

/* Secondary Button Overrides in Toolbar */
.bootstrap-table .fixed-table-toolbar .btn.btn-outline-secondary,
.bootstrap-table .fixed-table-toolbar .btn.btn-secondary {
    background-color: transparent !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
    height: 38px !important;
    border-radius: 4px !important;
}

.bootstrap-table .fixed-table-toolbar .btn.btn-outline-secondary:hover,
.bootstrap-table .fixed-table-toolbar .btn.btn-secondary:hover {
    background-color: #cdd3d8 !important;
    border-color: #adb5bd !important;
    color: #fff !important;
}

.bootstrap-table .fixed-table-toolbar .btn:not(.btn-outline-secondary):hover,
.bootstrap-table .fixed-table-toolbar .btn-default:hover,
.bootstrap-table .fixed-table-toolbar .btn-group>.btn:not(.btn-outline-secondary):hover {
    background-color: #6777ef !important;
    border-color: #6777ef !important;
    color: #fff !important;
    box-shadow: none !important;
}

.bootstrap-table .fixed-table-toolbar .btn:not(.btn-outline-secondary):focus,
.bootstrap-table .fixed-table-toolbar .btn-default:focus,
.bootstrap-table .fixed-table-toolbar .btn-group>.btn:not(.btn-outline-secondary):focus {
    box-shadow: 0 0 0 0.2rem rgba(103, 119, 239, 0.25) !important;
    outline: none !important;
}

/* Toolbar Button Icons */
.bootstrap-table .fixed-table-toolbar .btn i,
.bootstrap-table .fixed-table-toolbar .btn-group>.btn i {
    color: inherit !important;
}

/* Dropdown Caret in Toolbar */
.bootstrap-table .fixed-table-toolbar .dropdown-toggle::after {
    border-top-color: currentColor !important;
    margin-left: 4px !important;
}

/* Button Group Styling - Separate buttons with gaps */
.bootstrap-table .fixed-table-toolbar .btn-group {
    box-shadow: none !important;
    gap: 6px !important;
    display: inline-flex !important;
}

.bootstrap-table .fixed-table-toolbar .btn-group>.btn {
    border-radius: 4px !important;
    margin-left: 0 !important;
}

.bootstrap-table .fixed-table-toolbar .btn-group>.btn:not(:first-child) {
    margin-left: 0 !important;
}

.bootstrap-table .fixed-table-toolbar .btn-group>.btn:first-child {
    border-radius: 4px !important;
}

.bootstrap-table .fixed-table-toolbar .btn-group>.btn:last-child {
    border-radius: 4px !important;
}

/* Search Input - Match toolbar button height and style */
.bootstrap-table .fixed-table-toolbar .search input,
.bootstrap-table .fixed-table-toolbar .search input.form-control,
.bootstrap-table .search input.form-control {
    height: 38px !important;
    min-height: 38px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    border: 1px solid #dee2e6 !important;
    font-size: 14px !important;
}

/* Columns dropdown menu styling */
.bootstrap-table .fixed-table-toolbar .dropdown-menu {
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px !important;
}

.bootstrap-table .fixed-table-toolbar .dropdown-menu label {
    color: #495057 !important;
    cursor: pointer;
}

.bootstrap-table .fixed-table-toolbar .dropdown-menu label:hover {
    background-color: #f8f9fa !important;
}

/* ============================================
   Certificate Show CSS (from blade file 39)
   ============================================ */
@media (max-width: 767.98px) {
    .section-header-button .d-flex {
        flex-direction: column;
    }

    .section-header-button .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .section-header-button .btn:last-child {
        margin-bottom: 0;
    }
}

.table {
    width: 100%;
    table-layout: auto;
}

/* .table th {
    white-space: nowrap;
    word-wrap: break-word;
} */

/* .table td {
    word-wrap: break-word;
    word-break: break-word;
} */

@media (max-width: 575.98px) {
    .table th {
        width: auto;
        min-width: 100px;
    }

    .table th[width="30%"] {
        width: auto;
    }
}

/* ============================================
   Certificate Edit CSS (from blade file 40)
   ============================================ */
@media (min-width: 576px) {
    .btn-sm-md {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .section-header-button .btn {
        width: 100%;
    }
}

/* ============================================
   Flatpickr Customization
   ============================================ */

/* Theme Color Customization (Primary: #6777ef) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #6777ef;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #fff;
    border-color: #6777ef;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange {
    background: #e3eaef;
    border-color: #e3eaef;
    box-shadow: -5px 0 0 #e3eaef, 5px 0 0 #e3eaef;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
    background: #e3eaef;
    border-color: #e3eaef;
}

.flatpickr-day.today {
    border-color: #6777ef;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    border-color: #6777ef;
    background: #6777ef;
    color: #fff;
}

/* Shortcut Buttons Plugin */
.shortcut-buttons-flatpickr-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 10px;
    border-top: 1px solid #e6e6e6;
}

.shortcut-buttons-flatpickr-wrapper .shortcut-buttons-flatpickr-button {
    background: #fff;
    border: 1px solid #e3e6f0;
    color: #6c757d;
    padding: 4px 10px;
    margin: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.shortcut-buttons-flatpickr-wrapper .shortcut-buttons-flatpickr-button:hover {
    background: #f0f2ff;
    color: #6777ef;
    border-color: #6777ef;
}

.shortcut-buttons-flatpickr-wrapper .shortcut-buttons-flatpickr-button:active {
    background: #6777ef;
    color: #fff;
    border-color: #6777ef;
}

/* Flatpickr Input Group - seamless look */
.input-group:has(.flatpickr-input) .input-group-text {
    background-color: #fff !important;
    border-color: #adb5bd;
}

.input-group:has(.flatpickr-input):focus-within .input-group-text {
    border-color: #6777ef;
}

.input-group:has(.flatpickr-input):focus-within .flatpickr-input {
    border-color: #6777ef;
}

.flatpickr-input[readonly] {
    background-color: #fff !important;
    opacity: 1;
}

/* Flatpickr Clear Button */
.flatpickr-clear-btn {
    cursor: pointer;
}

.flatpickr-clear-btn:hover i {
    color: #dc3545 !important;
}

/* Calendar Popup */
.flatpickr-calendar {
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: none;
}

.flatpickr-months .flatpickr-month {
    background: transparent;
    color: #343a40;
    fill: #343a40;
    height: 50px;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #343a40;
    fill: #343a40;
    top: 10px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
}

.flatpickr-weekdays {
    background: transparent;
}

span.flatpickr-weekday {
    background: transparent;
    color: #868e96;
    font-weight: 600;
}

/* Range highlighting adjustments */
.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)) {
    box-shadow: -10px 0 0 #6777ef;
}

.social-media-card {
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 72px;
}

.social-media-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-color: #6777ef !important;
}

.social-platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6777ef, #9fa8f7);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.social-platform-name {
    font-size: 14px;
    color: #34395e;
    line-height: 1.3;
}

.social-platform-url {
    max-width: 240px;
    font-size: 12px;
}

/* Read-only field labels */
.card-body label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a94a6;
    margin-bottom: 4px;
}

.custom-control-label {
    margin-left: 35px;
}

/* Disabled inputs look cleaner */
.form-control[disabled],
.form-control:disabled {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #e8eaed;
}

.remove-social-media-button {
    margin-top: 20px;
}

.copy-btn {
    margin-top: 0 !important;
}

.dashboard-sticky-bar {
    border-bottom: 1px solid #eee;
}

/* Search */
.translation-search {
    position: relative;
}

.translation-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.translation-search input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.translation-search input:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 2px rgba(76, 111, 255, 0.1);
    outline: none;
}

/* Stats */
.stat-wrapper {
    gap: 12px;
}

.translation-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #f9fafc;
    min-width: 150px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Colors */
.translation-stat-card.total .stat-icon {
    background: #eef2ff;
    color: #4c6fff;
}

.translation-stat-card.completed .stat-icon {
    background: #e8f8f1;
    color: #28a745;
}

.translation-stat-card.pending .stat-icon {
    background: #fff3cd;
    color: #f39c12;
}

.stat-number {
    font-weight: 600;
    font-size: 16px;
}

.stat-label {
    font-size: 12px;
    color: #777;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-upper {
        padding: 15px !important;
    }

    .dashboard-upper h4 {
        font-size: 1.1rem;
        margin-bottom: 15px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .dashboard-upper .badge {
        margin-left: 0 !important;
    }

    .dashboard-upper .d-flex {
        width: 100%;
        gap: 8px;
    }

    .dashboard-upper .btn {
        flex: 1;
        padding: 8px 10px !important;
        font-size: 0.85rem;
    }

    .dashboard-sticky-bar {
        padding: 12px 15px !important;
    }

    .stat-wrapper {
        gap: 8px;
        margin-bottom: 12px;
    }

    .translation-stat-card {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 8px 10px;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .translation-search input {
        padding: 8px 12px 8px 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .translation-stat-card {
        min-width: 100%;
    }
}

/* System Update - Premium Gradient Style */
.update-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.update-status-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.update-status-card i.status-icon {
    font-size: 3rem;
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.2;
}

.update-status-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.update-status-version {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 5px 0;
}

.update-status-info {
    font-size: 0.85rem;
    opacity: 0.8;
}

.update-warning-box {
    background: #fffafa;
    border: 1px solid #ffe5e5;
    border-left: 5px solid #fc544b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.update-warning-box h1 {
    color: #fc544b;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
}

.update-instruction-list {
    padding-left: 18px;
    margin-bottom: 0;
}

.update-instruction-list li {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.premium-file-area {
    border: 2px dashed #6777ef;
    background: #fdfdff;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-file-area:hover {
    background: #f7f8ff;
    border-color: #394eea;
}

.premium-file-area i {
    font-size: 2.5rem;
    color: #6777ef;
    margin-bottom: 15px;
    display: block;
}

.premium-file-area h6 {
    color: #34395e;
    font-weight: 700;
    margin-bottom: 5px;
}

.update-card-premium {
    border: none;
    border-radius: 12px;
}

/* Role Permissions UI Enhancements */
.perm-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef !important;
    height: 100%;
    margin-bottom: 20px;
}

.perm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary) !important;
}

.perm-card .card-header {
    background: #f8faff !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 14px 18px !important;
    display: flex;
    align-items: center;
}

.perm-card .card-header i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.1rem;
}

.perm-card .card-header h6 {
    color: #495057;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0;
}

.perm-badge-soft {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50px;
    background-color: #f1f3ff;
    color: var(--primary);
    border: 1px solid rgba(103, 119, 239, 0.1);
    transition: all 0.2s ease;
    cursor: default;
    margin-bottom: 5px;
    margin-right: 5px;
}

.perm-badge-soft:hover {
    background-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.role-info-section {
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.role-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.role-badge {
    background: rgba(103, 119, 239, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(103, 119, 239, 0.05);
}

.perm-summary-card {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
}

.perm-summary-card i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-right: 20px;
}

.perm-summary-count {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0px;
}

.perm-summary-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 600;
}

/* Quiz Question UI Enhancements */
.quiz-question-card {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    background: #fbfbfb;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quiz-question-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quiz-question-header {
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-question-title {
    font-weight: 700;
    margin: 0;
    color: #4e73df;
    font-size: 0.95rem;
}

.quiz-question-body {
    padding: 20px;
}

.quiz-option-row {
    background: #fff !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
}

.quiz-option-row:hover {
    border-color: #6777ef !important;
}

.remove-question-btn {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.remove-question-btn:hover {
    background: #ef5350;
    color: #fff;
}

.remove-option-btn {
    color: #ef5350;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    padding: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.remove-option-btn:hover {
    color: #c62828;
}

[data-repeater-list="quiz_data"] {
    counter-reset: question-counter;
}

.quiz-question-title::after {
    counter-increment: question-counter;
    content: " #" counter(question-counter);
}

[data-repeater-list="option_data"] {
    counter-reset: option-counter;
}


.quiz-option-index {
    background: #6777ef;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 15px;
}

.quiz-option-index::before {
    counter-increment: option-counter;
    content: counter(option-counter);
}

/* Global fix for Bootstrap Table Header and Data alignment/padding mismatch */
.bootstrap-table .table:not(.table-sm):not(.table-md):not(.dataTable) th {
    padding: 0 !important;
    /* Zero out cell padding since th-inner handles it */
}

.bootstrap-table .table:not(.table-sm):not(.table-md):not(.dataTable) th .th-inner {
    padding: 12px 17px !important;
    /* Match the 17px horizontal padding from td */
    text-align: inherit;
    /* Ensure alignment flows from bootstrap-table cell attributes */
}

/* Force header alignment to honor ha-align/align attributes consistently */
.bootstrap-table .table thead th[data-halign="left"] .th-inner,
.bootstrap-table .table thead th.text-left .th-inner {
    text-align: left !important;
}

.bootstrap-table .table thead th[data-halign="center"] .th-inner,
.bootstrap-table .table thead th.text-center .th-inner {
    text-align: center !important;
}

.bootstrap-table .table thead th[data-halign="right"] .th-inner,
.bootstrap-table .table thead th.text-right .th-inner {
    text-align: right !important;
}

/* Normalize body cells to match header padding */
.bootstrap-table .table:not(.table-sm):not(.table-md):not(.dataTable) td {
    padding: 12px 17px !important;
    vertical-align: middle;
}