:root {
    --primary: #2563eb;
    --primary-2: #7c3aed;
    --primary-3: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text: #0f172a;
    --text-soft: #64748b;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --surface-3: #eef5ff;
    --border: rgba(148, 163, 184, .18);

    --shadow-1: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-2: 0 24px 60px rgba(15, 23, 42, .12);
    --shadow-3: 0 28px 70px rgba(37, 99, 235, .14);

    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;

    --grad-main: linear-gradient(135deg, #0ea5e9 0%, #2563eb 48%, #7c3aed 100%);
    --grad-soft: linear-gradient(145deg, #ffffff 0%, #f2f8ff 50%, #eef3ff 100%);
    --grad-card: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(246, 250, 255, .88));
}

body.dark-mode {
    --text: #e2e8f0;
    --text-soft: #94a3b8;
    --surface: #0f172a;
    --surface-2: #111c31;
    --surface-3: #15213a;
    --border: rgba(255, 255, 255, .08);

    --shadow-1: 0 12px 34px rgba(0, 0, 0, .24);
    --shadow-2: 0 28px 65px rgba(0, 0, 0, .34);
    --shadow-3: 0 30px 80px rgba(14, 165, 233, .10);

    --grad-soft: linear-gradient(145deg, #0f172a 0%, #162033 50%, #1a2740 100%);
    --grad-card: linear-gradient(145deg, rgba(15, 23, 42, .95), rgba(22, 32, 51, .84));
}

html,
body {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    /* background:
        radial-gradient(circle at 12% 15%, rgba(14, 165, 233, .12), transparent 24%),
        radial-gradient(circle at 86% 75%, rgba(124, 58, 237, .12), transparent 28%),
        linear-gradient(145deg, #f4f8ff 0%, #ecf4ff 42%, #fcfdff 100%); */
         background-color: #f8fafc ;
    transition: background .3s ease, color .3s ease;
}

body.dark-mode {
    background:
        radial-gradient(circle at 12% 15%, rgba(14, 165, 233, .14), transparent 24%),
        radial-gradient(circle at 86% 75%, rgba(124, 58, 237, .14), transparent 28%),
        linear-gradient(145deg, #020817 0%, #0b1220 42%, #111827 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

body::before {
    width: 260px;
    height: 260px;
    top: -70px;
    left: -50px;
    background: rgba(37, 99, 235, .14);
}

body::after {
    width: 320px;
    height: 320px;
    right: -90px;
    bottom: -90px;
    background: rgba(124, 58, 237, .14);
}

/* NAVBAR */
.top-nav {
    background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    padding: 14px 0;
}

body.dark-mode .top-nav {
    background: rgba(2, 6, 23, .62);
}

.brand-text {
    font-weight: 900;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(90deg, #0ea5e9, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text:hover {
    opacity: .92;
}

.brand-logo {
   width: auto;
  height: 59px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.theme-btn {
    border: none !important;
    border-radius: 999px !important;
    background: var(--grad-main) !important;
    color: #fff !important;
    padding: 10px 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .18) !important;
}

.sidebar-toggle-btn {
    border: none !important;
    border-radius: 14px !important;
    background: var(--grad-main) !important;
    color: #fff !important;
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .18) !important;
}

.sidebar-toggle-btn i {
    font-size: 1.2rem;
    color: #fff !important;
}

.user-chip {
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, .76);
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
}

body.dark-mode .user-chip {
    background: rgba(30, 41, 59, .84);
}

.logout-btn {
    min-width: 46px;
    height: 46px;
    border-radius: 14px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: linear-gradient(135deg, #fb7185, #ef4444) !important;
    color: #fff !important;
}

/* APP SHELL */
.app-shell {
    display: flex;
    min-height: calc(100vh - 74px);
}

/* DESKTOP SIDEBAR */
.sidebar {
    width: 224px;
    min-width: 224px;
    padding: 22px 18px;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .42));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 74px;
    height: calc(100vh - 74px);
    overflow-y: auto;
}

body.dark-mode .sidebar {
    background: linear-gradient(180deg, rgba(15, 23, 42, .80), rgba(15, 23, 42, .56));
}

.sidebar-inner {
    width: 100%;
}

.content-area {
    flex: 1;
    min-width: auto !important;
    padding: 26px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--text-soft);
    margin-bottom: 16px;
    padding-left: 6px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 60px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 8px;
    transition: all .22s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.side-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.side-link span {
    flex: 1;
    min-width: 0;
}

.side-link:hover,
.side-link.active {
    color: #fff;
    background: var(--grad-main);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .18);
}

.side-link:hover i,
.side-link.active i,
.side-link:hover span,
.side-link.active span {
    color: #fff !important;
}

/* OFFCANVAS SIDEBAR */
/* .sidebar-canvas {
    width: 290px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(22, 32, 51, .94)) !important;
    border-right: 1px solid rgba(255, 255, 255, .08) !important;
    color: #fff !important;
} */

/* OFFCANVAS SIDEBAR */
.sidebar-canvas {
    width: 290px !important;
    background: var(--surface) !important;
    border-right: 1px solid var(--border) !important;
    color: var(--text) !important;
}

/* DARK MODE SIDEBAR */
body.dark-mode .sidebar-canvas {
    background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(22, 32, 51, .94)) !important;
    border-right: 1px solid rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

.sidebar-canvas .offcanvas-header {
    padding: 18px 18px 10px;
}

.sidebar-canvas .offcanvas-body {
    padding: 12px 18px 18px;
}

.sidebar-canvas-title {
    color: var(--text);
    font-weight: 900;
    margin: 0;
}

.sidebar-canvas .sidebar-title {
    /* color: rgba(255, 255, 255, .68); */
    color: var(--text-soft);
}

body.dark-mode .sidebar-canvas-title {
    color: #fff;
}

body.dark-mode .sidebar-canvas .sidebar-title {
    color: rgba(255, 255, 255, .68);
}

.sidebar-canvas .side-link {
    /* color: #e2e8f0; */
     color: var(--text);
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .04);
}


