div.error {
    color: #ec0606;
    font-size: .8575rem !important;
}

label.error {
    color: #ec0606;
    font-size: .8575rem !important;
    margin-bottom: 0 !important;
}

.divproductimg {
    cursor: pointer !important;
}

.divproductimg>.profile-widget>.badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #0279dc;
    color: white;
    font-size: 13px;
}

.divproductimg>.profile-widget>a {
    position: absolute;
    top: 2px;
    right: 5px;
    color: red;
    font-size: 20px;
}

.divproductimg>.profile-widget>img {
    width: 100px;
    height: 100px;
}

button {
    cursor: pointer;
}

table>tbody>tr>td>.form-control {
    border-color: #00000052;
    box-shadow: none;
    font-size: 15px;
    height: 30px;
}

.nav-tabs .nav-link.disabled {
    color: #6c757d;
    background-color: transparent;
    border-color: transparent;
    background-color: #e9ecef;
}

.nav-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.btn {
    cursor: pointer !important;
}

.account-logo img {
    width: 180px !important;
}

.mycomment {
    min-height: 45px;
}

/*Social Media*/
.asocialmedia {
    font-size: 50px;
    margin: 10px;
}

.instagramicon {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.youtubeicon {
    color: #FF0000;
}

.youtubeicon:hover {
    color: #FF0000;
}

.facebookicon {
    color: #1092f3;
}

.facebookicon:hover {
    color: #1092f3;
}

.linkedinicon {
    color: #0073b1;
}

.linkedinicon:hover {
    color: #0073b1;
}

.twittericon {
    color: black;
}

.twittericon:hover {
    color: black;
}

.websiteicon {
    color: dimgray;
}

.websiteicon:hover {
    color: dimgray;
}

/* Custom DataTable Buttons styling to match theme primary */
.dt-buttons .dt-button {
    background-color: #845ADF !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid #845ADF !important;
    border-radius: 0.25rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    padding: 0.375rem 0.75rem !important;
    margin: 0.25rem !important;
    box-shadow: none !important;
}

.dt-buttons .dt-button:hover {
    background-color: #724ecb !important;
    border-color: #6c4bbd !important;
    color: #fff !important;
    background-image: none !important;
}

.dt-buttons .dt-button:focus,
.dt-buttons .dt-button:active {
    background-color: #6c4bbd !important;
    border-color: #6547b2 !important;
    color: #fff !important;
    background-image: none !important;
    outline: none !important;
}

.dt-buttons {
    margin-bottom: 1rem !important;
}

.dataTables_filter {
    margin-bottom: 1rem !important;
}

/* Fix breadcrumb divider displaying theme author's preview URL */
.breadcrumb-item+.breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, "/") !important;
}

/* ── Custom Select2 Styling to match Machine Dropdown (Purple Theme) ── */
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #845ADF !important;
    color: white !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: transparent !important;
    color: #333 !important;
    border: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #845ADF !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 90, 223, 0.15) !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #845ADF !important;
    box-shadow: 0 0 0 3px rgba(132, 90, 223, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* -- Custom Tab Nav Pills (Purple Theme) -- */
.custom-nav-pills {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.custom-nav-pills .nav-link {
    color: #495057;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 0 4px;
    font-weight: 500;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.custom-nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
    border-color: #ced4da;
}

.custom-nav-pills .nav-link.active {
    background-color: #845ADF !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(132, 90, 223, 0.3);
    font-weight: 600;
    border-color: #845ADF !important;
}

/* -- Standard Form Control Alignment with Select2 -- */
input.form-control,
select.form-control {
    height: 38px;
    border-radius: 6px;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #845ADF !important;
    box-shadow: 0 0 0 3px rgba(132, 90, 223, 0.15) !important;
}

input[type="file"].form-control {
    line-height: 24px;
    padding: 6px 12px;
}

/* -- Restore Form Group Spacing (Bootstrap 4 to 5 Migration) -- */
.form-group {
    margin-bottom: 1rem;
}

/* -- Custom Theme Checkboxes -- */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.125em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #845ADF;
    border-color: #845ADF;
}

.form-check-input:focus {
    border-color: #845ADF;
    box-shadow: 0 0 0 0.25rem rgba(132, 90, 223, 0.25);
}

.form-check-label {
    margin-left: 0.35rem;
    font-weight: 500;
    cursor: pointer;
}

/* -- Global Text Selection Highlight -- */
::selection {
    background-color: #845ADF !important;
    color: #ffffff !important;
}

::-moz-selection {
    background-color: #845ADF !important;
    color: #ffffff !important;
}

/* -- Flatpickr Theme Highlight -- */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #845ADF !important;
    border-color: #845ADF !important;
    color: #fff !important;
}

