/**
 *
 * 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 */
:root {
    /* Colors */
    /* --primary:  var(--primary);*/
    --primary: #5A5BB5;
    --primary-hover: #4340CA;
    --primary-light: #D3D1FF;
    --primary-dark: #1d4ed8;
    /* --secondary: #34395e; */
    --secondary: #91989f;

    /* --success: #47c363; */
    --success: #0AA774;

    /* --info: #3abaf4; */
    --info: #399cfe;

    /* --warning: #ffa426; */
    --warning: #f7bb4c;

    /* --danger: #fc544b; */
    --danger: #E95757;

    --light: #cecece;
    /* --dark: #191d21; */

    --dark: #131619;
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, #4c5fd7 100%);
    --info-gradient: linear-gradient(135deg, var(--info) 0%, #1e9bd4 100%);
    --success-gradient: linear-gradient(135deg, var(--success) 0%, #359b4c 100%);
    --warning-gradient: linear-gradient(135deg, var(--warning) 0%, #e68a00 100%);
    --danger-gradient: linear-gradient(135deg, var(--danger) 0%, #e83e35 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary) 0%, #70757d 100%);
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e5e7eb;
    --accent-gradient: linear-gradient(135deg, var(--primary) 0%, #4c5fd7 100%);
    --text-color: #1f2937;
    --text-light: #8a94a6;

}

#global-page-progress {
    height: 6px;
    inset-inline-start: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
    width: 100%;
    z-index: 99999;
}

#global-page-progress.is-active {
    opacity: 1;
    transform: translateY(0);
}

#global-page-progress .global-page-progress-bar {
    background: var(--primary-light, #6475ef);
    box-shadow: 0 0 10px rgba(100, 117, 239, 0.45);
    box-shadow: 0 0 10px color-mix(in srgb, var(--primary-light, #6475ef) 55%, transparent);
    height: 100%;
    inset-inline-start: 0;
    position: absolute;
    top: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 260ms ease;
    width: 100%;
}

[dir="rtl"] #global-page-progress .global-page-progress-bar {
    transform-origin: right center;
}

.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: var(--danger);
    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;
}

@media (max-width: 991.98px) {
    .section-header {
        align-items: stretch !important;
        flex-direction: column;
        gap: 14px;
    }

    .section-header h1 {
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
    }

    .section-header-button {
        display: grid;
        gap: 10px;
        margin-left: 0 !important;
        width: 100%;
    }

    .section-header-button .btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 42px;
        width: 100%;
    }

    body[dir="rtl"] .section-header,
    html[dir="rtl"] .section-header {
        text-align: right;
    }

    body[dir="rtl"] .section-header-button,
    html[dir="rtl"] .section-header-button {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .curriculum-shell .card {
        margin-bottom: 18px;
    }

    .curriculum-shell .card-header {
        padding: 18px !important;
    }

    .curriculum-shell .card-body {
        padding: 18px;
    }

    .curriculum-stats {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .curriculum-chapter {
        margin: 14px 12px 22px;
    }

    .curriculum-chapter-header {
        min-height: 72px;
        touch-action: manipulation;
    }

    .curriculum-chapter:not(.is-open) .curriculum-chapter-header {
        min-height: 82px;
        padding-bottom: 20px !important;
        padding-top: 20px !important;
    }

    .curriculum-chapter:not(.is-open) .curriculum-chapter-content {
        align-items: center;
        justify-content: flex-start;
    }

    /* .curriculum-chapter.is-open .curriculum-chapter-panel {
        margin-top: 10px;
    } */

    .curriculum-chapter-copy strong {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-height: 2.8em;
        overflow: hidden;
        overflow-wrap: anywhere;
        text-overflow: ellipsis;
    }

    .curriculum-chapter-content {
        align-items: center !important;
        display: grid !important;
        gap: 10px !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }

    .curriculum-module-index {
        align-self: center;
    }

    .curriculum-chapter-copy {
        align-self: center;
    }

    .curriculum-resource-list {
        padding: 14px 12px !important;
    }

    .curriculum-resource-row {
        grid-template-columns: 18px 38px minmax(0, 1fr) !important;
        padding: 12px !important;
    }

    .curriculum-resource-copy div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .curriculum-resource-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(42px, max-content));
        width: 100%;
    }

    .curriculum-resource-actions .btn {
        align-items: center;
        display: inline-flex;
        height: 42px;
        justify-content: center;
        min-width: 42px;
        touch-action: manipulation;
    }

    .curriculum-utility-bar {
        padding: 14px 12px !important;
    }

    .curriculum-utility-bar>div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .curriculum-utility-bar>div>span {
        grid-column: 1 / -1;
    }

    .curriculum-utility-bar .btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 40px;
        width: 100%;
    }

    .curriculum-modal-card {
        max-height: calc(100dvh - 24px);
    }

    .curriculum-modal-body {
        max-height: calc(100dvh - 188px);
        padding: 18px;
    }

    .curriculum-modal-footer {
        padding: 14px 18px;
    }

    .curriculum-modal-footer .btn {
        min-height: 42px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .section-header {
        gap: 18px;
        padding: 22px 24px !important;
    }

    .section-header h1 {
        font-size: 22px;
        text-align: left;
    }

    .section-header-button {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .curriculum-shell .card-header,
    .curriculum-shell .card-body {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .curriculum-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .curriculum-chapter {
        margin: 18px 24px 28px;
    }

    .curriculum-chapter-header {
        grid-template-columns: 22px minmax(0, 1fr) 22px !important;
        min-height: 84px;
        padding: 22px 24px !important;
    }

    .curriculum-chapter:not(.is-open) .curriculum-chapter-header {
        min-height: 92px;
        padding-bottom: 24px !important;
        padding-top: 24px !important;
    }

    /* .curriculum-chapter.is-open .curriculum-chapter-panel {
        margin-top: 14px;
    } */

    .curriculum-chapter-content {
        gap: 14px !important;
        grid-template-columns: 118px minmax(0, 1fr) !important;
    }

    .curriculum-module-index {
        min-width: 118px;
        padding: 9px 12px;
    }

    .curriculum-chapter-copy strong {
        font-size: 16px;
        line-height: 1.45;
        max-height: 2.9em;
    }

    .curriculum-resource-list {
        gap: 12px;
        padding: 18px 24px !important;
    }

    .curriculum-resource-row {
        grid-template-columns: 18px 44px minmax(0, 1fr) auto !important;
        padding: 14px !important;
    }

    .curriculum-resource-actions {
        border-top: 0;
        grid-column: auto;
        margin-top: 0;
        padding-top: 0;
    }

    .curriculum-resource-actions {
        grid-template-columns: repeat(4, minmax(42px, max-content));
    }

    .curriculum-utility-bar>div {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.curriculum-modal-backdrop[aria-hidden="true"] {
    display: none !important;
}

.curriculum-modal-backdrop.is-visible {
    display: flex !important;
}

.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-"]:has(> .card:only-child) {
    display: flex;
    flex-direction: column;
}

.row>[class*="col-"]>.card:only-child {
    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;
}

body[dir="rtl"] .media-icon {
    margin-left: 15px;
    margin-right: 0;
}

.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: var(--info);
    font-weight: 600;
}

.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 {
    direction: rtl;
    flex-direction: row;
    gap: 8px;
    text-align: right;
}

[dir="rtl"] .language-switcher .nav-link .language-flag {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

[dir="rtl"] .language-switcher .dropdown-menu,
[dir="rtl"] .language-switcher .language-dropdown {
    direction: rtl;
    left: auto !important;
    right: 0 !important;
    text-align: right;
}

[dir="rtl"] .language-item {
    align-items: center;
    direction: rtl;
    display: flex;
    flex-direction: row;
    gap: 8px;
    text-align: right;
}

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

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

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

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

/* 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 and tablet devices */
@media (max-width: 991.98px) {

    .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/tablet 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;
        touch-action: auto !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;
    }

    .bootstrap-table .fixed-table-body .table td.drag-handle-cell {
        touch-action: auto !important;
    }

    .bootstrap-table .fixed-table-body .table td.drag-handle-cell .drag-handle-grip {
        touch-action: none !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 li {
    color: var(--danger) !important;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1.4;
}

/* Override parsley default: keep typed text black regardless of error/success state */
input.parsley-error,
select.parsley-error,
textarea.parsley-error {
    color: inherit !important;
    background-color: inherit !important;
}

input.parsley-success,
select.parsley-success,
textarea.parsley-success {
    color: inherit !important;
    background-color: inherit !important;
}


/* 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: var(--danger);
    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: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

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

/* 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: 600;
    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: var(--primary) !important;
}

.report-card .card-icon.bg-success {
    background-color: var(--primary) !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: 200px;
}

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

@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)
   ============================================ */

.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: var(--bg-color);
    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: var(--danger);
    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: var(--bg-color);
    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: var(--primary);
    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;
    transition: all 0.5s !important;
}

/* RTL sidebar-mini: navbar expands when sidebar collapses */
body[dir="rtl"].sidebar-mini .navbar-bg,
html[dir="rtl"].sidebar-mini .navbar-bg {
    right: 65px !important;
}

@media (max-width: 1024px) {

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


body[dir="rtl"] .main-navbar .navbar-search-form .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;
}

body[dir="rtl"] .language-switcher .language-flag {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

body[dir="rtl"] .main-navbar .navbar-right .dropdown.ml-2 {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

@media (max-width: 1024px) {

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

    body[dir="rtl"] .main-navbar .navbar-search-form {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        margin: 0 !important;
        min-width: 0;
    }

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

    body[dir="rtl"] .main-navbar .navbar-right,
    html[dir="rtl"] .main-navbar .navbar-right {
        margin-left: 0 !important;
        margin-right: auto !important;
        min-width: max-content;
    }
}

#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;
}

.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: 600;
    color: var(--secondary-dark);
    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: 16px;
    font-weight: 800;
}

/* 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, var(--bg-color), #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, var(--bg-color), #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: var(--primary) !important;
    color: #fff !important;
}

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

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

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

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

.btn-action-icon.btn-secondary,
td[data-field="operate"] .btn-secondary {
    background-color: var(--secondary) !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: 122px !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: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        font-size: 14px !important;
        line-height: 30px !important;
        margin: 0 4px !important;
        touch-action: manipulation !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: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 14px !important;
    }
}

/* Tablet responsive - larger touch targets for tablets */
@media (min-width: 769px) and (max-width: 991.98px) {

    th[data-field="operate"],
    td[data-field="operate"] {
        min-width: 122px !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: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        font-size: 15px !important;
        line-height: 30px !important;
        margin: 0 4px !important;
        touch-action: manipulation !important;
    }

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

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

    button.toggle-subcategories {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 15px !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: var(--primary) !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: var(--secondary) !important;
    font-weight: 600;
}

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

.form-control:focus {
    border-color: var(--primary);
    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: var(--primary);
    border-color: var(--primary);
    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: var(--primary) !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: var(--primary) !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: var(--primary) !important;
    border-color: var(--primary) !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-color: #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    max-height: none !important;
    min-width: 180px !important;
    overflow: visible !important;
    white-space: normal !important;
    z-index: 1050 !important;
}

.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu {
    max-height: none !important;
    overflow: visible !important;
}

.bootstrap-table .fixed-table-toolbar .dropdown-menu label {
    color: #495057 !important;
    cursor: pointer;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    padding: 6px 16px !important;
    white-space: normal !important;
}

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

.certificate-index-page.has-single-certificate .table-responsive {
    margin-top: 20px;
}

.single-certificate-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 22px 24px;
}

.single-certificate-card__content {
    align-items: center;
    display: flex;
    gap: 18px;
    min-width: 0;
}

.single-certificate-card__icon {
    align-items: center;
    background: rgba(90, 91, 181, 0.1);
    border-radius: 8px;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 56px;
    font-size: 24px;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.single-certificate-card__details {
    min-width: 0;
}

.single-certificate-card__meta,
.single-certificate-card__info {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-certificate-card__meta {
    margin-bottom: 8px;
}

.single-certificate-card__details h3 {
    color: #1f2937;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.single-certificate-card__details p {
    color: #4b5563;
    font-size: 14px;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.single-certificate-card__info span {
    color: #6b7280;
    font-size: 13px;
}

.single-certificate-card__info span:not(:last-child)::after {
    color: #d1d5db;
    content: "/";
    margin-left: 8px;
}

.single-certificate-card__actions {
    flex: 0 0 auto;
}

.single-certificate-card__actions .dropdown {
    width: auto !important;
}

.single-certificate-card__actions .dropdown-menu {
    z-index: 1055 !important;
}

html[dir="rtl"] .single-certificate-card__info span:not(:last-child)::after,
body[dir="rtl"] .single-certificate-card__info span:not(:last-child)::after {
    margin-left: 0;
    margin-right: 8px;
}

@media (max-width: 767.98px) {
    .single-certificate-card {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .single-certificate-card__content {
        align-items: flex-start;
    }

    .single-certificate-card__actions {
        align-self: flex-start;
    }
}

/* ============================================
   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: var(--primary)) */
.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: var(--primary);
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #fff;
    border-color: var(--primary);
}

.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: var(--primary);
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    border-color: var(--primary);
    background: var(--primary);
    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: var(--primary);
    border-color: var(--primary);
}

.shortcut-buttons-flatpickr-wrapper .shortcut-buttons-flatpickr-button:active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Flatpickr Input Group - seamless look */
.input-group-flatpickr,
.input-group:has(.flatpickr-input) {
    border: 1px solid #adb5bd !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.input-group-flatpickr .input-group-prepend,
.input-group-flatpickr .input-group-append,
.input-group:has(.flatpickr-input) .input-group-prepend,
.input-group:has(.flatpickr-input) .input-group-append {
    display: flex !important;
}

.input-group-flatpickr .input-group-text,
.input-group:has(.flatpickr-input) .input-group-text {
    background-color: transparent !important;
    border: none !important;
    color: #adb5bd !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    height: 100% !important;
}

.input-group-flatpickr .flatpickr-input,
.input-group:has(.flatpickr-input) .flatpickr-input {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    height: 100% !important;
    min-height: 38px !important;
}

.flatpickr-input[readonly] {
    background-color: transparent !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

/* Focus and active states */
.input-group-flatpickr:focus-within,
.input-group:has(.flatpickr-input):focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(103, 119, 239, 0.15) !important;
}

/* Flatpickr Clear Button */
.flatpickr-clear-btn {
    cursor: pointer !important;
    transition: color 0.15s ease-in-out !important;
}

.flatpickr-clear-btn:hover {
    background-color: #fff5f5 !important;
}

.flatpickr-clear-btn:hover i {
    color: var(--danger) !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 var(--primary);
}

.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: var(--primary) !important;
}

.social-platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #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;
}

.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: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
    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: var(--primary);
}

.translation-stat-card.completed .stat-icon {
    background: #e8f8f1;
    color: var(--success);
}

.translation-stat-card.pending .stat-icon {
    background: #fff3cd;
    color: var(--warning);
}

.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 var(--primary);
    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: var(--primary);
}

.premium-file-area i {
    font-size: 2.5rem;
    color: var(--primary);
    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;
}

/* 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;
    min-width: 0;
    overflow: hidden;
}

.bootstrap-table .table:not(.table-sm):not(.table-md):not(.dataTable) td[data-field="operate"],
.bootstrap-table .table:not(.table-sm):not(.table-md):not(.dataTable) td[data-field="actions"] {
    overflow: visible;
}

.bootstrap-table .table-cell-text {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bootstrap-table .table-cell-text-sm {
    width: min(140px, 100%);
}

.bootstrap-table .table-cell-text-md {
    width: min(220px, 100%);
}

.bootstrap-table .table-cell-badge {
    display: flex;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
}

.bg-gradient-info {
    background: var(--info-gradient);
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-success {
    background: var(--success-gradient);
}

.bg-gradient-warning {
    background: var(--warning-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

#table_list td {
    vertical-align: middle;
    padding: 1.2rem 0.75rem;
    color: #495057;
}

#table_list thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #edeff2;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #6c757d;
}

.avatar-sm {
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    background-color: #f0f2f5;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}



.progress-bar-premium {
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-dist-item {
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fbfbfb;
    min-width: 0;
    word-wrap: break-word;
}

.analysis-left-col {
    border-right: 1px solid #f1f1f1;
}

@media (max-width: 991.98px) {
    .analysis-left-col {
        border-right: none;
        border-bottom: 1px solid #f1f1f1;
        padding-bottom: 25px;
        margin-bottom: 20px;
    }
}

.stat-dist-item:hover {
    background: #f3f6ff;
    transform: scale(1.05);
}

.badge-pill-modern {
    padding: 5px 15px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* From instructor/withdrawal-requests.blade.php */
@media (max-width: 576px) {
    .fixed-table-toolbar .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

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

    .fixed-table-toolbar .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Premium Stat Cards (Modernized Dashboard Style) */
.premium-card {
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #fff;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

/* Gradients */
.bg-primary-grad {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.bg-success-grad {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-warning-grad {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-info-grad {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.bg-danger-grad {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bg-secondary-grad {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* RTL Support for Stat Icon Box */
[dir="rtl"] .stat-icon-box {
    margin-right: 0 !important;
    margin-left: 1.5rem !important;
}

/* Responsive layout adjustments for premium stat cards */
.premium-card .card-body.d-flex>div:last-child {
    flex: 1;
    min-width: 0;
}

.premium-card .card-body.d-flex h3,
.premium-card .card-body.d-flex h6 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .premium-card .card-body.d-flex {
        padding: 1rem !important;
    }

    .premium-card .stat-icon-box {
        margin-right: 1rem !important;
    }

    [dir="rtl"] .premium-card .stat-icon-box {
        margin-left: 1rem !important;
        margin-right: 0 !important;
    }

    .premium-card .card-body.d-flex h3 {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 991.98px) {
    .premium-card .card-body.d-flex {
        padding: 0.75rem !important;
    }

    .premium-card .stat-icon-box {
        margin-right: 0.75rem !important;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    [dir="rtl"] .premium-card .stat-icon-box {
        margin-left: 0.75rem !important;
        margin-right: 0 !important;
    }

    .premium-card .card-body.d-flex h3 {
        font-size: 1.2rem !important;
    }

    .premium-card .card-body.d-flex h6 {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 360px) {
    .premium-card .card-body.d-flex {
        padding: 0.5rem !important;
    }

    .premium-card .stat-icon-box {
        margin-right: 0.5rem !important;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    [dir="rtl"] .premium-card .stat-icon-box {
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
    }

    .premium-card .card-body.d-flex h3 {
        font-size: 1.1rem !important;
    }
}

/* Matching colored vertical borders for premium stat cards based on their icon theme */
.premium-card:has(.card-body.d-flex):has(.bg-primary-grad) {
    border-inline-start: 4px solid var(--primary) !important;
}

.premium-card:has(.card-body.d-flex):has(.bg-success-grad) {
    border-inline-start: 4px solid var(--success) !important;
}

.premium-card:has(.card-body.d-flex):has(.bg-warning-grad) {
    border-inline-start: 4px solid var(--warning) !important;
}

.premium-card:has(.card-body.d-flex):has(.bg-info-grad) {
    border-inline-start: 4px solid var(--info) !important;
}

.premium-card:has(.card-body.d-flex):has(.bg-danger-grad) {
    border-inline-start: 4px solid var(--danger) !important;
}

.premium-card:has(.card-body.d-flex):has(.bg-secondary-grad) {
    border-inline-start: 4px solid var(--secondary) !important;
}


/* From courses/index.blade.php */
#table_list th[data-field="is_active_export"],
#table_list td[data-field="is_active_export"] {
    display: none;
}

/* From admin/contact-messages/index.blade.php */
#statusFilter,
#dateFrom,
#dateTo,
#searchInput {
    height: 38px;
}

@media (max-width: 767.98px) {
    #contactMessageSearchForm .d-flex {
        flex-direction: column;
    }

    #contactMessageSearchForm .d-flex .btn {
        width: 100%;
    }
}

/* Contact Message Details Modal Styling - Simple & Minimal */
#viewMessageModal .contact-message-details {
    padding: 0;
}

#viewMessageModal .detail-card {
    background: var(--bg-color) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    margin-bottom: 16px !important;
}

#viewMessageModal .detail-card:last-child {
    margin-bottom: 0 !important;
}

#viewMessageModal .detail-card-header {
    background: #f8f9fa !important;
    color: #495057 !important;
    padding: 10px 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

#viewMessageModal .detail-card-header i {
    font-size: 13px;
    margin-right: 6px;
    color: #6c757d;
}

#viewMessageModal .detail-card-body {
    padding: 16px !important;
}

#viewMessageModal .info-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

#viewMessageModal .info-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

#viewMessageModal .info-row:first-child {
    padding-top: 0 !important;
}

#viewMessageModal .info-icon {
    width: 24px !important;
    flex-shrink: 0 !important;
}

#viewMessageModal .info-icon i {
    font-size: 16px !important;
    color: #6c757d !important;
}

#viewMessageModal .info-content {
    flex: 1 !important;
}

#viewMessageModal .info-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: #868e96 !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    margin-bottom: 3px !important;
}

#viewMessageModal .info-value {
    color: #212529 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

#viewMessageModal .info-value a {
    color: #007bff !important;
    text-decoration: none !important;
}

