 .media-select {
     cursor: pointer;
     transition: all 0.25s ease-in-out;
 }

 .media-select:hover {
     transform: scale(1.03);
     box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
 }

 .media-select.border-primary {
     border: 2px solid #8224E3 !important;
     box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
     position: relative;
 }

 .media-select.border-primary::after {
     content: "✔";
     position: absolute;
     top: 6px;
     right: 8px;
     background: #8224E3;
     color: #fff;
     font-size: 16px;
     font-weight: bold;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 0 5px rgba(13, 110, 253, 0.4);
 }

 .border-dashed {
     border-style: dashed !important;
     transition: 0.3s all ease-in-out;
 }

 #global-upload-form.dragover {
     background-color: #f0f8ff;
     border-color: #8224E3 !important;
     transform: scale(1.02);
 }

 #upload-preview img {
     width: 80px;
     height: 80px;
     object-fit: cover;
     border-radius: 8px;
 }


 .menu-item {
     list-style: none;
 }

 /* Card */
 .module-card {
     border-radius: 14px;
     transition: all .2s ease;
 }

 .module-card:hover {
     transform: translateY(-4px);
     box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
 }

 /* Thumbnail */
 .module-thumb-wrapper {
     position: relative;
     height: 140px;
     overflow: hidden;
     border-radius: 14px 14px 0 0;
     background: #f1f5f9;
 }

 .module-thumb-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 /* Status dot */
 .status-dot {
     position: absolute;
     top: 10px;
     right: 10px;
     width: 9px;
     height: 9px;
     border-radius: 50%;
 }

 .status-active {
     background: #22c55e;
     box-shadow: 0 0 0 4px rgba(34, 197, 94, .25);
 }

 .status-inactive {
     background: #94a3b8;
 }

 /* Description clamp */
 .module-desc {
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 /* Soft buttons */
 .btn-success-soft {
     background: rgba(0, 0, 0, 0.12);
     color: #15803d;
     border: 1px solid rgb(0, 199, 73);
 }

 .btn-warning-soft {
     background: rgba(255, 255, 255, 0.15);
     color: #6b0005;
     border: 1px solid rgb(0, 255, 34);
 }

 /* Dot */
 .dot-separator {
     width: 4px;
     height: 4px;
     background: #8224E3;
     border-radius: 50%;
     display: inline-block;
 }

 /* Fix toastr colors for Bootstrap 5 */
 #toast-container>.toast-success {
     background-color: #28a745 !important;
 }

 #toast-container>.toast-error {
     background-color: #dc3545 !important;
 }

 #toast-container>.toast-warning {
     background-color: #ffc107 !important;
     color: #000 !important;
 }

 #toast-container>.toast-info {
     background-color: #0dcaf0 !important;
 }

/* ================================================================
   SeloCommerce Premium Admin UI
   SeloCommerce by Webnion — Developed by Anik
   This layer changes presentation only; module routes and behavior stay intact.
   ================================================================ */
:root {
    --selo-admin-primary: #7c3aed;
    --selo-admin-primary-hover: #6d28d9;
    --selo-admin-primary-soft: #faf6ff;
    --selo-admin-success: #20c997;
    --selo-admin-page: #f5f7fb;
    --selo-admin-surface: #ffffff;
    --selo-admin-heading: #000107;
    --selo-admin-body: #000000;
    --selo-admin-muted: #000000;
    --selo-admin-border: #e7ebf2;
    --selo-admin-radius: 12px;
    --selo-admin-shadow: 0 7px 24px rgba(30, 41, 59, 0.035);
    --bs-primary: #7c3aed;
    --bs-primary-rgb: 124, 58, 237;
    --bs-body-font-family: "Nunito Sans", sans-serif;
    --bs-body-font-weight: 400;
}

