

/* =========================================================
   1. Brand & Theme Variables
   ========================================================= */
:root {
    --bs-body-font-family: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --primary-color: #00e676;
    --bs-link-color: #00e676;
    --bs-btn-color: #00e676 --bs-btn-hover-bg: #00e676;
    --bs-secondary-color: rgba(33, 37, 41, 0.53);
    --bs-btn-border-color: #00e676;
    --bs-btn-hover-bg: #00e676;
    --bs-btn-hover-border-color: #00e676;
    --bs-btn-active-bg: #00e676;
    --bs-btn-active-border-color: #00e676;
    --bs-btn-disabled-color: #00e676;
    --bs-btn-disabled-border-color: #00e676;
    --bs-primary: #00e676;
    --bs-secondary: #6A8D89;
    --primary-hover: #00c853;
    --bs-primary-rgb: 0, 230, 118;
    --dark-bg: #000000;
    --sidebar-bg: #0d0d0d;
    --navbar-bg: #000000;
    --card-bg: #ffffff;
    --text-light: #cccccc;
    --text-dark: #111111;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: 0.3s ease;
    --bs-border-radius: 0.2rem;
    --bs-link-color-rgb: 0, 230, 118;
    --bs-body-font-weight: 450;
    --bs-body-font-size: 0.9rem;
    --bs-link-hover-color-rgb: 0, 200, 83;
    --bs-btn-active-bg:;
    --bs-btn-active-border-color;
    --bs-btn-focus-box-shadow;
    --bs-btn-hover-border-color;
    --bs-border-color-translucent: transparent;
    --label-opacity: 0.15;
    --label-primary: 0, 230, 118;
    --label-secondary: 106, 141, 137;
    --label-success: 25, 135, 84;
    --label-info: 13, 202, 240;
    --label-warning: 255, 193, 7;
    --label-danger: 220, 53, 69;
    --label-dark: 33, 37, 41;
    --bs-border-radius: 0.8rem;
    --bs-border-radius-lg: 1rem;
}


.card {
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-x: 0.8rem;
    --bs-card-cap-padding-y: 0.8rem;
}




#sidebar {
    background: radial-gradient(circle at center bottom, rgb(30, 39, 59) 0%, rgb(0, 0, 0) 50%);
}

.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--bs-secondary);
}

.btn-group-sm > .btn, .btn-sm {
    --bs-btn-border-radius: 0.8rem;
}

.modal-backdrop {
    --bs-backdrop-opacity: 0.8;
}

.cursor-pointer {
    cursor: pointer !important;
}


.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: #6A8D89;
}

.nav-link:focus, .nav-link:hover {
    color: #6A8D89;
}

.nav-link {
    color: black;
    font-weight: 500 !important;
}





.bg-label-primary {
    background: rgba(var(--label-primary), var(--label-opacity));
    color: var(--primary-color);
}

.bg-label-secondary {
    background: rgba(var(--label-secondary), var(--label-opacity));
    color: #6c757d;
}

.bg-label-success {
    background: rgba(var(--label-success), var(--label-opacity));
    color: #198754;
}

.bg-label-info {
    background: rgba(var(--label-info), var(--label-opacity));
    color: #0dcaf0;
}

.bg-label-warning {
    background: rgba(var(--label-warning), var(--label-opacity));
    color: #ffc107;
}

.bg-label-danger {
    background: rgba(var(--label-danger), var(--label-opacity));
    color: #dc3545;
}

.bg-label-dark {
    background: rgba(var(--label-dark), var(--label-opacity));
    color: #212529;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--bs-border-radius);
    font-size: 13px;
    font-weight: 600;
}
/* =========================================================
   2. Base Reset & Typography
   ========================================================= */
body {
    font-family: var(--bs-body-font-family);
    background: #f4f6f8;
    color: var(--text-dark);
}