#viewMessageModal .info-value a:hover {
    text-decoration: underline !important;
}

#viewMessageModal .message-content {
    background: #f8f9fa !important;
    padding: 14px !important;
    border-radius: 4px !important;
    border-left: 3px solid #6c757d !important;
    color: #212529 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

#viewMessageModal .modal-body {
    padding: 20px !important;
}

/* Status Toggle Group Styling */
.selectgroup-pills {
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
}

.selectgroup-pills .selectgroup-item {
    margin-right: 0;
    flex: 1;
    min-width: 100px;
}

.selectgroup-pills .selectgroup-button {
    border-radius: 8px !important;
    border: 1px solid #e4e6fc;
    font-weight: 500;
    transition: all 0.3s;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.selectgroup-pills .selectgroup-input:checked+.selectgroup-button {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(103, 119, 239, 0.3);
}

#updateStatusModal .modal-body {
    padding: 25px !important;
}

/* From helpdesk/groups.blade.php */
#table_list td[data-field="description"] {
    min-width: 200px;
    max-width: 350px;
    white-space: normal;
}

.text-break-word {
    word-break: break-word;
}

.view-more-link:hover,
.view-less-link:hover {
    text-decoration: none !important;
}

/* From custom-form-fields/index.blade.php */
#table_list th[data-field="is_required_export"],
#table_list td[data-field="is_required_export"] {
    display: none;
}