html,
body {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 400;
    color: var(--selo-admin-body);
    background: var(--selo-admin-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
.table,
.form-control,
.form-select,
.btn,
.dropdown-menu {
    font-family: inherit;
}

.page-content,
.page-content > .px-3 {
    background: var(--selo-admin-page);
}

.page-content > .px-3 {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--selo-admin-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

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

.text-muted,
.form-text {
    color: var(--selo-admin-muted) !important;
}

a {
    color: var(--selo-admin-primary);
}

a:hover {
    color: var(--selo-admin-primary-hover);
}

.card {
    border: 1px solid var(--selo-admin-border);
    border-radius: var(--selo-admin-radius);
    box-shadow: var(--selo-admin-shadow);
    background: var(--selo-admin-surface);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: none;
}

.card-header,
.card-footer {
    border-color: var(--selo-admin-border);
    background: transparent;
}

.card-header {
    min-height: 48px;
    padding: 13px 16px;
    color: var(--selo-admin-heading);
    font-weight: 500;
}

.card-body {
    padding: 16px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    box-shadow: none !important;
}

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

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

.btn-light {
    color: #657186;
    background: #f1f4f8;
    border-color: #e8ecf2;
}

.btn-outline-primary {
    color: var(--selo-admin-primary);
    border-color: rgba(124, 58, 237, .35);
}

.btn-outline-primary:hover {
    background: var(--selo-admin-primary);
    border-color: var(--selo-admin-primary);
}

.form-label {
    color: #4e596b;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 38px;
    border-color: #dfe4ec;
    border-radius: 8px;
    color: #4f5b6d;
    background-color: #fff;
    font-size: 16px;
    box-shadow: none;
}

textarea.form-control {
    min-height: 96px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(124, 58, 237, .65);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}

.form-check-input:checked {
    background-color: var(--selo-admin-primary);
    border-color: var(--selo-admin-primary);
}

.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    color: var(--selo-admin-body);
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 10px 12px;
    border-color: #edf0f4;
}

.table thead th {
    color: #7f8b9f;
    background: #fafafd;
    border-bottom-color: #dfe4eb;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .025em;
    white-space: nowrap;
}

.table tbody td {
    color: #667286;
  
}

.table tbody tr:hover > * {
    --bs-table-accent-bg: rgba(124, 58, 237, .025);
}

.table .btn-sm,
.table .btn-group-sm > .btn {
    min-height: 30px;
    padding: 5px 9px;
    
}

.badge {
    font-weight: 500;
    border-radius: 999px;
    padding: 5px 8px;
}

.pagination .page-link {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--selo-admin-border);
    color: #647084;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background: var(--selo-admin-primary);
    border-color: var(--selo-admin-primary);
}

.modal-content,
.dropdown-menu,
.offcanvas {
    border: 1px solid var(--selo-admin-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(30, 41, 59, .12);
}

.modal-header,
.modal-footer,
.dropdown-divider {
    border-color: var(--selo-admin-border);
}

.nav-tabs {
    border-color: var(--selo-admin-border);
}

.nav-tabs .nav-link {
    color: #000000;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--selo-admin-primary);
    border-color: var(--selo-admin-border) var(--selo-admin-border) #fff;
}

.navbar-custom {
    background: #fff;
    border-bottom: 1px solid #e9edf3;
    box-shadow: none;
}

.navbar-custom .nav-link,
.navbar-custom .button-toggle-menu {
    color: #020407;
}

.navbar-custom .nav-link:hover,
.navbar-custom .button-toggle-menu:hover {
    color: var(--selo-admin-primary);
}

[data-menu-color="light"] .main-menu {
    background: #fff;
    border-right: 1px solid #e9edf3;
}

[data-menu-color="light"] .app-menu .menu-link {
    color: #000000 !important;
    font-weight: 400;
}

[data-menu-color="light"] .app-menu .menu-link .menu-icon {
    color: #303744 !important;
}

[data-menu-color="light"] .app-menu .menu-link:hover,
[data-menu-color="light"] .app-menu .menu-link.active,
[data-menu-color="light"] .app-menu .menu-item.active > .menu-link {
    color: #16b89a !important;
}

[data-menu-color="light"] .app-menu .menu-link:hover .menu-icon,
[data-menu-color="light"] .app-menu .menu-link.active .menu-icon,
[data-menu-color="light"] .app-menu .menu-item.active > .menu-link .menu-icon {
    color: #16b89a !important;
}

[data-menu-color="light"] .app-menu .sub-menu .menu-link {
    color: #191c20 !important;
}

[data-menu-color="light"] .app-menu .sub-menu .menu-link.active,
[data-menu-color="light"] .app-menu .sub-menu .menu-link:hover {
    color: #16b89a !important;
}

.footer {
    color: #919cad;
    background: #f0f2f7;
    border-top: 0;
    
}

.footer a {
    color: var(--selo-admin-primary);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 34px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--selo-admin-muted);
  
}

.ck.ck-editor__main > .ck-editor__editable,
.ck.ck-toolbar {
    border-color: #dfe4ec !important;
}

.ck.ck-toolbar {
    border-radius: 8px 8px 0 0 !important;
}

.ck.ck-editor__main > .ck-editor__editable {
    border-radius: 0 0 8px 8px !important;
}

[data-bs-theme="dark"] {
    --selo-admin-page: #171a20;
    --selo-admin-surface: #20242c;
    --selo-admin-heading: #edf1f7;
    --selo-admin-body: #c0c8d4;
    --selo-admin-muted: #8e9bad;
    --selo-admin-border: #313845;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .page-content,
[data-bs-theme="dark"] .page-content > .px-3 {
    background: var(--selo-admin-page);
    color: var(--selo-admin-body);
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .navbar-custom,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: var(--selo-admin-surface);
    color: var(--selo-admin-body);
    border-color: var(--selo-admin-border);
}

[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .btn-light {
    background: #272c35;
}

[data-bs-theme="dark"] .table tbody td,
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .navbar-custom .nav-link,
[data-bs-theme="dark"] .navbar-custom .button-toggle-menu {
    color: var(--selo-admin-body);
}

@media (max-width: 767.98px) {
    .page-content > .px-3 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .card-body,
    .card-header {
        padding-left: 13px;
        padding-right: 13px;
    }
}

/* SeloCommerce by Webnion — Developed by Anik */
.selo-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.selo-page-heading h4 {
    color: var(--selo-admin-heading);
    font-size: 16px;
    font-weight: 600;
}


.selo-settings-card {
    overflow: hidden;
}

.selo-settings-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px 0;
    border-bottom: 1px solid var(--selo-admin-border);
    overflow-x: auto;
}

.selo-settings-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 14px 12px;
    color: var(--selo-admin-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease;
}

.selo-settings-tab::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: transparent;
    content: "";
}

.selo-settings-tab:hover,
.selo-settings-tab.active {
    color: var(--selo-admin-primary);
}

.selo-settings-tab.active::after {
    background: var(--selo-admin-primary);
}

.selo-settings-content {
    padding: 20px;
}

.selo-settings-section + .selo-settings-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--selo-admin-border);
}