.sidebar-canvas .side-link:hover,
.sidebar-canvas .side-link.active {
    color: #fff;
    background: var(--grad-main);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .18);
}

body.dark-mode .sidebar-canvas .side-link {
    color: #e2e8f0;
}

/* CLOSE BUTTON FIX */
.sidebar-canvas .btn-close {
    filter: none;
    opacity: 1;
}

body.dark-mode .sidebar-canvas .btn-close {
    filter: invert(1);
}

/* PAGE */
.page-toolbar {
    margin-bottom: 24px !important;
}

.page-title {
    margin: 0 !important;
    font-weight: 900 !important;
    font-size: 2rem !important;
    line-height: 1.1 !important;
    background: linear-gradient(90deg, #0ea5e9, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    margin-top: 6px;
    color: var(--text-soft) !important;
    font-weight: 500;
    font-size: .98rem;
}

/* CARD UI */
.glass-card,
.stat-card {
    position: relative;
    overflow: hidden;
    background: var(--grad-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-2) !important;
    backdrop-filter: blur(14px);
}

.stat-card {
    min-height: 155px;
    transition: all .28s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3) !important;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -26px;
    right: -20px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .25), transparent 70%);
}

.stat-card::after {
    content: "";
    position: absolute;
    bottom: -22px;
    left: -22px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .18), transparent 70%);
}

.stat-card .card-body {
    position: relative;
    z-index: 2;
    padding: 24px !important;
}

.stat-label {
    color: var(--text-soft) !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.stat-value {
    margin-top: 10px;
    color: var(--text) !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    line-height: 1.1;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.35rem !important;
    flex-shrink: 0;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .18);
    background: var(--grad-main) !important;
}

.stat-icon i {
    color: #fff !important;
}

.stat-card .text-primary,
.stat-card .text-info,
.stat-card .text-secondary,
.stat-card .text-dark,
.stat-card .text-success,
.stat-card .text-warning {
    color: inherit !important;
}

/* different icon gradients */
.dashboard-grid .col-12:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.dashboard-grid .col-12:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

.dashboard-grid .col-12:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
}

.dashboard-grid .col-12:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
}

.dashboard-grid .col-12:nth-child(5) .stat-icon {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
}

.dashboard-grid .col-12:nth-child(6) .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}

.dashboard-grid .col-12:nth-child(7) .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* TABLE CARD */
.glass-card.table-card {
    transition: all .28s ease;
}

.glass-card.table-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3) !important;
}

