:root {
    --sidebar-width: 260px;
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --dark: #5a5c69;
    --sidebar-bg: #1a1a2e;
    --sidebar-hover: #16213e;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-topbar: #ffffff;
    --bg-sidebar: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    --bg-input: #ffffff;
    --bg-filter: #ffffff;
    --bg-conversation: #f8f9fc;
    --bg-conversation-hover: #f0f2f7;
    --bg-internal: #fffcf0;
    --bg-timeline-comment: #f8f9fc;
    --bg-modal: #ffffff;
    --bg-attachment: #f8f9fc;
    --bg-attachment-hover: #eef1f7;
    --bg-table-hover: #f8f9fc;
    --bg-alert-success: #e8faf0;
    --bg-alert-danger: #fef0ef;
    --bg-progress: #e9ecef;
    --bg-page-login: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);

    --border-card: none;
    --border-input: 1.5px solid #e0e3e8;
    --border-table: 2px solid #e9ecef;
    --border-table-row: 1px solid #f0f2f5;
    --border-card-header: 1px solid #e9ecef;
    --border-modal: 1px solid #e9ecef;
    --border-attachment: 1px solid #e9ecef;
    --border-timeline: 2px solid #e9ecef;
    --border-conversation: 4px solid var(--primary);
    --border-conversation-internal: 4px solid var(--warning);

    --text-body: #5a5c69;
    --text-heading: #5a5c69;
    --text-muted: #858796;
    --text-muted-light: #b0b3b9;
    --text-table: #5a5c69;
    --text-label: #5a5c69;
    --text-card-value: inherit;
    --text-login-heading: #1a1a2e;
    --text-login-sub: #858796;
    --text-on-primary: #ffffff;
    --text-on-sidebar: #ffffff;
    --text-sidebar-link: rgba(255, 255, 255, 0.6);
    --text-sidebar-heading: rgba(255, 255, 255, 0.3);
    --text-alert-success: #1a7d5c;
    --text-alert-danger: #b64b3f;
    --text-placeholder: #a0a5b0;

    --shadow-card: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    --shadow-card-hover: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
    --shadow-login-card: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-dropdown: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-input-focus: 0 0 0 3px rgba(78, 115, 223, 0.12);
}