/* -- Global Input Focus Backup -- */
input:focus,
textarea:focus,
select:focus {
    outline-color: #845ADF;
}

/* -- Select2 Dropdown Modal Fix -- */
.select2-container--open {
    z-index: 999999 !important;
}

/* -- Select2 Dropdown Scrolling Fix -- */
.select2-container--default .select2-results>.select2-results__options {
    max-height: 260px !important;
    overflow-y: auto !important;
}

/* -- Custom Scrollbar for Select2 -- */
.select2-results__options::-webkit-scrollbar {
    width: 14px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 8px;
    border: 3px solid #f8f9fa;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background-color: #6c757d;
}

.select2-results__options::-webkit-scrollbar-button:single-button {
    background-color: #f8f9fa;
    display: block;
    height: 14px;
    width: 14px;
}

.select2-results__options::-webkit-scrollbar-button:single-button:vertical:decrement {
    border-style: solid;
    border-width: 0 4px 5px 4px;
    border-color: transparent transparent #6c757d transparent;
    margin-top: 4px;
}

.select2-results__options::-webkit-scrollbar-button:single-button:vertical:increment {
    border-style: solid;
    border-width: 5px 4px 0 4px;
    border-color: #6c757d transparent transparent transparent;
    margin-bottom: 4px;
}

/* -- Global Premium UI Highlights (Cards & Labels) -- */
.card {
    border: 1px solid rgba(132, 90, 223, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    border-radius: 8px !important;
}

.card-header {
    background-color: rgba(132, 90, 223, 0.05) !important;
    border-bottom: 1px solid rgba(132, 90, 223, 0.1) !important;
}

.card-title {
    color: #845ADF !important;
    font-weight: 600 !important;
}

label {
    font-weight: 500 !important;
    color: #495057 !important;
}

/* Ensure input focus looks properly highlighted globally */
.form-control {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* --- LandParcelTaskIndex.cshtml Styles --- */
.kanban-list>.kanban-wrap {
    padding: 10px;
}

.task-card:hover {
    transform: translateY(-3px);
    transition: 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-actions .btn {
    background: transparent;
    border: none;
}

.footer-actions .btn:hover i {
    transform: scale(1.2);
}

.task-title-name {
    font-size: 15px;
    font-weight: 600;
    color: #2b2b2b;
}

.task-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}

.icon-btn {
    border: none;
    background: #f1f3f5;
    color: #555;
    border-radius: 25%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.icon-btn i {
    font-size: 15px;
}

.edit-btn {
    position: unset;
}

.edit-btn:hover {
    background: #e3f2fd;
    color: #0d6efd;
}

.delete-btn:hover {
    background: #fdecea;
    color: #dc3545;
}

.task-title {
    font-size: 15px;
    font-weight: 600;
}

.task-custom-title {
    font-size: 13px;
    color: #495057;
}

.label-dynamic-badge {
    display: inline-block;
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 10px;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: capitalize;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.label-dynamic-badge:hover {
    transform: translateY(-1px);
}

.text-secondary.small {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-btn:hover {
    background: #f0f9ff;
    color: #0d6efd;
}

.comment-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 3 dots button */
.action-dots-btn {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-dots-btn .dots {
    width: 4px;
    height: 4px;
    background: #555;
    border-radius: 50%;
    box-shadow: 0 6px 0 #555, 0 -6px 0 #555;
}

.action-dots-btn:focus {
    outline: none;
}

/* Dropdown items */
.dropdown-menu .dropdown-item {
    font-size: 13px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu .dropdown-item:hover {
    background: #f5f5f5;
}

.task-card.dropdown-open {
    z-index: 1056;
}

/* Override kanban board horizontal scroll to make columns fit in screen */
.ynex-kanban-board {
    overflow-x: hidden !important;
}

.ynex-kanban-board .kanban-tasks-type {
    min-width: 0 !important;
    flex: 1 1 0 !important;
}



/* --- LandParcelIndex.cshtml Styles --- */
.filter-badge {
    background-color: rgba(132, 90, 223, 0.1);
    border: 1px solid #845ADF;
    color: #845ADF;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-badge strong {
    color: #845ADF;
}

.filter-badge i {
    cursor: pointer;
    font-size: 12px;
    color: #845ADF;
}


/* --- Home/Index.cshtml Styles --- */
/* ── Dashboard colour tokens ── */
:root {
    --ds-purple: #7c3aed;
    --ds-purple-lt: #ede9fe;
    --ds-orange: #f97316;
    --ds-orange-lt: #fff7ed;
    --ds-green: #16a34a;
    --ds-green-lt: #dcfce7;
    --ds-blue: #2563eb;
    --ds-blue-lt: #eff6ff;
    --ds-pending: #6b7280;
    --ds-inprogress: #3b82f6;
    --ds-waiting: #f59e0b;
    --ds-completed: #22c55e;
    --ds-cancelled: #ef4444;
    --ds-radius: 14px;
    --ds-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

/* ── Page wrapper ── */
.db-wrap {
    padding: 8px 4px;
}

/* ── Stat cards (top row) ── */
.stat-card {
    border-radius: var(--ds-radius);
    padding: 18px 20px 14px;
    box-shadow: var(--ds-shadow);
    background: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .11);
}

.stat-card .sc-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    float: right;
    margin-top: -2px;
}

.stat-card .sc-label {
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
}

.stat-card .sc-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e293b;
}

.stat-card .sc-sub {
    font-size: .74rem;
    color: #94a3b8;
    margin-top: 4px;
}

.stat-card .sc-trend {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 4px;
}

/* sparkline placeholder line */
.sc-sparkline {
    height: 32px;
    margin-top: 8px;
}

/* Summary Section Unique Design */
.summary-card-item {
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 15px 10px;
    min-height: 110px;
}

@@media (max-width: 576px) {
    .summary-card-item {
        padding: 12px;
        gap: 10px 8px;
    }
}

.summary-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.summary-card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 0;
}

.summary-card-label {
    grid-column: 1;
    grid-row: 2;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 0;
    align-self: end;
    word-break: break-word;
    hyphens: auto;
}

.summary-card-value {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 50%;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.7);
    padding: 0 5px;
    align-self: center;
}

@@media (max-width: 576px) {
    .summary-card-value {
        min-width: 50px;
        height: 50px;
        font-size: 1.25rem;
        border-width: 2px;
    }

    .summary-card-label {
        font-size: 0.75rem;
    }

    .summary-card-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Legal card – purple gradient */
.stat-card-legal {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff !important;
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow);
    padding: 18px 20px 14px;
    transition: transform .2s, box-shadow .2s;
}

.stat-card-legal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(124, 58, 237, .35);
}

.stat-card-legal .lc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.stat-card-legal .lc-sub {
    font-size: .78rem;
    color: rgba(255, 255, 255, .8);
    margin-top: 3px;
}

.stat-card-legal .lc-pct {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.stat-card-legal .lc-cta {
    font-size: .72rem;
    color: rgba(255, 255, 255, .85);
    margin-top: 4px;
}

.lc-donut-wrap {
    position: relative;
    width: 72px;
    height: 72px;
}

#legalDonut {
    position: absolute;
    top: 0;
    left: 0;
}

.lc-donut-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
}

/* ── Generic card ── */
.db-card {
    background: #fff;
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow);
    border: none;
    height: 100%;
}