/* .glass-card.table-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -54px;
    right: 110px;
    background: radial-gradient(circle, rgba(37, 99, 235, .14), transparent 70%);
}

.glass-card.table-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    left: 240px;
    bottom: -28px;
    background: radial-gradient(circle, rgba(124, 58, 237, .12), transparent 72%);
} */

.table-card .card-header {
    position: relative;
    z-index: 2;
    background: transparent !important;
    border: none !important;
    padding: 22px 22px 12px !important;
}

.table-card .card-body {
    position: relative;
    z-index: 2;
    background: transparent !important;
    padding: 0 22px 22px !important;
}

.table-title h4 {
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
}

.table-title h4 i {
    color: var(--primary) !important;
}

.table-title .text-muted {
    color: var(--text-soft) !important;
}

/* TABLE */
.table-responsive {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .32);
}

body.dark-mode .table-responsive {
    background: rgba(15, 23, 42, .28);
}

.custom-table {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    vertical-align: middle !important;
}

.custom-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.custom-table thead tr {
    background: transparent !important;
}

.custom-table thead th {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 14px !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    white-space: nowrap;
    box-shadow: none !important;
}

.custom-table thead th:first-child {
    border-top-left-radius: 18px !important;
}

.custom-table thead th:last-child {
    border-top-right-radius: 18px !important;
}

.custom-table tbody td {
    background: rgba(255, 255, 255, .58) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    padding: 15px 14px !important;
    font-weight: 500 !important;
}

body.dark-mode .custom-table tbody td {
    background: rgba(15, 23, 42, .52) !important;
}

.custom-table tbody tr:hover td {
    box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, .05);
}

/* FORMS */
label {
    font-weight: 800;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.form-control,
.form-select,
textarea {
    min-height: 50px;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    background: rgba(255, 255, 255, .88) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    padding: 12px 14px !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea {
    background: rgba(15, 23, 42, .84) !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, .45) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
}

/* BUTTONS */
.btn {
    border-radius: 15px !important;
    font-weight: 800 !important;
    padding: 10px 16px !important;
}

.btn-gradient {
    background: var(--grad-main) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .18) !important;
}

.btn-gradient:hover {
    color: #fff !important;
}

/* SUMMERNOTE */
.note-editor.note-frame {
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, .88) !important;
}

body.dark-mode .note-editor.note-frame {
    background: rgba(15, 23, 42, .84) !important;
}