[data-theme="dark"] {
    --bg-body: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-topbar: #1a1a2e;
    --bg-sidebar: linear-gradient(180deg, #0d0d1a 0%, #12122a 100%);
    --bg-input: #15152a;
    --bg-filter: #1a1a2e;
    --bg-conversation: #15152a;
    --bg-conversation-hover: #1c1c38;
    --bg-internal: #1e1a10;
    --bg-timeline-comment: #15152a;
    --bg-modal: #1a1a2e;
    --bg-attachment: #15152a;
    --bg-attachment-hover: #1c1c38;
    --bg-table-hover: #15152a;
    --bg-alert-success: #0d261c;
    --bg-alert-danger: #2e1210;
    --bg-progress: #2a2a44;
    --bg-page-login: linear-gradient(135deg, #0a0a14 0%, #0f0f22 40%, #0a0a30 100%);

    --border-input: 1.5px solid #2a2a44;
    --border-table: 2px solid #2a2a44;
    --border-table-row: 1px solid #1f1f38;
    --border-card-header: 1px solid #2a2a44;
    --border-modal: 1px solid #2a2a44;
    --border-attachment: 1px solid #2a2a44;
    --border-timeline: 2px solid #2a2a44;

    --text-body: #c4c4d0;
    --text-heading: #e0e0e8;
    --text-muted: #8a8aa0;
    --text-muted-light: #6a6a80;
    --text-table: #c4c4d0;
    --text-label: #b0b0c0;
    --text-login-heading: #e0e0e8;
    --text-login-sub: #8a8aa0;
    --text-placeholder: #5a5a70;

    --shadow-card: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.4);
    --shadow-login-card: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-dropdown: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-input-focus: 0 0 0 3px rgba(78, 115, 223, 0.25);
}

/* ===== BASE ===== */
body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

::placeholder {
    color: var(--text-placeholder);
    opacity: 1;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: var(--text-on-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar > .nav:last-of-type {
    flex: 1;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.sidebar .sidebar-header {
    padding: 24px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar .sidebar-header .brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar .sidebar-header small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

.sidebar .nav-section {
    padding: 16px 20px 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-sidebar-heading);
    font-weight: 700;
}

.sidebar .nav-link {
    color: var(--text-sidebar-link);
    padding: 10px 20px;
    margin: 2px 8px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(78, 115, 223, 0.2);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* ===== CONTENT ===== */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--bg-topbar);
    padding: 16px 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s;
}

.topbar h4, .topbar h5 {
    margin: 0;
    font-weight: 700;
    color: var(--text-heading);
}

.topbar h4 i, .topbar h5 i {
    color: var(--primary);
    margin-right: 8px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-card-hover);
}

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

.stat-card .stat-left {
    position: relative;
    z-index: 1;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    opacity: 0.8;
    color: var(--text-muted);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Card color variants */
.stat-card.border-left-primary::before { background: var(--primary); }
.stat-card.border-left-primary .stat-value { color: var(--primary); }
.stat-card.border-left-primary .stat-icon { background: rgba(78, 115, 223, 0.1); color: var(--primary); }

.stat-card.border-left-info::before { background: var(--info); }
.stat-card.border-left-info .stat-value { color: var(--info); }
.stat-card.border-left-info .stat-icon { background: rgba(54, 185, 204, 0.1); color: var(--info); }

.stat-card.border-left-success::before { background: var(--success); }
.stat-card.border-left-success .stat-value { color: var(--success); }
.stat-card.border-left-success .stat-icon { background: rgba(28, 200, 138, 0.1); color: var(--success); }

.stat-card.border-left-warning::before { background: var(--warning); }
.stat-card.border-left-warning .stat-value { color: #b8860b; }
.stat-card.border-left-warning .stat-icon { background: rgba(246, 194, 62, 0.15); color: #b8860b; }

.stat-card.border-left-danger::before { background: var(--danger); }
.stat-card.border-left-danger .stat-value { color: var(--danger); }
.stat-card.border-left-danger .stat-icon { background: rgba(231, 74, 59, 0.1); color: var(--danger); }

.stat-card.border-left-purple::before { background: #6f42c1; }
.stat-card.border-left-purple .stat-value { color: #6f42c1; }
.stat-card.border-left-purple .stat-icon { background: rgba(111, 66, 193, 0.1); color: #6f42c1; }

.stat-card.border-left-secondary::before { background: var(--secondary); }
.stat-card.border-left-secondary .stat-value { color: var(--secondary); }
.stat-card.border-left-secondary .stat-icon { background: rgba(133, 135, 150, 0.1); color: var(--secondary); }

.stat-card.border-left-dark::before { background: var(--dark); }
.stat-card.border-left-dark .stat-value { color: var(--dark); }
.stat-card.border-left-dark .stat-icon { background: rgba(90, 92, 105, 0.1); color: var(--dark); }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    background: var(--bg-card);
    border-bottom: var(--border-card-header);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
    border-radius: 12px 12px 0 0 !important;
}

.card-header .card-tools {
    display: flex;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* ===== TABLES ===== */
.table {
    margin-bottom: 0;
    color: var(--text-table);
}

.table > thead > tr > th {
    border-top: none;
    border-bottom: var(--border-table);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 12px 16px;
}

.table > tbody > tr > td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: var(--border-table-row);
    color: var(--text-table);
}

.table > tbody > tr:hover {
    background-color: var(--bg-table-hover);
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

.table-hover > tbody > tr {
    transition: background-color 0.15s;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1a3eaa);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background: #6e7080;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    color: #fff;
}

/* Theme toggle button */
.btn-theme {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--border-input);
    background: var(--bg-card);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-theme:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 8px;
    border: var(--border-input);
    padding: 9px 14px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-body);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-input-focus);
    background: var(--bg-input);
    color: var(--text-body);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-label);
    margin-bottom: 6px;
}

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

.form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-input);
}

/* ===== BADGES ===== */
.badge {
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.72rem;
    border-radius: 6px;
}

/* ===== LOGIN ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page-login);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(78, 115, 223, 0.1) 0%, transparent 70%);
    animation: loginGlow 8s ease-in-out infinite alternate;
}

@keyframes loginGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30%, 30%); }
}

@keyframes loginSlide {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-login-card);
    background: var(--bg-card);
    position: relative;
    z-index: 1;
    animation: loginSlide 0.6s ease-out;
}

.login-card .card-header {
    background: transparent;
    border-bottom: none;
    text-align: center;
    padding: 32px 30px 0;
    border-radius: 16px 16px 0 0 !important;
}

.login-card .card-header .login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(78, 115, 223, 0.3);
}

.login-card .card-header h3 {
    color: var(--text-login-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.login-card .card-header p {
    color: var(--text-login-sub);
    font-size: 0.88rem;
}

.login-card .card-body {
    padding: 24px 30px 32px;
}

.login-card .btn-primary {
    padding: 12px;
    font-size: 0.95rem;
}

/* ===== TICKET TIMELINE ===== */
.ticket-timeline {
    position: relative;
    padding-left: 28px;
}

.ticket-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-timeline);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 4px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .timeline-user {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-heading);
}