.db-card .db-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 0;
}

.db-card .db-card-title {
    font-size: .92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.db-card .db-card-body {
    padding: 12px 18px 16px;
}

.view-all-link {
    font-size: .75rem;
    color: var(--ds-purple);
    font-weight: 600;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ── Village table ── */
.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.db-table thead th {
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    padding: 6px 10px;
    background: #f8fafc;
}

.db-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.db-table tbody tr:last-child {
    border-bottom: none;
}

.db-table tbody td {
    padding: 7px 10px;
    color: #334155;
}

.db-table tbody tr:hover {
    background: #f8fafc;
}

/* ── Task Breakdown donut labels ── */
.breakdown-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: .8rem;
}

.bleg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bleg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bleg-label {
    color: #64748b;
}

.bleg-val {
    margin-left: auto;
    font-weight: 700;
    color: #1e293b;
}

/* ── Task Progress bars ── */
.tprog-item {
    margin-bottom: 14px;
}

.tprog-header {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    margin-bottom: 4px;
}

.tprog-label {
    color: #334155;
    font-weight: 600;
}

.tprog-val {
    color: #64748b;
    font-weight: 700;
}

.tprog-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.tprog-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width .6s ease;
}

.tprog-pct {
    font-size: .7rem;
    color: #94a3b8;
    margin-top: 2px;
    text-align: right;
}

/* ── User Task table ── */
.ut-table {
    width: 100%;
    font-size: .78rem;
    border-collapse: collapse;
}

.ut-table thead th {
    font-weight: 700;
    color: #475569;
    padding: 5px 8px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    white-space: nowrap;
}

.ut-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.ut-table tbody tr:last-child {
    border-bottom: none;
}

.ut-table tbody td {
    padding: 6px 8px;
    color: #334155;
    vertical-align: middle;
}

.ut-table tbody tr:hover {
    background: #f8fafc;
}

.ut-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ds-purple-lt);
    color: var(--ds-purple);
    font-size: .7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    vertical-align: middle;
}

/* ── Overdue Ageing bar ── */
#overdueAgeingChart {
    min-height: 180px;
}