a {
    text-decoration: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-control::placeholder {
    color: #666666;
    opacity: 0.5;
    font-size: smaller;
    font-weight: 400;
    font-size: 12px;
}


.form-label {
    margin-bottom: 6px !important;
    font-size: 13px !important;
}

.form-control {
    height: 45px !important;
}
    /* Add asterisk to labels of required inputs */
    .form-control[data-val="true"] {
        position: relative;
    }

        .form-control[data-val="true"] + .text-danger,
        .form-control[data-val="true"] {
            /* anchor for :has() fallback safety */
        }
/* Modern browsers (Chrome, Edge, Safari, Firefox) */
.mb-2:has(.form-control[data-val="true"]) > .form-label::after {
    content: " *";
    color: #dc3545; /* Bootstrap danger */
    font-weight: 700;
}


.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
/* =========================================================
   3. Buttons (Global)
   ========================================================= */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: #000;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        color: #000;
    }


.btn {
    padding-inline: 1.5rem;
    border-radius: 2rem;
    height: 40px;
}

.btn-icon {
    --bs-btn-active-border-color: transparent;
    padding: 0;
    width: calc(2.278125rem + 2px);
    height: calc(2.278125rem + 2px);
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

    .btn-icon.btn-sm, .btn-group-sm > .btn-icon.btn {
        width: calc(1.725rem + 2px);
        height: calc(1.725rem + 2px);
        font-size: .8125rem;
    }

.btn-primary {
    --bs-btn-color: #000;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #00c853;
    --bs-btn-hover-border-color: #00c853;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #00b84a;
    --bs-btn-active-border-color: #00b84a;
    --bs-btn-focus-shadow-rgb: 0, 230, 118;
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #00c853;
    --bs-btn-active-border-color: #00c853;
    --bs-btn-focus-shadow-rgb: 0, 230, 118;
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}
/* =========================================================
   4. Brand / Logo (Used in Navbar & Auth)
   ========================================================= */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subtitle {
    font-size: 12.96px;
    color: #666666
}

.brand-icon {
    background: var(--primary-color);
    color: #000;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* =========================================================
   5. Dashboard Navbar & Sidebar
   ========================================================= */
.custom-navbar {
    background: var(--navbar-bg);
    height: 60px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


.nav {
    --bs-nav-link-font-weight: 400;
}



.active > .page-link, .page-link.active {
    z-index: 3;
    color: var(--bs-btn-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 260px;
    height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    color: var(--text-light);
    overflow-y: auto;
    transition: transform var(--transition);
    z-index: 1050;
}

    .sidebar .nav-item {
        cursor: pointer;
        border-left: 5px solid transparent;
    }

        .sidebar .nav-item:hover {
            background: #1a1a1a;
        }

        .sidebar .nav-item.active {
            background: #303030;
            color: #fff;
            border-left-color: var(--primary-color);
        }

    .sidebar .nav-link {
        color: var(--text-light);
        padding: 14px 20px;
        display: flex;
        align-items: center;
        /*        justify-content: space-between;*/
        cursor: pointer;
    }

        .sidebar .nav-link:hover {
            background: #1a1a1a;
            color: #fff;
        }
    /* Parent */
    .sidebar .has-submenu > .nav-link {
        position: relative;
    }
/* Arrow */
.submenu-arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    transition: transform var(--transition);
    position: absolute;
    right: 2rem;
}
/* Submenu */
.submenu {
    list-style: none;
    padding-left: 0;
    display: none;
}

    .submenu .nav-link {
        padding-left: 40px;
        font-size: 14px;
    }
/* Open state */
.has-submenu.open > .submenu {
    display: block;
}

.has-submenu.open > .nav-link .submenu-arrow {
    transform: rotate(-135deg);
}
/* Active child */
.submenu .nav-link.active {
    color: #fff;
    background: #111;
    border-left: 3px solid var(--primary-color);
}
/* =========================================================
   7. Dashboard Content
   ========================================================= */
.content {
    margin-left: 260px;
    padding: 90px 30px 30px;
}
/* =========================================================
   10. Mobile & Responsive
   ========================================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .content {
        margin-left: 0;
    }

    .sidebar-overlay.show {
        display: block;
    }
}
/* =========================================================
   SweetAlert2 – Brand Integration
   ========================================================= */

.swal2-popup {
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    width: 420px;
}

.swal2-icon {
    margin: 0 auto 15px;
}

    .swal2-icon.swal2-warning {
        border-color: #000;
        color: #000;
    }

.swal2-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.swal2-html-container {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}
/* Buttons */
.swal2-actions {
    gap: 12px;
    margin-top: 25px;
}

.swal2-confirm {
    background: var(--primary-color) !important;
    color: #000 !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 24px;
}

    .swal2-confirm:hover {
        background: var(--primary-hover) !important;
    }

.swal2-cancel {
    background: #000 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 24px;
}
/* Close icon */
.swal2-close {
    color: #000;
    opacity: 0.6;
}

    .swal2-close:hover {
        opacity: 1;
    }
/* Overlay blur effect */
.swal2-backdrop-show {
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.6);
}



.logo-box {
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
}


div:where(.swal2-container).swal2-backdrop-show, div:where(.swal2-container).swal2-noanimation {
    background: rgba(0, 0, 0, 0.8);
}
/* =========================================================
   Fixed Footer
   ========================================================= */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 260px; /* sidebar width */
    right: 0;
    height: 40px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    z-index: 9;
}
    /* Footer content spacing */
    .app-footer .container-fluid {
        padding-left: 20px;
    }
/* Content must not overlap footer */
.content {
    padding-bottom: 60px;
}
/* Mobile behavior */
@media (max-width: 991px) {
    .app-footer {
        left: 0;
    }
}

.auth-page .app-footer {
    display: none;
}
/* =========================================================
   Select 2
   ========================================================= */
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary-color);
    box-shadow: var(--primary-color);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary-color);
}
/* =========================================================
   Datatable
   ========================================================= */