.timeline-item .timeline-action {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.timeline-item .timeline-comment {
    font-size: 0.8rem;
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--bg-timeline-comment);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.timeline-item .timeline-time {
    font-size: 0.72rem;
    color: var(--text-muted-light);
    margin-top: 3px;
}

/* ===== ATTACHMENTS ===== */
.attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-attachment);
    border-radius: 8px;
    border: var(--border-attachment);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-body);
    font-size: 0.82rem;
}

.attachment-item:hover {
    background: var(--bg-attachment-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.attachment-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: var(--bg-filter);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
}

.alert-danger {
    background: var(--bg-alert-danger);
    color: var(--text-alert-danger);
}

.alert-success {
    background: var(--bg-alert-success);
    color: var(--text-alert-success);
}

/* ===== PAGINATION ===== */
.pagination {
    margin: 0;
}

.page-link {
    border: none;
    padding: 8px 14px;
    color: var(--text-muted);
    border-radius: 8px !important;
    margin: 0 2px;
    font-weight: 600;
    font-size: 0.85rem;
    background: transparent;
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--text-on-primary);
}

.page-link:hover {
    background: var(--bg-table-hover);
    color: var(--primary);
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-dropdown);
    padding: 8px;
    background: var(--bg-card);
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.88rem;
    transition: background 0.15s;
    color: var(--text-body);
}

.dropdown-item:hover {
    background: var(--bg-table-hover);
    color: var(--primary);
}

.dropdown-menu-notifications {
    max-height: 320px;
    overflow-y: auto;
    width: 360px;
}

/* ===== SLA BADGES ===== */
.badge-sla-ok {
    background: linear-gradient(135deg, #1cc88a, #169b6d);
    color: #fff;
}

.badge-sla-warning {
    background: linear-gradient(135deg, #f6c23e, #d4a828);
    color: #212529;
}

.badge-sla-breached {
    background: linear-gradient(135deg, #e74a3b, #c23321);
    color: #fff;
}

/* ===== CHART CONTAINERS ===== */
.chart-container {
    position: relative;
    width: 100%;
}

.chart-container canvas {
    max-height: 250px;
}

/* ===== MODAL ===== */
.modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow-modal);
    background: var(--bg-modal);
}

.modal-header {
    border-bottom: var(--border-modal);
    padding: 18px 24px;
    color: var(--text-heading);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: var(--border-modal);
    padding: 14px 24px;
}

.btn-close {
    filter: var(--btn-close-filter, none);
}

[data-theme="dark"] .btn-close {
    --btn-close-filter: invert(0.8);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* ===== PROGRESS ===== */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-progress);
}

.progress-bar {
    border-radius: 4px;
}

/* ===== LIGHT CARD IN DARK MODE ===== */
[data-theme="dark"] .card.bg-light {
    background: #15152a !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
    }
    .sidebar.active {
        margin-left: 0;
    }
    .content {
        margin-left: 0;
    }
    .content.active {
        margin-left: var(--sidebar-width);
    }
    .stat-card .stat-value {
        font-size: 1.4rem;
    }
}

/* ===== UTILITY ===== */
.text-purple { color: #6f42c1 !important; }
.bg-purple { background-color: #6f42c1 !important; }

/* ===== CONVERSATION BUBBLES ===== */
.conversation-item {
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--bg-conversation);
    border-left: var(--border-conversation);
    transition: var(--transition);
}

.conversation-item:hover {
    background: var(--bg-conversation-hover);
}

.conversation-item .conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.conversation-item .conversation-author {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-heading);
}

.conversation-item .conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

.conversation-item .conversation-message {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.6;
}

.conversation-item.is-internal {
    border-left-color: var(--warning);
    background: var(--bg-internal);
}

/* ===== TOOLBAR ACTION BUTTONS ===== */
.action-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== SELECT IN DARK MODE ===== */
[data-theme="dark"] select option {
    background: #1a1a2e;
    color: #c4c4d0;
}

/* ===== THEME TOGGLE IN TOPBAR ===== */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== BG LIGHT OVERRIDE FOR DARK ===== */
[data-theme="dark"] .bg-light {
    background-color: #15152a !important;
}