/* Responsive tweaks */
@@media (max-width: 768px) {
    .stat-card .sc-num {
        font-size: 1.5rem;
    }
}

/* ── User Task Summary Table ── */
.uts-table {
    width: 100%;
    border-collapse: collapse;
}

.uts-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.uts-table th {
    padding: 11px 16px;
    font-size: .72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.uts-table td {
    padding: 12px 16px;
    font-size: .82rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.uts-table tbody tr:last-child td {
    border-bottom: none;
}

.uts-table tbody tr:hover {
    background: #f8fafc;
    transition: background .15s;
}

.uts-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}

/* ── Village Chart Toggle ── */
.db-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.village-chart-toggle {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
    flex-shrink: 0;
}

.toggle-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    color: #475569;
}

.toggle-btn.active {
    background: #7c3aed;
    color: #fff;
}

/* ── Court Dates List ── */
.court-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.court-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all .2s ease;
}

.court-list-item:hover {
    background: #f8fafc;
    border-color: #c4b5fd;
}

.court-list-left {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.court-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.court-list-icon i {
    font-size: 1.1rem;
}

.court-list-content {
    flex: 1;
}

.court-list-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.court-list-case {
    font-size: .86rem;
    font-weight: 700;
    color: #1e293b;
}

.court-list-urgency {
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.court-list-middle {
    font-size: .78rem;
    color: #64748b;
}

.court-list-lawyer i {
    margin-right: 4px;
}

.court-list-right {
    text-align: right;
    flex-shrink: 0;
}

.court-list-date {
    font-size: .78rem;
    color: #64748b;
    margin-bottom: 2px;
}

.court-list-date i {
    color: #7c3aed;
    margin-right: 4px;
}

.court-list-days {
    font-size: .9rem;
    font-weight: 700;
}

/* --- Dashboard Stat Card Modifiers --- */
.sc-purple {
    background: #ede9fe;
    --sc-icon-bg: #fff;
    --sc-icon-color: #7c3aed;
    --sc-text: #7c3aed;
    --sc-num: #5b21b6;
}

.sc-orange {
    background: #fff7ed;
    --sc-icon-bg: #fff;
    --sc-icon-color: #f97316;
    --sc-text: #f97316;
    --sc-num: #c2410c;
}

.sc-green {
    background: #dcfce7;
    --sc-icon-bg: #fff;
    --sc-icon-color: #16a34a;
    --sc-text: #16a34a;
    --sc-num: #15803d;
}

.sc-blue {
    background: #eff6ff;
    --sc-icon-bg: #fff;
    --sc-icon-color: #3b82f6;
    --sc-text: #3b82f6;
    --sc-num: #1d4ed8;
}

.sc-icon {
    background: var(--sc-icon-bg);
    color: var(--sc-icon-color);
}

.sc-label,
.sc-sub {
    color: var(--sc-text);
}

.sc-num {
    color: var(--sc-num);
}

/* --- Dashboard Summary Card Modifiers --- */
.summ-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --summ-icon-bg: rgba(255, 255, 255, .25);
    --summ-icon-color: white;
    --summ-label: rgba(255, 255, 255, .85);
    --summ-val: white;
}

.summ-purple-light {
    background: linear-gradient(135deg, #ede9fe 0%, #e0d4f9 100%);
    --summ-icon-bg: #7c3aed;
    --summ-icon-color: white;
    --summ-label: #7c3aed;
    --summ-val: #5b21b6;
}

.summ-green {
    background: linear-gradient(135deg, #dcfce7 0%, #b8f2ce 100%);
    --summ-icon-bg: #16a34a;
    --summ-icon-color: white;
    --summ-label: #16a34a;
    --summ-val: #166534;
}

.summ-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffe8d0 100%);
    --summ-icon-bg: #f97316;
    --summ-icon-color: white;
    --summ-label: #f97316;
    --summ-val: #c2410c;
}

.summ-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --summ-icon-bg: #f59e0b;
    --summ-icon-color: white;
    --summ-label: #f59e0b;
    --summ-val: #d97706;
}

.summ-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    --summ-icon-bg: #3b82f6;
    --summ-icon-color: white;
    --summ-label: #3b82f6;
    --summ-val: #1d4ed8;
}

.summ-red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    --summ-icon-bg: #ef4444;
    --summ-icon-color: white;
    --summ-label: #ef4444;
    --summ-val: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.summary-card-icon {
    background: var(--summ-icon-bg);
    color: var(--summ-icon-color);
}

.summary-card-label {
    color: var(--summ-label);
}

.summary-card-value {
    color: var(--summ-val);
}

/* Custom Active Menu Styling to match Purple Theme */
[data-menu-styles="dark"] .app-sidebar .side-menu__item.active,
[data-menu-styles="light"] .app-sidebar .side-menu__item.active,
.app-sidebar .side-menu__item.active {
    background-color: #845ADF !important;
    color: #fff !important;
}