.note-toolbar {
    background: linear-gradient(135deg, #f8fbff, #edf4ff) !important;
    border-bottom: 1px solid var(--border) !important;
}

body.dark-mode .note-toolbar {
    background: linear-gradient(135deg, #0f172a, #17243a) !important;
}

.note-editable {
    min-height: 180px !important;
    background: transparent !important;
    color: inherit !important;
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
    .content-area {
        padding: 22px;
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
        min-height: auto;
    }

    .content-area {
        padding: 20px;
    }

    .page-title {
        font-size: 1.7rem !important;
    }

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

@media (max-width: 767.98px) {
    .top-nav {
        padding: 10px 0;
    }

    .brand-text span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-area {
        padding: 16px;
    }

    .page-title {
        font-size: 1.45rem !important;
    }

    .page-subtitle {
        font-size: .92rem;
    }

    .stat-value {
        font-size: 1.7rem !important;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem !important;
    }

    .table-card .card-header {
        padding: 18px 16px 10px !important;
    }

    .table-card .card-body {
        padding: 0 16px 16px !important;
    }

    .custom-table thead th,
    .custom-table tbody td {
        padding: 13px 12px !important;
        font-size: 13px !important;
    }

    .theme-btn {
        padding: 10px 12px !important;
    }

    .sidebar-canvas {
        width: 88% !important;
        max-width: 320px !important;
    }
}

















































.state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
    text-transform: capitalize;
}

.state-open {
       background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;

}

.state-close {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%) !important;
}

.state-ticketid {
    /* background: linear-gradient(135deg, #9ac1f8 0%, #66a3f9 100%) !important; */
        background: linear-gradient(179deg, #103c7a 0%,#0a54bc 50%, #0a54bc 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    box-shadow: 0 4px 12px rgba(102, 163, 249, 0.25) !important;
}










.page-title {
    font-size: 28px;
    font-weight: 700;
}

.page-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.refresh-control-box {
    min-width: 180px;
}

.custom-refresh-select {
    border-radius: 14px;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.ticket-tab-card {
    padding: 18px;
    border-radius: 24px;
}

.custom-ticket-tabs {
    gap: 12px;
    display: flex;
    flex-wrap: nowrap !important;
}

.custom-ticket-tabs .nav-link {
    border: none;
    border-radius: 6px !important;
    padding: 11px 18px;
    font-weight: 700;
    transition: all .25s ease;
      display: flex;
    align-items: center;
    justify-content: center;   
    text-align: center;        
    gap: 8px;
    /* color: #fff; */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}



.custom-ticket-tabs .nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.custom-ticket-tabs .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px rgba(0, 0, 0, 0.12);
}

.custom-ticket-tabs .nav-link.active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
    outline: 2px solid rgba(255, 255, 255, 0.18);
}

.custom-ticket-tabs .tab-text {
    position: relative;
    z-index: 2;
}

.custom-ticket-tabs .tab-count {
    position: relative;
    z-index: 2;
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
    transition: all 0.3s ease;
}

/* Common Tab Style */
/* .tab-recent,
.tab-open,
.tab-all,
.tab-close,
.tab-resolve,
.tab-pending {
    border-radius: 6px !important; 
    padding: 10px 18px !important;
    transition: all 0.3s ease !important;
} */

/* RECENT */
.tab-recent {
    background: linear-gradient(135deg, #eef5ff 0%, #dbeafe 100%) !important;
    border: 1px solid #3b82f6 !important;
    color: #2563eb !important;
}

.tab-recent .tab-count {
    background: rgba(37, 99, 235, 0.12) !important; 
    color: #2563eb !important;
     border: 1px solid rgba(37, 99, 235, 0.22) !important;
    box-shadow: none !important;
}

.tab-recent.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: #2563eb !important;
}

.tab-recent.active .tab-count {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* OPEN */
.tab-open {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%) !important;
    border: 1px solid #06b6d4 !important;
    color: #0891b2 !important;
}

.tab-open .tab-count {
    background: rgba(8, 145, 178, 0.12) !important;
    color: #0891b2 !important;
    border: 1px solid rgba(8, 145, 178, 0.22) !important;
    box-shadow: none !important;
}

.tab-open.active { 
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    border: none !important;
    color: #fff !important;
       /* color: #f01a1a;
    background-color:transparent;
    border-color: var(--bs-nav-tabs-link-active-border-color); */
}

.tab-open.active .tab-count {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* CLOSE */
.tab-close {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 1px solid #64748b !important;
    color: #475569 !important;
}

.tab-close .tab-count {
    background: rgba(71, 85, 105, 0.12) !important;
    color: #475569 !important;
    border: 1px solid rgba(71, 85, 105, 0.22) !important;
    box-shadow: none !important;
}

.tab-close.active {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
    border: none !important;
    color: #fff !important;
}

.tab-close.active .tab-count {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* RESOLVE */
.tab-resolve {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 1px solid #22c55e !important;
    color: #16a34a !important;
}

.tab-resolve .tab-count {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #16a34a !important;
    border: 1px solid rgba(22, 163, 74, 0.22) !important;
    box-shadow: none !important;
}

.tab-resolve.active {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
    border: none !important;
    color: #fff !important;
}

.tab-resolve.active .tab-count {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* PENDING */
.tab-pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1px solid #f59e0b !important;
    color: #d97706 !important;
}

.tab-pending .tab-count {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(217, 119, 6, 0.22) !important;
    box-shadow: none !important;
}

.tab-pending.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #fff !important;
}

.tab-pending.active .tab-count {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}






/* .ticket-custom-table thead th {
    background: #587ca1;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #cbdffb;
    white-space: nowrap;
} */

.table-responsive,
.custom-table-wrapper {
    border-radius: 14px !important;
    overflow: hidden !important;
}

.custom-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.custom-table thead {
    position: relative !important;
    background: linear-gradient(135deg, #31415a 0%, #576ba2 50%, #14307e 100%) !important;
}

.custom-table thead tr {
    background: transparent !important;
}

.custom-table thead th {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
    text-transform: capitalize !important;
    letter-spacing: 0.3px !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

.custom-table thead th:first-child {
    border-top-left-radius: 14px !important;
}

.custom-table thead th:last-child {
    border-top-right-radius: 14px !important;
}

.custom-table tbody tr {
    background: #ffffff !important;
    transition: all 0.25s ease !important;
}

.custom-table tbody tr:nth-child(even) {
    background: #f8fbff !important;
}

.custom-ticket-table tbody tr:hover {
    background: #eef6ff !important;
}

.custom-table tbody td {
    border-top: none !important;
    border-bottom: 1px solid #e5edf8 !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
}

.custom-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px !important;
}

.custom-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px !important;
}




.ticket-custom-table tbody tr {
    transition: all .3s ease;
}

.ticket-custom-table tbody tr:hover {
    background: #f8fbff;
}

.ticket-row.row-active {
    animation: ticketFlash 1.2s ease-in-out infinite alternate;
}

@keyframes ticketFlash {
    from {
        box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0.00);
    }

    to {
       box-shadow: 
    inset 6px 0 0 0 rgba(239, 68, 68, 0.6),
    inset 10px 0 12px -6px rgba(220, 38, 38, 0.5);
    }
}

.priority-badge,
.status-badge,
.state-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.priority-badge.normal {
    background: #eff6ff;
    color: #1d4ed8;
}

.priority-badge.high {
    background: #fff7ed;
    color: #ea580c;
}

.priority-badge.emergency {
    background: #fef2f2;
    color: #dc2626;
}

.status-badge.pending {
    background: #fff7ed;
    color: #d97706;
    text-transform: capitalize;
}

.status-badge.resolved {
    background: #ecfdf5;
    color: #059669;
    text-transform: capitalize;
}

.state-badge.open {
    background: #eff6ff;
    color: #2563eb;
    text-transform: capitalize;
}

.state-badge.close {
    background: #f3f4f6;
    color: #374151;
    text-transform: capitalize;
}

.btn-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 7px 12px;
}