/* Increase touch area for all buttons */
.remove-default-option,
.remove-edit-default-option {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    cursor: pointer;
}

.remove-default-option i,
.remove-edit-default-option i {
    font-size: 16px;
    pointer-events: none;
}

/* Table action buttons touch area */
#table_list .btn,
#table_list a.btn {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

/* Toggle links (All / Trashed) touch area */
.table-list-type {
    display: inline-block;
    min-height: 38px;
    line-height: 38px;
    padding: 0 8px;
}

/* Mobile: even larger touch targets */
@media (max-width: 768px) {

    .remove-default-option,
    .remove-edit-default-option {
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .btn,
    input[type="submit"].btn {
        min-height: 44px;
        padding: 8px 16px;
    }

    .add-new-option {
        width: 100%;
        min-height: 48px;
    }

    #table_list .btn,
    #table_list a.btn {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px;
    }
}

/* From pages/view.blade.php */
.page-footer {
    background: var(--bg-secondary, var(--bg-secondary));
    padding: 40px 24px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    color: var(--text-light, var(--text-light));
    font-size: 14px;
}

/* Body styles for standalone pages */
.page-view-body {
    margin: 0;
    padding: 0;
    font-family: 'Geist Variable', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.page-view-body .page-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
    padding: 32px 0 38px;
}