table.dataTable thead th {
    background: var(--bs-secondary);
    color: white;
    min-height: 30px;
}

table.dataTable td {
    font-weight: 400;
}

.dataTables_length select {
    margin-inline: 0.5rem !important;
}

table.dataTable tr {
    background: black;
    color: white;
    min-height: 30px;
}

.select-info {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.dataTables_length > label {
    display: flex !important;
    font-size: small !important;
}

    .dataTables_length > label > span {
        margin-top: 0.3rem !important;
    }

.dataTables_info {
    font-size: small !important;
}


.dataTables_paginate.paging_simple_numbers > ul.pagination {
    gap: 0rem !important;
}

.disabled > .page-link, .page-link.disabled, .active > .page-link, .page-link.active {
    font-size: smaller;
}

.dataTables_length label {
    align-items: center !important;
}

table.dataTable thead tr.search-inputs-row, table thead tr.search-inputs-row {
    background-clip: unset !important;
    background-color: #f7f7f9 !important;
}

.dark-style table.dataTable thead tr.search-inputs-row, .dark-style table thead tr.search-inputs-row {
    background-clip: unset !important;
    background-color: #0e0e0e !important;
}

table.dataTable thead th, table thead th {
    color: #f1f1f1 !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

table.dataTable thead tr:first-child th:first-child,
table thead tr:first-child th:first-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

table.dataTable thead tr:first-child th:last-child,
table thead tr:first-child th:last-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

[dir="rtl"] table.dataTable thead tr:first-child th:first-child,
[dir="rtl"] table thead tr:first-child th:first-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

[dir="rtl"] table.dataTable thead tr:first-child th:last-child,
[dir="rtl"] table thead tr:first-child th:last-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

.dt-length label, .dt-info {
    font-size: 12px !important;
}


table.dataTable thead .dt-orderable-asc:after,
table.dataTable thead .dt-orderable-desc:after {
    font-family: FontAwesome;
    opacity: 1;
    content: '\f0dc';
    margin-left: 20px;
    margin-right: 20px;
}

table.dataTable thead .dt-ordering-asc:after {
    content: '\f062';
}

table.dataTable thead .dt-ordering-desc:after {
    content: '\f063';
}

html.dark-style table.dataTable tbody tr > .dtfc-fixed-left,
html.dark-style table.dataTable tbody tr > .dtfc-fixed-right {
    background-color: #000 !important;
}

div.dt-scroll-body thead, div.dt-scroll-body tfoot {
    visibility: collapse !important;
}

    div.dt-scroll-body thead tr, div.dt-scroll-body tfoot tr {
        height: 0;
    }

        div.dt-scroll-body thead tr th, div.dt-scroll-body thead tr td, div.dt-scroll-body tfoot tr th, div.dt-scroll-body tfoot tr td {
            height: 0 !important;
            padding-top: 0px !important;
            padding-bottom: 0px !important;
            border-top-width: 0px !important;
            border-bottom-width: 0px !important;
        }

            div.dt-scroll-body thead tr th div.dt-scroll-sizing, div.dt-scroll-body thead tr td div.dt-scroll-sizing,
            div.dt-scroll-body tfoot tr th div.dt-scroll-sizing, div.dt-scroll-body tfoot tr td div.dt-scroll-sizing {
                height: 0 !important;
                overflow: hidden !important;
            }


.dropdown-toggle.hide-arrow::before, .dropdown-toggle.hide-arrow::after, .dropdown-toggle-hide-arrow > .dropdown-toggle::before, .dropdown-toggle-hide-arrow > .dropdown-toggle::after {
    display: none
}


.auth-wrapper .card {
    border-radius: 2rem;
}





.spw-75 {
    min-width: 75% !important;
}

.spw-50 {
    min-width: 50% !important;
}

main.content {
    position: relative;
}
/* =========================================================
   Floating Panel Cards
   ========================================================= */
.floating-panel {
    position: fixed;
    z-index: 10;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

    .floating-panel.show {
        opacity: 1;
        transform: translateY(0);
    }

.floating-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.floating-panel-body {
    padding: 16px;
}

.floating-panel-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.floating-panel-close {
    background: none;
    border: 0;
    font-size: 15px;
    cursor: pointer;
}

.floating-panel {
    display: flex;
    flex-direction: column;
}

.floating-panel-body {
    overflow-y: auto;
}
/* =========================================================
   KPI Cards
   ========================================================= */
.kpi-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    height: 100%;
}

.select2-selection.select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important;
}

.select2-results__option[aria-selected=true] {
    background-color: var(--primary-color) !important;
    color: #f1f1f1
}

.dropdown.disabled, .dropdown-toggle.disabled, .dropdown-toggle:disabled {
    background-color: rgba(239, 239, 239, 0.3) !important;
    color: var(--default-text-color) !important;
    opacity: 0.85 !important;
    font-weight: 500;
}

.select2-results__option[aria-disabled="true"] {
    display: none !important;
}

.kpi-up {
    color: var(--primary-color);
    font-size: 14px;
    margin-left: 4px;
}
/* Fake sparkline (placeholder) */
.kpi-chart {
    width: 80px;
    height: 36px;
    background: linear-gradient( to top right, rgba(0, 230, 118, 0.15), rgba(0, 230, 118, 0) );
    border-radius: var(--radius-sm);
}
/* Responsive tweaks */
@media (max-width: 576px) {
    .kpi-card {
        padding: 14px;
    }
}
/* =========================================================
   Profile Dropdown
   ========================================================= */

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-dropdown {
    min-width: 200px;
    border-radius: var(--radius-md);
    padding: 8px 0;
}

    .profile-dropdown .dropdown-header {
        padding: 10px 16px;
    }

    .profile-dropdown .dropdown-item {
        font-size: 14px;
        padding: 8px 16px;
    }

        .profile-dropdown .dropdown-item:hover {
            background: #f5f5f5;
        }
/* =========================================================
   Notification Dropdown
   ========================================================= */

.nav-icon {
    font-size: 18px;
    cursor: pointer;
}
/* Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--primary-color);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
}
/* Dropdown */
.notification-dropdown {
    width: 360px;
    height: 420px;
    padding: 0;
    overflow: hidden;
    display: none;
}

    .notification-dropdown.show {
        display: flex;
        flex-direction: column;
    }

    .notification-dropdown.dropdown-menu {
        overflow: hidden !important;
    }

    .notification-dropdown .dropdown-header {
        padding: 12px 16px;
    }

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    white-space: normal;
}

    .notification-item p {
        font-size: 14px;
        margin: 0;
    }

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    margin-top: 6px;
}