[data-menu-styles="dark"] .app-sidebar .side-menu__item.active .side-menu__icon,
[data-menu-styles="dark"] .app-sidebar .side-menu__item.active .side-menu__label,
[data-menu-styles="dark"] .app-sidebar .side-menu__item.active .side-menu__angle,
.app-sidebar .side-menu__item.active .side-menu__icon,
.app-sidebar .side-menu__item.active .side-menu__label,
.app-sidebar .side-menu__item.active .side-menu__angle {
    color: #fff !important;
    fill: #fff !important;
}

/* Sidebar Menu Alignment Fixes */
.side-menu__item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.side-menu__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px;
    margin: 0 !important;
    text-align: center;
}

.side-menu__label {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.side-menu__angle {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
}
/* Extracted from LandParcelProfile.cshtml */
	.kanban-list > .kanban-wrap {
		padding: 10px;
	}

	.task-card:hover {
		transform: translateY(-3px);
		transition: 0.2s ease-in-out;
		box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	}

	.footer-actions .btn {
		background: transparent;
		border: none;
	}

		.footer-actions .btn:hover i {
			transform: scale(1.2);
		}

	.task-title-name {
		font-size: 15px;
		font-weight: 600;
		color: #2b2b2b;
	}

	.task-card {
		background: #fff;
		border-radius: 10px;
		transition: all 0.25s ease;
	}

		.task-card:hover {
			transform: translateY(-3px);
			box-shadow: 0 4px 12px rgba(0,0,0,0.1);
		}

	.icon-btn {
		border: none;
		background: #f1f3f5;
		color: #555;
		border-radius: 25%;
		width: 34px;
		height: 34px;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.2s ease;
	}

		.icon-btn:hover {
			transform: scale(1.1);
			box-shadow: 0 2px 6px rgba(0,0,0,0.1);
		}

		.icon-btn i {
			font-size: 15px;
		}

	.edit-btn {
		position: unset;
	}

		.edit-btn:hover {
			background: #e3f2fd;
			color: #0d6efd;
		}

	.delete-btn:hover {
		background: #fdecea;
		color: #dc3545;
	}

	.task-title {
		font-size: 15px;
		font-weight: 600;
	}

	.task-custom-title {
		font-size: 13px;
		color: #495057;
	}

	.label-dynamic-badge {
		display: inline-block;
		color: #fff;
		font-size: 11.5px;
		font-weight: 500;
		border-radius: 6px;
		padding: 4px 10px;
		line-height: 1.2;
		white-space: nowrap;
		text-transform: capitalize;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
		transition: all 0.2s ease;
	}

		.label-dynamic-badge:hover {
			transform: translateY(-1px);
		}

	.text-secondary.small {
		display: flex;
		align-items: center;
		gap: 8px;
	}


/* Extracted from LandParcelIndex.cshtml */
    /* Custom Filter Modal Styling - Apple/iOS Aesthetic */
    .filter-modal-custom .modal-content {
        border-radius: 20px;
        border: none;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .filter-modal-custom .modal-header {
        background: #fcfcfc;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 20px 25px;
    }

    .filter-modal-custom .modal-title {
        font-weight: 700;
        color: #1d1d1f;
        font-size: 1.25rem;
    }

    /* Segmented Control / Pill Toggles */
    .filter-toggle-group {
        display: flex;
        background-color: #e5e5ea; /* iOS native grey */
        border-radius: 10px;
        padding: 3px;
        width: 100%;
        gap: 2px;
        overflow-x: auto;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .filter-toggle-group::-webkit-scrollbar {
        display: none;
    }

    .filter-toggle-group .toggle-radio {
        display: none;
    }

    .filter-toggle-group .toggle-label {
        flex: 1 0 auto; /* Grow, don't shrink, base size is auto */
        text-align: center;
        padding: 6px 12px;
        margin: 0;
        font-size: 0.85rem;
        font-weight: 600;
        color: #6c757d; /* Softer inactive text */
        cursor: pointer;
        border-radius: 8px;
        border: 1px solid transparent; /* Prevent layout shift from active border */
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap; /* Prevent wrapping so it scrolls instead */
    }

    .filter-toggle-group .toggle-radio:checked + .toggle-label {
        background-color: #ffffff; 
        color: var(--bs-primary, #6f42c1); 
        box-shadow: 0 2px 8px rgba(111, 66, 193, 0.2); 
        border: 1px solid rgba(111, 66, 193, 0.3);
        font-weight: 600; /* Keep same weight to prevent text shifting */
    }

    /* Footer Buttons */
    .filter-modal-custom .modal-footer {
        border-top: 1px solid rgba(0,0,0,0.05);
        padding: 20px 25px;
        background: #fcfcfc;
    }

    /* Removed filter-btn-apply so we can use standard .btn-primary */

    .filter-btn-clear {
        border-radius: 10px;
        padding: 10px 24px;
        font-weight: 500;
        color: #1d1d1f;
        background: #e5e5ea;
        border: none;
    }

    .filter-btn-clear:hover {
        background: #d1d1d6;
    }

    /* Tabbed Sidebar Filter Layout */
    .filter-layout {
        display: flex;
        flex-direction: row;
        height: 100%;
        min-height: 400px;
    }
    .filter-sidebar {
        width: 200px;
        border-right: 1px solid #e5e5ea;
        padding-right: 15px;
        flex-shrink: 0;
    }
    .filter-content {
        flex-grow: 1;
        padding-left: 20px;
    }
    .filter-nav-link {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        color: #4b5563;
        border-radius: 0 8px 8px 0;
        margin-bottom: 5px;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
        border: none;
        border-left: 4px solid transparent;
        background: transparent;
        width: 100%;
        text-align: left;
        transition: all 0.2s;
    }
    .filter-nav-link:hover {
        background-color: #f3f4f6;
    }
    .filter-nav-link.active {
        background-color: #eaf2fd;
        color: #1a73e8;
        font-weight: 600;
        border-left: 4px solid #1a73e8;
    }
    .filter-nav-link i {
        margin-right: 14px;
        font-size: 18px;
        width: 24px;
        text-align: center;
    }
    .filter-section-title {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 4px;
    }
    .filter-section-desc {
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 20px;
    }
    .filter-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #f3f4f6;
    }
    .filter-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .filter-row-info {
        flex: 1;
        padding-right: 15px;
    }
    .filter-row-title {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 2px;
    }
    .filter-row-desc {
        font-size: 12px;
        color: #6b7280;
    }
    .filter-row-control {
        width: auto;
        min-width: 300px;
        flex-shrink: 0;
    }

/* Extracted from LandDocument.cshtml */
    /* Accordion Container */
    .vd-accordion-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
        width: 100%;
    }

    /* Individual Accordion Item */
    .vd-accordion-item {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .vd-accordion-item.active {
        border-color: var(--primary-color);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    /* Header styling */
    .vd-accordion-header {
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
        background: #ffffff;
        transition: background-color 0.2s;
    }

    .vd-accordion-header:hover {
        background-color: #fffcf9;
    }

    .vd-accordion-header-left {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .vd-accordion-toggle-icon {
        font-size: 13px;
        color: #adb5bd;
        width: 16px;
        text-align: center;
        transition: transform 0.3s, color 0.3s;
    }

    .vd-accordion-item.active .vd-accordion-toggle-icon {
        color: var(--primary-color);
        transform: rotate(90deg);
    }

    .vd-accordion-title {
        font-size: 15px;
        font-weight: 700;
        color: #212529;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .vd-accordion-count-badge {
        font-size: 13px;
        font-weight: 600;
        color: #868e96;
        background: #f8f9fa;
        padding: 3px 10px;
        border-radius: 20px;
        transition: all 0.3s;
    }

    .vd-accordion-item.active .vd-accordion-count-badge {
        background: #f8f9fa;
        color: var(--primary-color);
    }

    /* Body/Details panel */
    .vd-accordion-body {
        display: none; /* Managed by jQuery slideToggle */
        border-top: 1px dashed #e9ecef;
        background: #fafbfc;
        padding: 20px 24px;
    }

    /* Search Bar inline */
    .vd-accordion-search-bar {
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 1px solid #dee2e6;
        border-radius: 30px;
        padding: 6px 16px;
        gap: 8px;
        margin-bottom: 16px;
        max-width: 320px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.01);
    }

    .vd-accordion-search-bar input {
        border: none;
        outline: none;
        background: transparent;
        flex: 1;
        font-size: 13px;
        color: #495057;
    }

    .vd-accordion-search-bar i {
        color: #adb5bd;
        font-size: 12px;
    }

    /* Tree connection list layout */
    .vd-tree-list {
        display: flex;
        flex-direction: column;
        padding-left: 6px;
    }

    .vd-tree-item {
        display: flex;
        align-items: center;
        height: 38px;
        position: relative;
    }

    /* Custom Badges */
    .vd-badge {
        font-size: 11px;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 12px;
        display: inline-block;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }
    .badge-success-custom {
        background-color: #e6f7ed;
        color: #28a745;
        border: 1px solid #c3ebd0;
    }
    .badge-warning-custom {
        background-color: #fff8e6;
        color: #ff9b00;
        border: 1px solid #ffe8cc;
    }
    .badge-danger-custom {
        background-color: #fde8e8;
        color: #dc3545;
        border: 1px solid #f8c4c4;
    }
    .badge-primary-custom {
        background-color: #e8f0fe;
        color: #1a73e8;
        border: 1px solid #c2dbff;
    }
    .badge-info-custom {
        background-color: #eaf8fa;
        color: #17a2b8;
        border: 1px solid #bee5eb;
    }
    .badge-secondary-custom {
        background-color: #f1f3f5;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

    /* Profile Button */
    .vd-profile-btn {
        font-size: 11px;
        font-weight: 600;
        color: var(--primary-color);
        background-color: #ffffff;
        border: 1px solid var(--primary-color);
        padding: 3px 10px;
        border-radius: 12px;
        text-decoration: none !important;
        transition: all 0.2s ease-in-out;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
    }
    .vd-profile-btn:hover {
        color: #ffffff;
        background-color: var(--primary-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    .vd-profile-btn i {
        font-size: 10px;
    }

    /* Tree line branch rendering matching ├─ */
    .vd-tree-connector {
        font-family: monospace;
        color: #dee2e6;
        font-size: 16px;
        font-weight: bold;
        margin-right: 10px;
        user-select: none;
        white-space: pre;
    }

    .vd-tree-link {
        font-size: 14px;
        color: #495057;
        font-weight: 500;
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
        padding: 4px 8px;
        border-radius: 6px;
    }

    .vd-tree-link:hover {
        color: var(--primary-color);
        background: #f8f9fa;
        transform: translateX(3px);
    }

    .vd-tree-area {
        font-size: 12px;
        color: #868e96;
        font-weight: normal;
    }

    .vd-accordion-empty {
        padding: 20px 0;
        text-align: center;
        color: #adb5bd;
        font-size: 13px;
    }

    .vd-accordion-empty i {
        font-size: 24px;
        margin-bottom: 6px;
        display: block;
        color: #dee2e6;
    }

    /* Premium Status Group Card styling */
    .status-group-card {
        border: 1px solid #e8eaed !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: #ffffff;
    }

    .status-group-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
        border-color: #dadce0 !important;
    }

    .status-group-card .list-group-item {
        border-bottom: 1px solid #f1f3f4 !important;
        background: transparent;
        transition: background-color 0.15s ease;
    }

    .status-group-card .list-group-item:hover {
        background-color: #f8f9fa;
    }

    .status-group-card .list-group-item:last-child {
        border-bottom: none !important;
    }

    /* Modern Minimalist Status Badges */
    .status-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    .status-pill.pill-success {
        background-color: #e6f4ea;
        color: #137333;
    }

    .status-pill.pill-warning {
        background-color: #fef7e0;
        color: #b06000;
    }

    .status-pill.pill-danger {
        background-color: #fce8e6;
        color: #c5221f;
    }

    .status-pill.pill-secondary {
        background-color: #f1f3f4;
        color: #5f6368;
    }

    .status-pill.pill-info {
        background-color: #e8f0fe;
        color: #1a73e8;
    }

    /* Small status dot */
    .status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        display: inline-block;
    }

    .status-dot.dot-success { background-color: #1e8e3e; }
    .status-dot.dot-warning { background-color: #f9ab00; }
    .status-dot.dot-danger { background-color: #d93025; }
    .status-dot.dot-secondary { background-color: #70757a; }
    .status-dot.dot-info { background-color: #1a73e8; }

    /* Explorer Container */
    .explorer-container {
        display: flex;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e9ecef;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
        min-height: 600px;
        overflow: hidden;
        margin-top: 20px;
        transition: all 0.3s ease;
    }

    /* Left Sidebar Tree */
    .explorer-sidebar {
        width: 320px;
        border-right: 1px solid #e9ecef;
        background: #fbfcfd;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .sidebar-header {
        padding: 16px 24px;
        border-bottom: 1px solid #e9ecef;
        font-weight: 700;
        color: #495057;
        font-size: 14px;
        background: #f5f6f8;
    }

    .tree-navigation {
        padding: 16px;
        overflow-y: auto;
        flex: 1;
        max-height: 700px;
    }

    /* Right Main Content */
    .explorer-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        min-width: 0;
        transition: all 0.3s ease;
    }

    /* Control Bar */
    .explorer-control-bar {
        padding: 14px 24px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        align-items: center;
        gap: 16px;
        background: #fafbfc;
        flex-wrap: wrap;
    }

    .explorer-breadcrumbs {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #6c757d;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .explorer-breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb-node {
        cursor: pointer;
        font-weight: 500;
        color: #6c757d;
        transition: color 0.2s;
    }

    .breadcrumb-node:hover {
        color: var(--primary-color);
    }

    .breadcrumb-node.active {
        color: #212529;
        font-weight: 600;
        cursor: default;
    }

    .breadcrumb-separator {
        color: #adb5bd;
        font-size: 10px;
    }

    .explorer-search {
        width: 260px;
    }

    /* Content Grid */
    .explorer-content-grid {
        flex: 1;
        padding: 24px;
        overflow-y: auto;
        min-height: 500px;
    }

    .folder-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, 170.56px);
        justify-content: start;
        gap: 20px;
    }

    /* Explorer Folder Card styling */
    .explorer-card {
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 14px;
        padding: 12px 10px;
        text-align: center;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        user-select: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
        width: 170.56px;
        height: 231.44px;
    }

    .explorer-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
        border-color: var(--primary-color);
        background: #f8f9fa;
    }

    .explorer-card-icon {
        font-size: 42px;
        transition: transform 0.25s;
    }

    .explorer-card:hover .explorer-card-icon {
        transform: scale(1.08);
    }

    .explorer-card-title {
        font-size: 13.5px;
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
        flex-shrink: 0;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-transform: capitalize;
        letter-spacing: 0.3px;
    }

    .explorer-card-meta {
        font-size: 11.5px;
        color: #7f8c8d;
        font-weight: 500;
    }

    /* Explorer card actions */
    .explorer-card-actions {
        margin-top: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
        border-top: 1px dashed #e9ecef;
        padding-top: 12px;
    }

    .explorer-card-info-btn {
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #eaf8fa;
        color: #17a2b8;
        transition: all 0.2s ease-in-out;
        cursor: pointer;
        text-decoration: none !important;
    }

    .explorer-card-info-btn:hover {
        background: #17a2b8;
        color: #ffffff;
        transform: scale(1.1);
    }

    .btn-category-download {
        border-radius: 20px;
        font-size: 11.5px;
        padding: 5px 12px;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        background: transparent;
        font-weight: 600;
        gap: 4px;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
        z-index: 2;
        position: relative;
    }

    .btn-category-download:hover {
        background: var(--primary-color);
        color: #ffffff;
    }

    /* File List Layout */
    .explorer-file-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .explorer-file-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 12px 20px;
        transition: all 0.2s ease;
    }

    .explorer-file-item:hover {
        border-color: var(--primary-color);
        background: #f8f9fa;
        transform: translateX(4px);
    }

    .file-info {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        flex: 1;
        margin-right: 15px;
    }

    .file-icon {
        font-size: 20px;
        flex-shrink: 0;
    }

    .file-name {
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        display: inline-block;
        word-break: break-word;
    }



    /* Layout Toggle Modes */
    .layout-split-view .explorer-sidebar {
        display: flex;
    }
    .layout-split-view .explorer-main {
        display: flex;
    }

    .layout-tree-view .explorer-sidebar {
        display: flex;
        width: 100%;
        border-right: none;
    }
    .layout-tree-view .explorer-main {
        display: none;
    }

    .layout-folder-view .explorer-sidebar {
        display: none;
    }
    .layout-folder-view .explorer-main {
        display: flex;
        width: 100%;
    }

    /* Empty state */
    .explorer-empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        color: #adb5bd;
        gap: 12px;
    }

    .explorer-empty-state i {
        font-size: 48px;
        color: #dee2e6;
    }

    /* Responsive Mobile Overrides */
    @@media (max-width: 991px) {
        .explorer-container.layout-split-view {
            flex-direction: column;
        }
        .explorer-sidebar {
            width: 100%;
            max-height: 320px;
            border-right: none;
            border-bottom: 1px solid #e9ecef;
        }
        .explorer-search {
            width: 100%;
        }
    }

/* Premium Metric Cards */
.premium-metric-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    z-index: 1;
}

.premium-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.premium-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    position: relative;
}

.metric-icon-wrap::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    filter: blur(8px);
    z-index: -1;
    opacity: 0.6;
}

.metric-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -1px;
}

.metric-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Color Variants */
.card-purple .metric-icon-wrap { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.card-purple .metric-icon-wrap::after { background: #8b5cf6; }
.card-purple:hover { border-color: rgba(139, 92, 246, 0.3); }

.card-orange .metric-icon-wrap { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.card-orange .metric-icon-wrap::after { background: #f97316; }
.card-orange:hover { border-color: rgba(249, 115, 22, 0.3); }

.card-green .metric-icon-wrap { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.card-green .metric-icon-wrap::after { background: #22c55e; }
.card-green:hover { border-color: rgba(34, 197, 94, 0.3); }

.card-blue .metric-icon-wrap { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.card-blue .metric-icon-wrap::after { background: #3b82f6; }
.card-blue:hover { border-color: rgba(59, 130, 246, 0.3); }

/* Decoration */
.metric-decor {
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.03;
    font-size: 120px;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.3s ease;
}
.premium-metric-card:hover .metric-decor {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.06;
}