.page-view-body .page-header::before,
.page-view-body .page-header::after {
    content: none;
}

.page-view-body .header-content {
    max-width: 1040px;
    padding: 0 32px;
}

.page-header-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.page-brand {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.page-view-body .page-type-badge {
    background: rgba(90, 91, 181, 0.1);
    border: 1px solid rgba(90, 91, 181, 0.18);
    border-radius: 6px;
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 0;
    margin-bottom: 18px;
    padding: 7px 11px;
}

.page-view-body .page-title {
    color: var(--text-color);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
    max-width: 820px;
}

.page-view-body .page-meta {
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.page-view-body .meta-item {
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    color: var(--text-light);
    display: inline-flex;
    font-size: 14px;
    min-height: 36px;
    padding: 8px 12px;
    max-width: 100%;
}

.page-view-body .meta-item svg {
    color: var(--primary);
    height: 16px;
    margin-right: 8px;
    opacity: 1;
    width: 16px;
}

.page-view-body .page-container {
    margin: 32px auto 0;
    max-width: 1040px;
    padding: 0 32px;
}

.page-view-body .content-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(19, 22, 25, 0.04);
    overflow: hidden;
}

.page-view-body .page-icon-container {
    border-bottom: 1px solid var(--border-color);
    padding: 28px 40px;
    text-align: left;
}

.page-view-body .page-icon {
    border-radius: 8px;
    max-height: 84px;
    max-width: 84px;
}

.page-view-body .page-content {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 780px;
    padding: 52px 48px;
}

.page-view-body .page-content>*:first-child {
    margin-top: 0;
}

.page-view-body .page-content>*:last-child {
    margin-bottom: 0;
}

.page-view-body .page-content h1,
.page-view-body .page-content h2,
.page-view-body .page-content h3,
.page-view-body .page-content h4,
.page-view-body .page-content h5,
.page-view-body .page-content h6 {
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    margin-top: 1.8em;
}

.page-view-body .page-content h2 {
    border-top: 1px solid var(--border-color);
    font-size: 1.45rem;
    padding-top: 1.2em;
}

.page-view-body .page-content h3 {
    font-size: 1.2rem;
}

.page-view-body .page-content p {
    color: #343a40;
}

.page-view-body .page-content a {
    border-bottom: 1px solid rgba(90, 91, 181, 0.35);
    color: var(--primary);
}

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

.page-view-body .page-content blockquote {
    background: #f8fafc;
    border-left-color: var(--primary);
    border-radius: 6px;
    color: #4b5563;
}

.page-view-body .page-content table {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: block;
    overflow-x: auto;
}

.page-view-body .page-content th {
    background: #f8fafc;
}

.page-view-body .page-footer {
    background: transparent;
    border-top: 0;
    margin-top: 0;
    padding: 34px 24px 42px;
}

@media (max-width: 767.98px) {
    .page-view-body .page-header {
        padding: 24px 0 30px;
    }

    .page-view-body .header-content,
    .page-view-body .page-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-header-top {
        margin-bottom: 28px;
    }

    .page-view-body .page-title {
        font-size: 2rem;
        line-height: 1.14;
    }

    .page-view-body .page-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .page-view-body .meta-item {
        width: 100%;
        margin-right: 0 !important;
    }

    .page-view-body .page-container {
        margin-top: 18px;
    }

    .page-view-body .page-icon-container {
        padding: 22px 24px;
    }

    .page-view-body .page-content {
        font-size: 15px;
        line-height: 1.7;
        padding: 30px 24px;
    }

    .page-view-body .page-content h2 {
        font-size: 1.25rem;
    }
}

/* From tracking/show.blade.php */



.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-value {
    font-size: 1rem;
    color: #34395e;
    font-weight: 600;
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: #f4f6f9;
    color: var(--primary);
}

.progress-premium {
    height: 8px;
    border-radius: 10px;
    background-color: #f1f2f5;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge-pill-modern {
    border-radius: 30px;
    padding: 5px 15px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #edf2f9;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #95aac9;
    padding: 15px;
}

.table-modern td {
    padding: 15px;
    vertical-align: middle !important;
}

.stat-icon-premium {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-success {
    background: var(--success-gradient);
}

.bg-gradient-info {
    background: var(--info-gradient);
}

.bg-gradient-warning {
    background: var(--warning-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

.bg-light-primary {
    background: #e0e3ff;
    color: var(--primary);
}

.bg-light-info {
    background: #e0f4ff;
    color: #3abaf4;
}

.bg-light-success {
    background: #e0ffea;
    color: #47c363;
}

.bg-light-warning {
    background: #fff4e0;
    color: #ffa426;
}

.border-bottom-primary {
    border-bottom: 4px solid var(--primary) !important;
}

.border-bottom-success {
    border-bottom: 4px solid #47c363 !important;
}

.border-bottom-info {
    border-bottom: 4px solid #3abaf4 !important;
}

.border-bottom-warning {
    border-bottom: 4px solid #ffa426 !important;
}

.font-weight-900 {
    font-weight: 900;
}

#chapterSearch {
    transition: all 0.3s ease;
}

#chapterSearch:focus {
    width: 250px !important;
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 4px 6px rgba(103, 119, 239, 0.1) !important;
}

#chapterSearch::placeholder {
    color: #b0b8c1;
    font-weight: 400;
}

/* From pages/index.blade.php */
#table_list th[data-field="status_export"],
#table_list td[data-field="status_export"] {
    display: none;
}

/* From refunds/show.blade.php */
.refund-container {
    margin: 0 auto;
}

.refund-info-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    background: #fff;
}

.refund-header-section {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #354970 100%) !important;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(103, 119, 239, 0.2);
    position: relative;
    overflow: hidden;
}

.refund-header-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.refund-header-section * {
    color: #fff !important;
    position: relative;
    z-index: 1;
}