.notification-item.unread .notification-dot {
    background: var(--primary-color);
}

.notification-item:hover {
    background: #f6f6f6;
}

.dropdown-notifications-list {
    flex: 1;
    overflow-y: auto;
}

.notification-footer {
    background: #fff;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -4px 6px -4px rgba(0,0,0,.08);
}

/* =========================================================
   RTL SUPPORT (FINAL)
   ========================================================= */

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}
/* Sidebar */
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

[dir="rtl"] .content {
    margin-left: 0;
    margin-right: 260px;
}
/* Footer */
[dir="rtl"] .app-footer {
    left: 0;
    right: 260px;
}
/* Mobile */
@media (max-width: 991px) {
    [dir="rtl"] .content {
        margin-right: 0;
    }

    [dir="rtl"] .app-footer {
        right: 0;
    }
}
/* Sidebar borders & submenu */
[dir="rtl"] .sidebar .nav-item {
    border-left: 0;
    border-right: 5px solid transparent;
}

    [dir="rtl"] .sidebar .nav-item.active {
        border-right-color: var(--primary-color);
    }
/* Submenu indentation */
[dir="rtl"] .submenu .nav-link {
    padding-left: 20px;
    padding-right: 40px;
}
/* Submenu arrow */
[dir="rtl"] .submenu-arrow {
    right: auto;
    left: 2rem;
    transform: rotate(-135deg);
}