.btn-gradient:hover {
    color: #fff;
}

.btn-close-ticket {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 7px 12px;
}

.btn-close-ticket:hover {
    color: #fff;
}

.empty-row {
    padding: 40px 0 !important;
    text-align: center;
    color: #6b7280;
}

html.dark .page-subtitle,
html.dark-mode .page-subtitle {
    color: #94a3b8;
}

html.dark .custom-refresh-select,
html.dark-mode .custom-refresh-select {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

html.dark .ticket-custom-table thead th,
html.dark-mode .ticket-custom-table thead th {
    background: #0f172a;
    color: #cbd5e1;
    border-color: #1e293b;
}

html.dark .ticket-custom-table tbody tr:hover,
html.dark-mode .ticket-custom-table tbody tr:hover {
    background: #0f172a;
}

html.dark .custom-ticket-tabs .nav-link,
html.dark-mode .custom-ticket-tabs .nav-link {
    box-shadow: 0 12px 25px rgba(0, 0, 0, .30);
}

html.dark .tab-count,
html.dark-mode .tab-count {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

@media(max-width:767px) {
    .custom-ticket-tabs .nav-link {
        width: 100%;
        justify-content: space-between;
    }
}











.swal-ticket-popup {
    border-radius: 22px !important;
    padding: 24px !important;
}

.swal-ticket-confirm {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
}

.swal-ticket-cancel {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
}

















.custom-search-input {
    min-width: 220px;
}

.custom-per-page {
    width: 90px;
    min-width: 90px;
}

.admin-table-footer {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.pagination-summary {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

.custom-pagination-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .85);
    color: var(--text);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all .25s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.page-btn:hover {
    background: linear-gradient(135deg, #eef5ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1d4ed8;
}

.page-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.page-btn.disabled,
.page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.page-dots {
    color: var(--text-soft);
    font-weight: 800;
    padding: 0 2px;
}

.table-role-badge,
.table-status-badge,
.table-online-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.table-role-badge.role-agent {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
}

.table-role-badge.role-client {
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%);
    color: #6d28d9;
}

.table-status-badge.active {
    background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
    color: #15803d;
}

.table-status-badge.inactive {
    background: linear-gradient(135deg, #e5e7eb 0%, #cbd5e1 100%);
    color: #475569;
}

.table-online-badge.online {
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%);
    color: #166534;
}

.table-online-badge.offline {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    color: #475569;
}

.custom-admin-modal .modal-dialog {
    max-width: 760px;
}

.custom-admin-modal .modal-content {
    border-radius: 28px !important;
    overflow: hidden;
    background: var(--grad-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-2) !important;
    backdrop-filter: blur(16px);
}

.custom-admin-modal .modal-header {
    padding: 22px 24px 10px;
    background: transparent !important;
}

.custom-admin-modal .modal-body {
    padding: 10px 24px 10px;
}

.custom-admin-modal .modal-footer {
    padding: 10px 24px 24px;
    background: transparent !important;
}

.custom-admin-modal .modal-title {
    color: var(--text) !important;
}

.custom-admin-modal .btn-close {
    filter: none;
}

body.dark-mode .custom-admin-modal .btn-close {
    filter: invert(1);
}

@media (max-width: 767.98px) {
    .custom-search-input {
        min-width: 100%;
    }

    .custom-per-page {
        width: 100%;
    }

    .custom-admin-modal .modal-dialog {
        margin: 12px;
    }

    .custom-admin-modal .modal-header,
    .custom-admin-modal .modal-body,
    .custom-admin-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}











.profile-main-card {
    border-radius: 28px !important;
}

.profile-tabs {
    gap: 12px;
    flex-wrap: wrap;
}

.profile-tabs .nav-link {
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.72) !important;
    color: var(--text) !important;
    font-weight: 800 !important;
    padding: 12px 18px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

body.dark-mode .profile-tabs .nav-link {
    background: rgba(15, 23, 42, .76) !important;
    color: var(--text) !important;
}

.profile-tabs .nav-link.active {
    background: var(--grad-main) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .20) !important;
}

.profile-view-card,
.profile-update-preview-card,
.profile-details-card,
.profile-form-card {
    height: 100%;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.44);
    padding: 24px;
}

body.dark-mode .profile-view-card,
body.dark-mode .profile-update-preview-card,
body.dark-mode .profile-details-card,
body.dark-mode .profile-form-card {
    background: rgba(15, 23, 42, .42);
}

.profile-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-main-image {
    width: 170px;
    height: 170px;
    border-radius: 28px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 32px rgba(37, 99, 235, .16);
}

.profile-preview-icon {
    width: 170px;
    height: 170px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-main);
    color: #fff;
    font-size: 3.2rem;
    box-shadow: 0 18px 32px rgba(37, 99, 235, .16);
}