.section-title-custom {
    font-size: 1rem;
    font-weight: 700;
    color: #191d32;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.section-title-custom i {
    margin-right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(103, 119, 239, 0.1);
    color: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.info-label {
    font-weight: 600;
    color: #868ba1;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.info-value {
    font-weight: 700;
    color: #2d324a;
    font-size: 0.95rem;
}

.progress-card-inner {
    background: #fdfdff;
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #edf2f9;
}

.instructor-response-box {
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid transparent;
}

.response-approve {
    background-color: #f6fff9;
    border-color: #c3e6cb;
}

.response-reject {
    background-color: #fff5f5;
    border-color: #f5c6cb;
}

.response-pending {
    background-color: #fffbf2;
    border-color: #ffeeba;
}

.stat-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-header-clean {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f1f3f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-clean h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #34395e;
}

.badge-status {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 30px;
}

.btn-elevation {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
}

@media (max-width: 991px) {
    .refund-header-section {
        padding: 1.5rem;
    }
}

/* From refunds/index.blade.php */
#filter_status,
#filter_instructor_response {
    height: 38px;
}

@media (max-width: 767.98px) {
    #toolbar .d-flex {
        flex-direction: column;
    }

    #toolbar .d-flex .btn {
        width: 100%;
    }
}

/* From promo-codes/index.blade.php */
#table_list th[data-field="status_export"],
#table_list td[data-field="status_export"] {
    display: none;
}

/* From courses/tags/index.blade.php */
#table_list th[data-field="is_active_export"],
#table_list td[data-field="is_active_export"] {
    display: none;
}

/* From layouts/app.blade.php - Navbar Search & Language Switcher & General Layout */
.navbar-search-form {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    margin-inline-end: auto;
    min-width: 0;
}

.navbar-sidebar-toggle {
    margin: 0;
}

#navbar-search-toggle {
    display: none;
}

.navbar-search-toggle-btn {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 8px;
}

#navbar-search-wrapper {
    display: inline-block;
    margin-inline-start: 3px;
    position: relative;
    transition: width 0.3s ease;
    width: 300px;
}

@media (min-width: 992px) {
    #navbar-search-wrapper:focus-within {
        width: 450px;
    }
}

#navbar-search {
    background: #fff !important;
    border: 1px solid #fff !important;
    border-radius: 20px !important;
    color: #333 !important;
    font-size: 14px;
    height: 38px !important;
    padding-inline-end: 45px !important;
    padding-inline-start: 20px !important;
    transition: all 0.3s ease;
    width: 100% !important;
}

#navbar-search::-webkit-search-decoration,
#navbar-search::-webkit-search-cancel-button,
#navbar-search::-webkit-search-results-button,
#navbar-search::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

#navbar-search::placeholder {
    color: #999;
}

#navbar-search:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

#navbar-search-kbd {
    background: #f4f6f9 !important;
    border: 1px solid #ddd !important;
    color: #666 !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

#navbar-search-hint,
#navbar-search-close {
    position: absolute;
    inset-inline-end: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

#navbar-search-close {
    color: #888;
    cursor: pointer;
    display: none;
    font-size: 16px;
}

#navbar-search:focus+#navbar-search-hint {
    opacity: 0;
    visibility: hidden;
}

#navbar-search-results {
    background: #fff;
    border: 1px solid #edf2f9;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    inset-inline-start: 0;
    margin-top: 10px !important;
    max-height: 450px;
    min-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 0;
    position: absolute;
    width: 100%;
    z-index: 9999;
}

#navbar-search-results::-webkit-scrollbar {
    width: 6px;
}

#navbar-search-results::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 10px;
}

.search-item {
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
    color: #333 !important;
    display: flex !important;
    font-size: 13.5px;
    font-weight: 500;
    gap: 12px;
    padding: 12px 18px !important;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item i {
    font-size: 14px;
    flex: 0 0 20px;
    text-align: center;
    width: 20px;
}

.search-item:hover,
.search-item.active {
    background: #f4f6f9 !important;
    color: var(--primary) !important;
    text-decoration: none;
}

.search-item mark {
    background: rgba(103, 119, 239, 0.15);
    color: var(--primary);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    #navbar-search-wrapper {
        width: 220px;
    }
}

@media (max-width: 575.98px) {
    #navbar-search-wrapper {
        display: none !important;
    }

    #navbar-search-wrapper.navbar-search-mobile-open {
        display: inline-block !important;
        inset-inline: 10px !important;
        margin: 0 !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% - 20px) !important;
        z-index: 900;
    }

    #navbar-search-toggle {
        display: inline-block !important;
        padding: 0 10px;
    }
}

html[dir="rtl"] .navbar-search-form,
body[dir="rtl"] .navbar-search-form {
    margin-inline-end: 0 !important;
    margin-inline-start: auto !important;
}

html[dir="rtl"] #navbar-search,
body[dir="rtl"] #navbar-search {
    text-align: right;
}

html[dir="rtl"] #navbar-search-results,
body[dir="rtl"] #navbar-search-results {
    text-align: right;
}

.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: var(--info);
    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;
}

[dir="rtl"] .language-switcher .nav-link {
    direction: rtl;
    flex-direction: row;
    gap: 8px;
    text-align: right;
}

/* From courses/languages/index.blade.php */
#table_list th[data-field="is_active_export"],
#table_list td[data-field="is_active_export"] {
    display: none;
}

/* From admin/withdrawals/show.blade.php */
.bg-primary-light {
    background-color: var(--primary-light, rgba(103, 119, 239, 0.1));
}

/* btn-primary-light — solid light variant */
.btn-primary-light,
.btn-primary-light.disabled {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--primary) 15%, transparent);
}