.selo-settings-section-heading {
    margin-bottom: 16px;
}

.selo-settings-section-heading h5 {
    margin-bottom: 4px;
    color: var(--selo-admin-heading);
    font-weight: 600;
}

.selo-settings-section-heading p {
    margin-bottom: 0;
    color: var(--selo-admin-muted);
}

.selo-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--selo-admin-border);
}

.selo-brand-preview {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 8px 12px;
    border: 1px dashed var(--selo-admin-border);
    border-radius: 9px;
    background: var(--selo-admin-page);
}

.selo-brand-preview img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

[data-bs-theme="dark"] .selo-settings-tabs,
[data-bs-theme="dark"] .selo-settings-section + .selo-settings-section,
[data-bs-theme="dark"] .selo-settings-actions {
    border-color: var(--selo-admin-border);
}

@media (max-width: 575.98px) {
    .selo-settings-tabs {
        padding-right: 10px;
        padding-left: 10px;
    }

    .selo-settings-content {
        padding: 14px;
    }

    .selo-settings-actions {
        justify-content: stretch;
    }

    .selo-settings-actions .btn {
        width: 100%;
    }
}

.selo-advanced-editor {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bs-body-bg, #ffffff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 12px;
}

.selo-editor-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.selo-editor-utility-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.selo-editor-status {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 16px;
    white-space: nowrap;
}

.selo-advanced-editor .ck.ck-editor {
    width: 100%;
}

.selo-advanced-editor .ck.ck-toolbar {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.selo-advanced-editor .ck.ck-editor__main > .ck-editor__editable {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.selo-advanced-editor .ck-editor__editable_inline {
    min-height: 520px;
    max-height: 760px;
    padding: 28px 34px;
    overflow-y: auto;
    box-shadow: none;
}

.selo-advanced-editor .ck-content {
    color: var(--bs-body-color, #212529);
    font-size: 16px;
    line-height: 1.75;
}

.selo-advanced-editor .ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.selo-advanced-editor .ck-content figure.image {
    margin-top: 24px;
    margin-bottom: 24px;
}

.selo-advanced-editor .ck-content figure.media {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
}

.selo-advanced-editor .ck-content .selo-post-video {
    width: 100%;
    background: #000000;
}

.selo-advanced-editor .ck-content .selo-post-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.selo-advanced-editor.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1095;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 12px;
    background: var(--bs-body-bg, #ffffff);
    border: 0;
    border-radius: 0;
}

.selo-advanced-editor.is-fullscreen .selo-editor-utility-bar {
    flex: 0 0 auto;
}

.selo-advanced-editor.is-fullscreen .ck.ck-editor {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.selo-advanced-editor.is-fullscreen .ck-editor__main {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.selo-advanced-editor.is-fullscreen .ck-editor__editable_inline {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: none;
}

body.selo-editor-page-locked {
    overflow: hidden !important;
}

@media (max-width: 767.98px) {
    .selo-editor-utility-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .selo-editor-status {
        white-space: normal;
    }

    .selo-advanced-editor .ck-editor__editable_inline {
        min-height: 400px;
        padding: 20px;
    }
}

/* =========================================================
   Admin dark-mode sidebar fix
========================================================= */

html[data-bs-theme="dark"][data-menu-color="light"] .main-menu {
    background: #20242c;
    border-right-color: #313845;
}

html[data-bs-theme="dark"][data-menu-color="light"] .main-menu .logo-box {
    background: #20242c;
    border-bottom-color: #313845;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu {
    background: transparent;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-link {
    color: #c0c8d4 !important;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-link .menu-icon {
    color: #8e9bad !important;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-link .menu-arrow {
    color: #8e9bad;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .sub-menu {
    background: transparent;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .sub-menu .menu-link {
    color: #8e9bad !important;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-link:hover,
html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-link.active,
html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-item.active > .menu-link {
    color: #16b89a !important;
    background: rgba(22, 184, 154, 0.10);
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-link:hover .menu-icon,
html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-link.active .menu-icon,
html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .menu-item.active > .menu-link .menu-icon {
    color: #16b89a !important;
}

html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .sub-menu .menu-link:hover,
html[data-bs-theme="dark"][data-menu-color="light"] .app-menu .sub-menu .menu-link.active {
    color: #16b89a !important;
}

html[data-bs-theme="dark"][data-menu-color="light"] .main-menu .simplebar-track {
    background: transparent;
}

html[data-bs-theme="dark"][data-menu-color="light"] .main-menu .simplebar-scrollbar::before {
    background: #596273;
}