.profile-view-card {
    text-align: center;
}

.profile-view-name {
    color: var(--text);
    font-weight: 900;
}

.profile-view-role {
    color: var(--text-soft);
    font-weight: 700;
}

.profile-detail-item {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.42);
    padding: 16px;
    height: 100%;
}

body.dark-mode .profile-detail-item {
    background: rgba(15, 23, 42, .44);
}

.profile-detail-item span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.profile-detail-item strong {
    color: var(--text);
    font-size: 15px;
    word-break: break-word;
}

.password-match-message {
    font-size: 13px;
    font-weight: 700;
    min-height: 18px;
}

@media (max-width: 767.98px) {
    .profile-main-image,
    .profile-preview-icon {
        width: 130px;
        height: 130px;
        border-radius: 22px;
    }

    .profile-preview-icon {
        font-size: 2.5rem;
    }

    .profile-tabs .nav-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .profile-view-card,
    .profile-update-preview-card,
    .profile-details-card,
    .profile-form-card {
        padding: 18px;
    }
}


.note-modal-backdrop {
  
  display: none !important;
}











.page-title{
        font-size: 30px;
        font-weight: 800;
        color: #0f172a;
    }

    .page-subtitle{
        color: #64748b;
        font-size: 14px;
    }

    .ticket-side-card,
    .ticket-chat-card{
        border-radius: 26px;
        overflow: hidden;
        border: 1px solid rgba(59,130,246,0.10);
        box-shadow: 0 18px 40px rgba(15,23,42,0.06);
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .card-head{
        padding: 18px 22px;
        border-bottom: 1px solid #e2e8f0;
        background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    }

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

    .section-mini-title{
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #1d4ed8;
        margin-bottom: 14px;
    }

    .ticket-action-box{
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        padding: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .custom-input{
        border-radius: 14px;
        min-height: 46px;
        border: 1px solid #dbeafe;
        box-shadow: none !important;
    }

    .custom-input:focus{
        border-color: #60a5fa;
        box-shadow: 0 0 0 .15rem rgba(59,130,246,.12) !important;
    }

    .custom-check .form-check-input{
        width: 18px;
        height: 18px;
        margin-top: .2rem;
    }

    .custom-check .form-check-label{
        padding-left: 6px;
        font-weight: 600;
        color: #334155;
    }

    .btn-gradient{
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #fff !important;
        border: none;
        border-radius: 999px;
        min-height: 46px;
        font-weight: 700;
        box-shadow: 0 10px 20px rgba(37,99,235,.18);
    }

    .btn-gradient:hover{
        transform: translateY(-1px);
        color: #fff !important;
    }

    .btn-open-state{
        background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
        color: #fff;
        border: none;
        border-radius: 999px;
        min-height: 44px;
        font-weight: 700;
    }

    .btn-close-state{
        background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
        color: #fff;
        border: none;
        border-radius: 999px;
        min-height: 44px;
        font-weight: 700;
    }

    .ticket-note{
        font-size: 12px;
        color: #64748b;
        line-height: 1.5;
    }

    .chat-topbar{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 18px 22px;
        border-bottom: 1px solid #e2e8f0;
        background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    }

    .chat-subtitle{
        font-size: 13px;
        color: #64748b;
    }

    .live-pill{
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 999px;
        background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
        color: #166534;
        font-size: 13px;
        font-weight: 700;
    }

    .live-dot{
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #16a34a;
        box-shadow: 0 0 0 4px rgba(34,197,94,.15);
    }

    .chat-box{
        height: 287px;
        overflow-y: auto;
        padding: 22px;
        background:
            radial-gradient(circle at top right, rgba(59,130,246,.06), transparent 24%),
            radial-gradient(circle at bottom left, rgba(34,197,94,.06), transparent 24%),
            #f8fbff;
    }

    .message-row{
        display: flex;
        margin-bottom: 18px;
    }

    .message-row.staff{
        justify-content: flex-end;
    }

    .message-row.client{
        justify-content: flex-start;
    }

    .message-bubble{
        max-width: 78%;
        border-radius: 22px;
        padding: 16px 16px 14px;
        box-shadow: 0 10px 25px rgba(15,23,42,.06);
        position: relative;
    }

    .message-row.client .message-bubble{
        background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
        border: 1px solid #dbeafe;
        color: #0f172a;
        border-top-left-radius: 8px;
    }

    .message-row.staff .message-bubble{
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #fff;
        border-top-right-radius: 8px;
    }

    .message-author{
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        font-size: 13px;
        font-weight: 800;
    }

    .message-role{
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 999px;
        font-weight: 700;
    }

    .message-row.client .message-role{
        background: #dbeafe;
        color: #1d4ed8;
    }

    .message-row.staff .message-role{
        background: rgba(255,255,255,.16);
        color: #fff;
    }

    .message-text{
        font-size: 14px;
        line-height: 1.65;
        word-break: break-word;
    }

    .message-attachment{
        margin-top: 12px;
    }

    .message-attachment a{
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 700;
    }

    .message-row.client .message-attachment a{
        background: #e0f2fe;
        color: #0369a1;
    }

    .message-row.staff .message-attachment a{
        background: rgba(255,255,255,.14);
        color: #fff;
    }

    .message-time{
        margin-top: 10px;
        font-size: 11px;
        opacity: .8;
    }

    .reply-panel{
        border-top: 1px solid #e2e8f0;
        padding: 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .reply-title{
        font-size: 15px;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 12px;
    }

    .ticket-closed-notice{
        margin: 18px 22px 0;
        border-radius: 16px;
        padding: 14px 16px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        color: #334155;
        font-weight: 700;
    }

    .ticket-info-grid{
        /* display: grid; */
        /* grid-template-columns: repeat(2, minmax(0,1fr)); */
        /* gap: 12px; */
    }

   .ticket-info-item{
    height: 100%;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
}

.ticket-info-item span{
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ticket-info-item strong{
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.4;
    word-break: break-word;
}

.ticket-subject-box{
    border-radius: 18px;
    padding: 30px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
}

.ticket-subject-title{
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.ticket-subject-text{
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.badge-status,
.badge-state,
.badge-priority{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    width: fit-content;
    max-width: 100%;
}

.badge-status.pending{
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-status.resolved{
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.badge-state.open{
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #fff;
}

.badge-state.close{
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
    color: #fff;
}

.badge-priority.normal{
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.badge-priority.high{
    background: linear-gradient(135deg, #ffedd5 0%, #fdba74 100%);
    color: #c2410c;
}

.badge-priority.emergency{
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    color: #b91c1c;
}

@media (max-width: 767.98px){
    .ticket-info-item{
        min-height: auto;
    }

    .ticket-subject-text{
        font-size: 15px;
    }
}

    html.dark .page-title,
    html.dark-mode .page-title{
        color: #f8fafc;
    }

    html.dark .page-subtitle,
    html.dark-mode .page-subtitle{
        color: #94a3b8;
    }

    html.dark .ticket-side-card,
    html.dark-mode .ticket-side-card,
    html.dark .ticket-chat-card,
    html.dark-mode .ticket-chat-card{
        background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
        border-color: rgba(148,163,184,.12);
    }

    html.dark .card-head,
    html.dark-mode .card-head,
    html.dark .chat-topbar,
    html.dark-mode .chat-topbar,
    html.dark .reply-panel,
    html.dark-mode .reply-panel{
        background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
        border-color: #1e293b;
    }

    html.dark .ticket-action-box,
    html.dark-mode .ticket-action-box,
    html.dark .ticket-info-item,
    html.dark-mode .ticket-info-item{
        background: linear-gradient(180deg, #0f172a 0%, #172033 100%);
        border-color: #1e293b;
    }

    html.dark .ticket-subject-box,
    html.dark-mode .ticket-subject-box{
        background: linear-gradient(180deg, #0f172a 0%, #172033 100%);
        border-color: #1e293b;
    }

    html.dark .ticket-info-item strong,
    html.dark-mode .ticket-info-item strong,
    html.dark .ticket-subject-text,
    html.dark-mode .ticket-subject-text,
    html.dark .reply-title,
    html.dark-mode .reply-title,
    html.dark .custom-check .form-check-label,
    html.dark-mode .custom-check .form-check-label{
        color: #f8fafc;
    }

    html.dark .ticket-info-item span,
    html.dark-mode .ticket-info-item span,
    html.dark .ticket-subject-title,
    html.dark-mode .ticket-subject-title,
    html.dark .chat-subtitle,
    html.dark-mode .chat-subtitle,
    html.dark .ticket-note,
    html.dark-mode .ticket-note{
        color: #94a3b8;
    }

    html.dark .chat-box,
    html.dark-mode .chat-box{
        background: #0b1220;
    }

    html.dark .message-row.client .message-bubble,
    html.dark-mode .message-row.client .message-bubble{
        background: linear-gradient(180deg, #111827 0%, #172033 100%);
        border-color: #1e293b;
        color: #e2e8f0;
    }

    html.dark .custom-input,
    html.dark-mode .custom-input{
        background: #0f172a;
        color: #e2e8f0;
        border-color: #334155;
    }

    html.dark .ticket-closed-notice,
    html.dark-mode .ticket-closed-notice{
        background: linear-gradient(180deg, #172033 0%, #1e293b 100%);
        color: #e2e8f0;
    }

    @media(max-width: 767px){
        .ticket-info-grid{
            grid-template-columns: 1fr;
        }

        .chat-box{
            height: 420px;
        }

        .message-bubble{
            max-width: 92%;
        }
    }


    /* ================= ALL TAB ================= */

.tab-all {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
    border: 1px solid #6366f1 !important;
    color: #4f46e5 !important;
}

.tab-all .tab-count {
    background: rgba(79, 70, 229, 0.12) !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: none !important;
}

/* ACTIVE STATE */
.tab-all.active {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important;
    border: none !important;
    color: #fff !important;
}

.tab-all.active .tab-count {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* DARK MODE - ALL TAB */
body.dark-mode .tab-all {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    border: 1px solid #6366f1 !important;
    color: #c7d2fe !important;
}

body.dark-mode .tab-all .tab-count {
    background: rgba(199, 210, 254, 0.12) !important;
    color: #c7d2fe !important;
    border: 1px solid rgba(199, 210, 254, 0.25) !important;
}

body.dark-mode .tab-all.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
}