.btn-primary-light:hover,
.btn-primary-light:focus,
.btn-primary-light:active,
.btn-primary-light.disabled:hover,
.btn-primary-light.disabled:focus,
.btn-primary-light.disabled:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* btn-outline-primary-light — transparent with light border */
.btn-outline-primary-light,
.btn-outline-primary-light.disabled {
    background-color: transparent;
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-outline-primary-light:hover,
.btn-outline-primary-light:focus,
.btn-outline-primary-light:active,
.btn-outline-primary-light.disabled:hover,
.btn-outline-primary-light.disabled:focus,
.btn-outline-primary-light.disabled:active {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* btn-primary-outline — alias matching Bootstrap outline convention */
.btn-primary-outline,
.btn-primary-outline.disabled {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover,
.btn-primary-outline:focus,
.btn-primary-outline:active,
.btn-primary-outline.disabled:hover,
.btn-primary-outline.disabled:focus,
.btn-primary-outline.disabled:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.bg-success-light {
    background-color: rgba(71, 195, 99, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-danger-light {
    background-color: rgba(252, 84, 75, 0.1);
}

.badge-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.badge-outline-warning {
    border: 1px solid #ffc107;
    color: #ffc107;
    background: transparent;
}

.avatar-lg {
    width: 90px;
    height: 90px;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon.rounded-circle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.list-unstyled-border li {
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.list-unstyled-border li:last-child {
    border-bottom: none;
}

.italic {
    font-style: italic;
}

@media (max-width: 768px) {
    .border-left {
        border-left: none !important;
        border-top: 1px solid #eee;
        padding-top: 20px !important;
    }
}

/* From admin/wallets/index.blade.php */
.filter-section {
    transition: all 0.3s ease;
    background: #fff;
}

.filter-section:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.filter-section .form-control {
    border-color: #f1f2f4 !important;
    background-color: #fdfdfd !important;
}

.filter-section .form-control:focus {
    background-color: #fff !important;
    border-color: var(--primary) !important;
}

#walletTable .badge {
    font-weight: 600;
    padding: 0.5em 1em;
    letter-spacing: 0.3px;
}

/* From faq/index.blade.php */
#table_list th[data-field="is_active_export"],
#table_list td[data-field="is_active_export"] {
    display: none;
}

#table_list td[data-field="question"],
#table_list td[data-field="answer"] {
    min-width: 200px;
    max-width: 350px;
    white-space: normal;
}

.text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.text-break-word {
    word-break: break-word;
}

.view-more-link:hover,
.view-less-link:hover {
    text-decoration: none !important;
}

/* From admin/users/index.blade.php */
.avatar-circle {
    transition: transform 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.user-details th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 12px 15px !important;
}

.user-details td {
    padding: 12px 15px !important;
}

/* From payment/paypal.blade.php */
.payment-body-paypal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-secondary);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.payment-card {
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.payment-card .payment-header {
    background: linear-gradient(135deg, #003087 0%, #0079c1 100%);
    padding: 32px;
    text-align: center;
    margin-bottom: 0;
}

.payment-card .payment-header h1 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-card .payment-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 0;
}

.payment-card .payment-body {
    padding: 32px;
}


.paypal-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.paypal-logo svg {
    height: 32px;
}

.amount-display {
    background: #f0f8ff;
    border: 2px solid #009cde;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.amount-display .label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-display .value {
    font-size: 36px;
    font-weight: 700;
    color: #003087;
    margin-top: 4px;
}

.amount-display .currency {
    font-size: 16px;
    color: #009cde;
    font-weight: 500;
}

.order-details {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.order-detail-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.loading-state {
    display: none;
    text-align: center;
    padding: 20px;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    color: #888;
    font-size: 12px;
}

.secure-badge svg {
    fill: #888;
}

.error-message {
    display: none;
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 14px;
    color: #cc0000;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

/* From payment/razorpay.blade.php */
.payment-body-razorpay {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.category-order-card .card-body {
    overflow: hidden;
}

.category-order-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.category-order-item {
    min-width: 0;
    cursor: grab;
    list-style: none;
}

.category-order-tile {
    position: relative;
    min-width: 0;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-order-tile:hover {
    border-color: #cfd6ff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.category-order-tile__layout {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
}

.category-order-tile__media,
.category-order-tile__content {
    min-width: 0;
}

.category-order-tile__media {
    width: 82px;
    height: 82px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f8;
}

.category-order-tile__content {
    align-items: flex-start !important;
}

.category-order-tile__content strong,
.category-order-tile__content span {
    overflow-wrap: anywhere;
}

.category-order-tile__content strong {
    color: #2f343b;
    font-size: 0.94rem;
    line-height: 1.3;
}

.category-order-tile__description {
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.78rem;
    line-height: 1.35;
}

.category-order-tile__handle {
    color: #a4adb8;
    font-size: 1rem;
    text-align: center;
}

.category-order-tile .order-change {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .category-order-card .card-body {
        padding: 16px 12px;
    }

    .category-order-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-order-tile {
        padding: 12px 14px;
    }

    .category-order-tile__layout {
        grid-template-columns: 72px minmax(0, 1fr) 16px;
        gap: 12px;
    }

    .category-order-tile__media {
        width: 72px;
        height: 72px;
    }
}

th.drag-handle-cell,
td.drag-handle-cell {
    cursor: default;
    text-align: center;
    touch-action: auto;
    user-select: none;
}

td.drag-handle-cell .drag-handle-grip {
    color: #adb5bd;
    cursor: grab;
    display: inline-flex;
    font-size: 16px;
    padding: 8px 10px;
    touch-action: none;
    user-select: none;
}

td.drag-handle-cell .drag-handle-grip:active {
    cursor: grabbing;
}

.empty-sidebar-state {
    align-items: center;
    color: var(--text-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

.empty-sidebar-state i {
    margin-bottom: 10px;
}

.min-width-0 {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .section-header {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .section-header-button {
        display: flex;
        margin-left: 0 !important;
        margin-top: 15px;
        width: 100%;
    }

    .section-header-button .btn {
        flex: 1;
    }

    .edit-hero-content,
    .card-body.p-4 {
        padding: 1.25rem !important;
    }
}

/* ── Course Create / Edit Page ────────────────────────────────── */
.course-create-page {
    --cc-border: #edf0f5;
    --cc-soft: #f8fafc;
    --cc-primary: #5750b7;
    --cc-accent-media: #0d6efd;
    --cc-accent-pricing: #198754;
    --cc-accent-content: #e09c2e;
    --cc-accent-seo: #6f42c1;
}

.course-create-page .search-container {
    display: block;
}

.cc-card {
    border: 1px solid var(--cc-border) !important;
    border-radius: 14px;
    margin-bottom: 22px;
    overflow: hidden;
}

.cc-card-header {
    background: #fff;
    border-bottom: 1px solid var(--cc-border);
    padding: 16px 22px;
}

.cc-card .card-body {
    padding: 22px;
}

.cc-section-label {
    align-items: center;
    display: flex;
    gap: 14px;
}

.cc-section-icon {
    align-items: center;
    background: #eef2ff;
    border-radius: 10px;
    color: var(--cc-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.cc-icon-media {
    background: #e8f3ff;
    color: var(--cc-accent-media);
}

.cc-icon-pricing {
    background: #e8f5ee;
    color: var(--cc-accent-pricing);
}

.cc-icon-content {
    background: #fff8e8;
    color: var(--cc-accent-content);
}

.cc-icon-seo {
    background: #f3eeff;
    color: var(--cc-accent-seo);
}

.cc-section-title {
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.cc-section-sub {
    color: #8b97aa;
    font-size: 0.78rem;
    margin: 0;
}

.course-create-page .form-label {
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.course-create-page .form-control,
.course-create-page .input-group-text {
    border-color: #dfe5ef;
    border-radius: 8px;
}

.course-create-page .input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.course-create-page .input-group-prepend .input-group-text {
    background: var(--cc-soft);
    border-radius: 8px 0 0 8px;
    color: #8b97aa;
}

.cc-divider {
    border-color: var(--cc-border);
    margin: 22px 0;
}

/* Segmented Control for Course Type */
.cc-type-segmented {
    background: #f1f5f9;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    display: inline-flex;
    padding: 4px;
    width: 100%;
}

.cc-segmented-btn {
    align-items: center;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    justify-content: center;
    margin: 0 !important;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.cc-segmented-btn:hover {
    color: var(--cc-primary);
}

.cc-segmented-btn.cc-segmented-active {
    background: #fff;
    color: var(--cc-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Repeater items */
.cc-repeater-item {
    margin-bottom: 10px;
}

.cc-repeater-body {
    align-items: center;
    background: var(--cc-soft);
    border: 1px solid var(--cc-border);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    padding: 10px 14px;
}

.cc-repeater-num {
    align-items: center;
    background: var(--cc-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.cc-repeater-input {
    border-radius: 8px !important;
    flex: 1;
}

.cc-repeater-delete {
    align-items: center;
    background: #fee2e2 !important;
    border: 0;
    border-radius: 8px !important;
    color: #ef4444 !important;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    width: 34px;
}

.cc-repeater-delete:hover {
    background: #fca5a5 !important;
    transform: scale(1.05);
}

/* Thumbnail preview */
.cc-media-preview {
    border: 1px solid var(--cc-border);
    border-radius: 10px;
    overflow: hidden;
}

.cc-preview-img {
    border: 0;
    max-height: 160px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 767.98px) {
    .cc-type-selector {
        flex-direction: column;
    }

    .cc-type-option {
        max-width: 100%;
    }

    .cc-card .card-body {
        padding: 16px;
    }
}

.role-form-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.role-form-header {
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
}

.role-form-icon {
    align-items: center;
    background: rgba(103, 119, 239, 0.12);
    border-radius: 8px;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.role-form-panel {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
    margin-top: 22px;
}

.role-form-panel-body {
    padding: 22px;
}

.role-permission-toolbar {
    align-items: center;
    background: #fbfcff;
    border-bottom: 1px solid #f0f2f5;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 18px 22px;
}

.role-permission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-permission-actions .btn {
    min-height: 36px;
}

.role-permission-groups {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 16px;
}

.role-permission-group {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
}

.role-permission-group-header {
    align-items: baseline;
    background: #fbfcff;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 14px;
}

.role-permission-group-title {
    color: #34395e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    min-width: 0;
}

.role-permission-count {
    background: rgba(103, 119, 239, 0.1);
    border-radius: 999px;
    color: var(--primary);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
}

.role-permission-group-select {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 7px;
    margin: 0;
    min-width: 0;
}

.role-permission-group-select input {
    flex: 0 0 auto;
    margin-top: 1px;
}

.role-permission-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 12px;
}

.role-permission-option {
    align-items: flex-start;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    margin: 0;
    min-height: 38px;
    padding: 8px 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.role-permission-option:hover {
    background: #fbfcff;
    border-color: rgba(103, 119, 239, 0.35);
}

.role-permission-option input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.role-permission-option span {
    color: #34395e;
    font-size: 13px;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .role-permission-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .role-permission-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .role-form-card .card-body {
        padding: 18px;
    }

    .role-form-header {
        align-items: flex-start;
        gap: 12px;
    }

    .role-form-panel-body,
    .role-permission-toolbar,
    .role-permission-groups {
        padding: 16px;
    }

    .role-permission-actions,
    .role-permission-actions .btn,
    .role-form-submit {
        width: 100%;
    }

    .role-permission-groups {
        grid-template-columns: 1fr;
    }

    .role-permission-options {
        grid-template-columns: 1fr;
    }
}

.users-table-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    min-width: 280px;
}

.users-table-filter {
    flex: 0 1 270px;
    min-width: 240px;
}

.users-table-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.users-table-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
}

html[dir="rtl"] .main-sidebar .sidebar-menu li a,
body[dir="rtl"] .main-sidebar .sidebar-menu li a {
    gap: 10px;
    padding-inline: 24px 34px;
}

html[dir="rtl"] .main-sidebar .sidebar-menu li a i,
body[dir="rtl"] .main-sidebar .sidebar-menu li a i {
    flex: 0 0 22px;
    margin: 0;
}

html[dir="rtl"] .main-sidebar .sidebar-menu li a span:not(.badge),
body[dir="rtl"] .main-sidebar .sidebar-menu li a span:not(.badge) {
    flex: 1 1 auto;
    min-width: 0;
}

html[dir="rtl"] .main-sidebar .sidebar-menu li a .badge,
body[dir="rtl"] .main-sidebar .sidebar-menu li a .badge {
    flex: 0 0 auto;
    margin-inline: 8px 0 !important;
}

html[dir="rtl"] .main-sidebar .sidebar-menu li a.has-dropdown::after,
body[dir="rtl"] .main-sidebar .sidebar-menu li a.has-dropdown::after {
    left: 14px;
}

html[dir="rtl"] .main-sidebar .sidebar-menu li ul.dropdown-menu li a,
body[dir="rtl"] .main-sidebar .sidebar-menu li ul.dropdown-menu li a {
    padding-inline: 52px 46px;
}

@media (max-width: 991.98px) {

    .users-table-toolbar,
    .users-table-filter,
    .users-table-actions {
        width: 100%;
    }

    .users-table-filter {
        flex-basis: 100%;
    }

    .users-table-actions .btn {
        flex: 1 1 120px;
    }

}

/* Chapter collapse button styling in enrollments/courses details */
#courseChapters .card-header .btn-link,
#courseChaptersAccordion .card-header .btn-link {
    background-color: var(--primary, #5A5BB5) !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(90, 91, 181, 0.15) !important;
}

#courseChapters .card-header .btn-link:hover,
#courseChaptersAccordion .card-header .btn-link:hover {
    background-color: #4b4ca7 !important;
    /* Richer, slightly darker primary color for hover contrast */
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(90, 91, 181, 0.3) !important;
    transform: translateY(-1px);
}

#courseChapters .card-header .btn-link:focus,
#courseChaptersAccordion .card-header .btn-link:focus,
#courseChapters .card-header .btn-link:active,
#courseChaptersAccordion .card-header .btn-link:active {
    background-color: #3e3f90 !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 0 0 0.2rem rgba(90, 91, 181, 0.35) !important;
    outline: none !important;
}

/* ================================================================
   MODERN UI REDESIGN: SECTION-HEADER & CARD
   All styles use CSS logical properties (border-inline-start, etc.)
   — works identically for LTR and RTL with zero extra overrides
   ================================================================ */

/* ── CSS Design Tokens ────────────────────────────────────── */
:root {
    --modern-radius: 14px;
    --modern-radius-sm: 10px;
    --modern-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(99, 102, 241, 0.07);
    --modern-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.09), 0 8px 32px rgba(99, 102, 241, 0.11);
    --modern-accent-opacity: 0.08;
    --modern-header-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    --modern-transition: all 0.22s ease;
}

/* ── SECTION-HEADER ───────────────────────────────────────── */

.main-wrapper-1 .section .section-header,
.section .section-header,
.section-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
    border-radius: var(--modern-radius) !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    border-left: 4px solid var(--primary) !important;
    border-inline-start: 4px solid var(--primary) !important;
    box-shadow: var(--modern-shadow-sm) !important;
    padding: 18px 24px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    position: relative !important;
    isolation: isolate !important;
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* RTL overrides for accent border position */
html[dir="rtl"] .main-wrapper-1 .section .section-header,
body[dir="rtl"] .main-wrapper-1 .section .section-header,
html[dir="rtl"] .section .section-header,
body[dir="rtl"] .section .section-header,
html[dir="rtl"] .section-header,
body[dir="rtl"] .section-header {
    border-left: none !important;
    border-right: 4px solid var(--primary) !important;
    border-inline-start: 4px solid var(--primary) !important;
}

/* Decorative radial glow – top-end corner (kept within bounds, no clipping needed) */
.section .section-header::after,
.section-header::after {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    width: 160px;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.09) 0%, transparent 70%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

/* RTL overrides for the radial glow direction */
html[dir="rtl"] .section .section-header::after,
body[dir="rtl"] .section .section-header::after,
html[dir="rtl"] .section-header::after,
body[dir="rtl"] .section-header::after {
    background: radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.09) 0%, transparent 70%);
}

/* Page title text */
.section .section-header h1,
.section-header h1 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
    position: relative;
    z-index: 1;
}

/* Button group – pushed to the inline-end (right in LTR, left in RTL) */
.section .section-header .section-header-button,
.section-header .section-header-button {
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    position: relative;
    z-index: 1;
}

/* Buttons inside section-header */
.section .section-header .btn,
.section-header .btn {
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: var(--modern-radius-sm) !important;
    padding: 8px 20px !important;
    letter-spacing: 0.1px !important;
    transition: var(--modern-transition) !important;
    position: relative;
    z-index: 1;
}

.section .section-header .btn:hover,
.section-header .btn:hover {
    box-shadow: 0 5px 14px rgba(99, 102, 241, 0.28) !important;
}

/* Back button */
.section .section-header .section-header-back,
.section-header .section-header-back {
    margin-inline-end: 6px !important;
    margin-inline-start: 0 !important;
    position: relative;
    z-index: 1;
}

/* Breadcrumb at the end */
.section .section-header .section-header-breadcrumb,
.section-header .section-header-breadcrumb {
    margin-inline-start: auto !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
}

.section .section-header .section-header-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.section .section-header .section-header-breadcrumb .breadcrumb-item {
    font-size: 12px !important;
    color: #64748b !important;
}

.section .section-header .section-header-breadcrumb .breadcrumb-item a {
    color: var(--primary) !important;
    font-weight: 500;
}

/* Mobile: stack gracefully */
@media (max-width: 575.98px) {

    .section .section-header,
    .section-header {
        border-radius: var(--modern-radius-sm) !important;
        padding: 14px 16px !important;
        gap: 10px !important;
    }

    .section .section-header h1,
    .section-header h1 {
        font-size: 17px !important;
    }

    .section .section-header .section-header-button,
    .section-header .section-header-button {
        flex-basis: 100%;
        margin-inline-start: 0 !important;
        margin-top: 10px;
    }
}

/* ── CARD (global refinement) ────────────────────────────── */

/* Base card elevation + radius */
.card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: var(--modern-radius) !important;
    box-shadow: var(--modern-shadow-sm) !important;
    transform: translateY(0) !important;
    transition: box-shadow 0.22s ease, transform 0.22s ease !important;
    overflow: hidden;
}

/* Allow cert-cards to breathe without clipping on hover */
.card:has(.cert-list) {
    overflow: visible !important;
}

/* Hover lift – excludes special card types */
.card:not(.card-statistic-1):not(.card-statistic-2):not(.card-hero):not(.premium-card):not(.no-hover):hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--modern-shadow-md) !important;
}

/* ── CARD-HEADER ─────────────────────────────────────────── */

.card .card-header {
    background: var(--modern-header-bg) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.09) !important;
    border-radius: 0 !important;
    padding: 15px 22px !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
}

.card .card-header .divider-text {
    background-color: transparent !important;
}

/* Card header title */
.card .card-header h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    letter-spacing: -0.2px !important;
    line-height: 1.4 !important;
    padding-inline-end: 10px !important;
    padding-inline-start: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Icon in card header title */
.card .card-header h4>i {
    color: var(--primary) !important;
    font-size: 14px !important;
    opacity: 0.9;
}

/* Action area in card header */
.card .card-header h4+.card-header-action,
.card .card-header h4+.card-header-form {
    margin-inline-start: auto !important;
    margin-left: auto !important;
}

/* ── CARD-BODY ───────────────────────────────────────────── */

.card .card-body {
    padding: 22px !important;
}

/* Remove double top-padding when header is present */
.card .card-header+.card-body {
    padding-top: 20px !important;
}

/* ── CARD-FOOTER ─────────────────────────────────────────── */

.card .card-footer {
    background: rgba(248, 249, 255, 0.8) !important;
    border-top: 1px solid rgba(99, 102, 241, 0.07) !important;
    border-radius: 0 !important;
    padding: 14px 22px !important;
}

/* ── Preserve accordion card styles ─────────────────────── */

#courseChapters .card,
#courseChaptersAccordion .card {
    border-radius: 8px !important;
    transform: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07) !important;
    overflow: visible;
}

#courseChapters .card:hover,
#courseChaptersAccordion .card:hover {
    transform: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07) !important;
}

#courseChapters .card .card-header,
#courseChaptersAccordion .card .card-header {
    border-inline-start: none !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
    min-height: unset !important;
}

/* ── Preserve statistic card styles ─────────────────────── */

.card.card-statistic-1,
.card.card-statistic-2 {
    transform: none !important;
}

.card.card-statistic-1 .card-header,
.card.card-statistic-2 .card-header {
    border-inline-start: none !important;
    background: transparent !important;
}

/* ── FILTER-SECTION (modern card-style redesign) ─────── */

.filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
    border-radius: var(--modern-radius) !important;
    box-shadow: var(--modern-shadow-sm) !important;
    margin-bottom: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    transition: var(--modern-transition) !important;
}

.filter-section:hover {
    box-shadow: var(--modern-shadow-md) !important;
}

/* Decorative radial glow – mirrored from section-header */
.filter-section::after {
    content: '';
    position: absolute;
    inset-block-start: -40px;
    inset-inline-end: -40px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* h5 acts as card-header */
.filter-section h5 {
    background: var(--modern-header-bg) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.09) !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    min-height: 58px !important;
    padding: 15px 22px !important;
    position: relative !important;
    z-index: 1;
}

/* Icon in the header */
.filter-section h5 i {
    color: var(--primary) !important;
    font-size: 14px !important;
    opacity: 0.9;
}

/* form / body area */
.filter-section form {
    padding: 20px 22px 6px !important;
    position: relative;
    z-index: 1;
}

/* Form controls */
.filter-section .form-control {
    border-color: rgba(99, 102, 241, 0.15) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    transition: var(--modern-transition) !important;
}

.filter-section .form-control:focus {
    border-color: var(--primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Select wrappers */
.filter-section .select2-container .select2-selection--single {
    border-color: rgba(99, 102, 241, 0.15) !important;
    border-radius: 8px !important;
}

.filter-section .select2-container--default .select2-selection--single:focus,
.filter-section .select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Action buttons */
.filter-section .btn {
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: var(--modern-radius-sm) !important;
    transition: var(--modern-transition) !important;
}

.filter-section .btn:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.22) !important;
}

/* Mobile */
@media (max-width: 575.98px) {
    .filter-section {
        border-radius: var(--modern-radius-sm) !important;
    }

    .filter-section h5 {
        font-size: 14px !important;
        padding: 12px 16px !important;
        min-height: unset !important;
    }

    .filter-section form {
        padding: 16px 16px 4px !important;
    }
}

a.text-info:focus,
a.text-info:hover {
    color: var(--info) !important;
}

a.text-primary:focus,
a.text-primary:hover {
    color: var(--primary) !important;
}

/* ── Certificate Index – Card List ────────────────────────────────────────── */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-card {
    background: #fff;
    border: 1.5px solid #f0f0f5;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
    flex-wrap: wrap;
}

.cert-card:hover {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.18);
    border-color: var(--primary, #4f46e5);
}

.cert-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary, #4f46e5) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-card-icon i {
    font-size: 22px;
    color: #fff;
}

.cert-card-info {
    flex: 1;
    min-width: 0;
}

.cert-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cert-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.cert-card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    word-break: break-word;
}

.cert-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.cert-card-date {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cert-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.cert-type-course_completion {
    background: #d1fae5;
    color: #065f46;
}

.cert-type-exam_completion {
    background: #dbeafe;
    color: #1e40af;
}

.cert-type-custom {
    background: #fef3c7;
    color: #92400e;
}

.cert-card-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cert-status-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cert-status-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cert-status-label.active {
    color: #059669;
}

.cert-status-label.inactive {
    color: #dc2626;
}

.cert-card-divider {
    width: 1px;
    height: 40px;
    background: #f0f0f5;
    flex-shrink: 0;
}

.cert-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
    line-height: 1;
    height: 32px;
    box-sizing: border-box;
}

.cert-btn i {
    font-size: 11px;
}

.cert-btn-view {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.cert-btn-view:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    text-decoration: none;
}

.cert-btn-edit {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.cert-btn-edit:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
    text-decoration: none;
}

.cert-btn-preview {
    background: #faf5ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.cert-btn-preview:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #7c3aed;
    text-decoration: none;
}

.cert-btn-design {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.cert-btn-design:hover {
    background: #ffedd5;
    border-color: #fdba74;
    color: #c2410c;
    text-decoration: none;
}

.cert-btn-delete {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.cert-btn-delete:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

.cert-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
}

.cert-empty i {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: .3;
}

.cert-empty p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .cert-card {
        flex-wrap: wrap;
        padding: 16px 18px;
    }

    .cert-card-right {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid #f3f4f6;
    }

    .cert-card-divider {
        display: none;
    }

    .cert-btn span {
        display: none;
    }

    .cert-btn {
        padding: 7px 10px;
    }
}

/* ── End Certificate Index ─────────────────────────────────────────────────── */