[dir="rtl"] .has-submenu.open > .nav-link .submenu-arrow {
    transform: rotate(45deg);
}
/* Notification badge */
[dir="rtl"] .notification-badge {
    right: auto;
    left: -6px;
}
/* Dropdown alignment */
[dir="rtl"] .dropdown-menu-end {
    right: auto;
    left: 0;
}

[dir="rtl"] .notification-dropdown,
[dir="rtl"] .profile-dropdown {
    text-align: right;
}

.select2-selection.select2-selection--single {
    height: 45px !important;
    border-radius: var(--bs-border-radius) !important;
    padding: 0.5rem !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}


.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: unset !important;
    border-color: var(--primary-color) !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    box-shadow: 0 0 0 .25rem #55e39036 !important;
    border-color: var(--primary-color) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary-color) !important;
}

.select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
    border-bottom-left-radius: unset !important;
    border-bottom-right-radius: unset !important;
}

.toast {
    border-radius: 0.8rem;
    border: unset !important;
}


.bm-file-uploader .upload-box {
    border: 1px dashed #d0d5dd;
    padding: 16px;
    border-radius: 8px;
}


.upload-dropzone {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}

    .upload-dropzone.drag-over {
        border-color: #4f46e5;
        background: #eef2ff;
    }

.dropzone-ui .icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.upload-dropzone {
    position: relative;
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}

    .upload-dropzone.drag-over {
        border-color: #4f46e5;
        background: #eef2ff;
    }

/* 🔹 Progress overlay */
.upload-progress {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
}

/* 🔹 Preview cards */
.uploaded-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.uploaded-item {
    position: relative;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    padding: 1rem;
}

.remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

.uploaded-item img {
    max-width: 100%;
    border-radius: 6px;
}

/* 🔹 URL output */
.uploaded-urls {
    margin-top: 10px;
}

.url-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

    .url-row input {
        flex: 1;
        font-size: 12px;
    }

.single-file-view {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

    .single-file-view img {
        max-width: 100%;
        border-radius: 8px;
        cursor: pointer;
    }

    .single-file-view .file-name {
        font-size: 13px;
        margin-top: 6px;
    }

    div:where(.swal2-container) .swal2-html-container {
    margin-top: 0;
    }


.ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}


.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}


.ellipsis-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}


.img-thumbnail {
    padding: unset !important;
}

.campaign-img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

.profile-avatar {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    /* Soft outer shadow */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    /* Subtle border ring */
    border: 4px solid #ffffff;
    transition: all 0.3s ease;
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }

    /* Elegant hover effect */
    .profile-avatar:hover img {
        transform: scale(1.05);
    }

.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f3f5;
}

    .table-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
