/* ==========================================================================
   SAHALPLUS — UNIFIED DASHBOARD DESIGN SYSTEM (CUSTOMER, PROVIDER, ADMIN)
   Extends: styles.css tokens and variables
   ========================================================================== */

/* Dashboard Layout Shell */
.dashboard-app {
  display: flex;
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-primary);
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.dash-sidebar {
  width: 250px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

[dir="rtl"] .dash-sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-light);
}

.dash-sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.dash-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.dash-brand-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.dash-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.dash-role-badge.customer {
  background: rgba(16, 185, 129, 0.12);
  color: #0E6B00;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .dash-role-badge.customer {
  color: var(--brand-green);
  background: rgba(112, 255, 11, 0.12);
  border-color: rgba(112, 255, 11, 0.3);
}

.dash-role-badge.provider {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .dash-role-badge.provider {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
}

.dash-role-badge.admin {
  background: rgba(99, 102, 241, 0.12);
  color: #4338CA;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .dash-role-badge.admin {
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Sidebar Navigation Menu */
.dash-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 10px 10px 4px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.dash-nav-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: stroke var(--transition-fast);
}

.dash-nav-link:hover {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
}

.dash-nav-link.active {
  background: var(--brand-green-subtle);
  color: #0E6B00;
  font-weight: 700;
}

[data-theme="dark"] .dash-nav-link.active {
  background: rgba(112, 255, 11, 0.12);
  color: var(--brand-green);
}

.dash-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: var(--brand-green);
  border-radius: 0 4px 4px 0;
}

[dir="rtl"] .dash-nav-link.active::before {
  left: auto;
  right: 0;
  border-radius: 4px 0 0 4px;
}

.dash-nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
}

[dir="rtl"] .dash-nav-badge {
  margin-left: 0;
  margin-right: auto;
}

.dash-nav-badge.count-alert {
  background: #EF4444;
  color: #FFFFFF;
}

.dash-nav-badge.count-green {
  background: var(--brand-green);
  color: #080D15;
}

/* Sidebar Footer / User Quick Info */
.dash-sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
}

.dash-user-quick-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--brand-green);
  color: #080D15;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px var(--brand-green-glow);
}

.dash-user-meta {
  flex: 1;
  min-width: 0;
}

.dash-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-role {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-transform: capitalize;
}

.dash-logout-quick-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 5px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.dash-logout-quick-btn:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   MAIN DASHBOARD WRAPPER & TOPBAR
   ========================================================================== */
.dash-main-wrap {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: all var(--transition-normal);
  background: var(--bg-body);
}

[dir="rtl"] .dash-main-wrap {
  margin-left: 0;
  margin-right: 250px;
}

/* Topbar Header */
.dash-topbar {
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-xs);
}

.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  cursor: pointer;
}

.dash-page-title-wrap {
  display: flex;
  flex-direction: column;
}

.dash-page-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
}

.dash-breadcrumb {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

/* Topbar Actions */
.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: 200px;
  transition: all var(--transition-fast);
}

.dash-search-bar:focus-within {
  width: 250px;
  border-color: #10B981;
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.dash-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.84rem;
  color: var(--text-main);
  width: 100%;
}

.dash-search-bar input::placeholder {
  color: var(--text-subtle);
}

.dash-topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.dash-topbar-btn:hover {
  background: var(--bg-surface);
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

.dash-notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: #EF4444;
  border: 2px solid var(--bg-surface);
}

/* Provider Profile Avatar — Noticeably larger than utility icon buttons */
.dash-topbar-profile-avatar {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.dash-topbar-profile-avatar:hover {
  outline-color: var(--brand-green);
  transform: translateY(-1px);
}

.dash-topbar-profile-avatar .dash-user-avatar {
  /* Overrides: 44x44 vs 36x36 for other topbar buttons */
  width: 44px !important;
  height: 44px !important;
  font-size: 1rem !important;
  box-shadow: 0 2px 8px var(--brand-green-glow);
  flex-shrink: 0;
}


/* ==========================================================================
   DASHBOARD CONTENT SECTIONS & VIEWS
   ========================================================================== */
.dash-content-body {
  padding: 22px 24px;
  flex: 1;
}

.dash-view-section {
  display: none;
  animation: fadeInView 0.22s ease-out;
}

.dash-view-section.active {
  display: block;
}

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

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.dash-section-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
}

.dash-section-subheading {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   STAT CARDS & METRIC WIDGETS (COMPACT & CLEAN)
   ========================================================================== */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-sm);
}

.stat-card-info {
  display: flex;
  flex-direction: column;
}

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
}

.stat-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 3px;
}

.stat-card-trend.up {
  color: #10B981;
}

.stat-card-trend.down {
  color: #EF4444;
}

.stat-card-trend.neutral {
  color: var(--text-subtle);
}

.stat-card-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon-box svg {
  width: 16px;
  height: 16px;
}

.stat-card-icon-box.green {
  background: var(--brand-green-subtle);
  color: #0E6B00;
}

[data-theme="dark"] .stat-card-icon-box.green {
  background: rgba(112, 255, 11, 0.15);
  color: var(--brand-green);
}

.stat-card-icon-box.yellow {
  background: var(--brand-yellow-subtle);
  color: #B45309;
}

[data-theme="dark"] .stat-card-icon-box.yellow {
  background: rgba(255, 212, 0, 0.15);
  color: var(--brand-yellow);
}

.stat-card-icon-box.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}

.stat-card-icon-box.purple {
  background: rgba(147, 51, 234, 0.12);
  color: #9333EA;
}

/* ==========================================================================
   DATA CARDS, TABLES & DATA LISTS (COMPACT & BALANCED)
   ========================================================================== */
.data-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px;
}

.data-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 8px;
}

.data-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
}

.data-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Table */
.data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

[dir="rtl"] .data-table {
  text-align: right;
}

.data-table th {
  background: var(--bg-surface-alt);
  padding: 10px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-surface-alt);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-badge.verified,
.status-badge.active,
.status-badge.completed,
.status-badge.approved {
  background: rgba(16, 185, 129, 0.12);
  color: #0E6B00;
}

[data-theme="dark"] .status-badge.verified,
[data-theme="dark"] .status-badge.active,
[data-theme="dark"] .status-badge.completed,
[data-theme="dark"] .status-badge.approved {
  color: #34D399;
  background: rgba(16, 185, 129, 0.2);
}

.status-badge.pending,
.status-badge.in-progress,
.status-badge.processing {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}

[data-theme="dark"] .status-badge.pending,
[data-theme="dark"] .status-badge.in-progress,
[data-theme="dark"] .status-badge.processing {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.2);
}

.status-badge.rejected,
.status-badge.cancelled,
.status-badge.unverified {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

[data-theme="dark"] .status-badge.rejected,
[data-theme="dark"] .status-badge.cancelled,
[data-theme="dark"] .status-badge.unverified {
  color: #F87171;
  background: rgba(239, 68, 68, 0.2);
}

.status-badge.sponsored {
  background: rgba(255, 212, 0, 0.2);
  color: #854D0E;
  border: 1px solid rgba(255, 212, 0, 0.4);
}

[data-theme="dark"] .status-badge.sponsored {
  color: #FDE047;
  background: rgba(255, 212, 0, 0.18);
  border-color: rgba(255, 212, 0, 0.35);
}

/* Service Category Badges */
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  border: 1px solid var(--border-light);
}

/* Pill Tabs & Filter Bars */
.dash-pill-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.pill-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pill-filter-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
}

.pill-filter-btn.active {
  background: var(--brand-green);
  color: #080D15;
  border-color: var(--brand-green);
  box-shadow: 0 2px 6px var(--brand-green-glow);
}

/* Action Buttons */
.action-btn-sm {
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  text-decoration: none;
}

.action-btn-sm:hover {
  background: var(--bg-surface);
  border-color: var(--brand-green);
}

.action-btn-sm.green {
  background: var(--brand-green);
  color: #080D15;
  border: none;
}

.action-btn-sm.green:hover {
  background: var(--brand-green-hover);
}

.action-btn-sm.red {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.action-btn-sm.red:hover {
  background: #DC2626;
  color: #FFFFFF;
}

/* Empty State Component */
.dash-empty-state {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-muted);
}

.dash-empty-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  opacity: 0.7;
}

.dash-empty-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.dash-empty-desc {
  font-size: 0.82rem;
  max-width: 360px;
  margin: 0 auto 12px;
}

/* Compact Service Cards */
.services-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.service-card-compact {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.service-card-compact:hover {
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

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

.service-card-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.service-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
}

/* Structured Settings Sections */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}

.settings-card-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-field-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.settings-field-control {
  height: 36px;
  padding: 7px 11px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.settings-field-control:focus {
  border-color: var(--brand-green);
  background: var(--bg-surface);
}

textarea.settings-field-control {
  height: auto;
  min-height: 65px;
  resize: vertical;
}

/* Single line verification bar */
.verification-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

/* Coming Soon Box */
.coming-soon-box {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

.coming-soon-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--brand-yellow-subtle);
  color: #854D0E;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

[data-theme="dark"] .coming-soon-badge {
  color: var(--brand-yellow);
  background: rgba(255, 212, 0, 0.15);
}

/* ==========================================================================
   MESSAGES & CHAT LAYOUT
   ========================================================================== */
.chat-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 540px;
  box-shadow: var(--shadow-sm);
}

.chat-threads-col {
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .chat-threads-col {
  border-right: none;
  border-left: 1px solid var(--border-light);
}

.chat-threads-header {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
}

.chat-threads-list {
  flex: 1;
  overflow-y: auto;
}

.chat-thread-item {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.chat-thread-item:hover,
.chat-thread-item.active {
  background: var(--bg-surface-alt);
}

.chat-thread-item.active {
  border-left: 3px solid var(--brand-green);
}

[dir="rtl"] .chat-thread-item.active {
  border-left: none;
  border-right: 3px solid var(--brand-green);
}

.chat-thread-meta {
  flex: 1;
  min-width: 0;
}

.chat-thread-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  justify-content: space-between;
}

.chat-thread-time {
  font-size: 0.7rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.chat-thread-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat-window-col {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-soft);
}

.chat-window-header {
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-scroll {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: #0E6B00;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

[data-theme="dark"] .chat-bubble.outgoing {
  background: var(--brand-green);
  color: #080D15;
}

.chat-bubble-time {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 3px;
  text-align: right;
}

.chat-input-bar {
  padding: 10px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-field {
  flex: 1;
  height: 38px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
}

.chat-input-field:focus {
  border-color: #10B981;
  background: var(--bg-surface);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--brand-green);
  color: #080D15;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px var(--brand-green-glow);
}

.chat-send-btn:hover {
  background: var(--brand-green-hover);
  transform: scale(1.04);
}

/* ==========================================================================
   MODAL COMPONENT
   ========================================================================== */
.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.dash-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.dash-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(0.98);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.dash-modal-backdrop.open .dash-modal-box {
  transform: translateY(0) scale(1);
}

.dash-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}

.dash-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 3px;
  line-height: 1;
}

.dash-modal-close-btn:hover {
  color: var(--text-heading);
}

.dash-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.88rem;
}

.dash-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & DRAWER
   ========================================================================== */
.dash-mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.dash-mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
}

.dash-mobile-nav-btn.active {
  color: #0E6B00;
}

[data-theme="dark"] .dash-mobile-nav-btn.active {
  color: var(--brand-green);
}

/* Service Logos in Cards & Profile */
.service-card-logo-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.service-logo-preview {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  color: var(--text-heading);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.service-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Provider Status Header Element & Dropdown */
.provider-status-badge-wrap {
  position: relative;
  display: inline-block;
}

.provider-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.28);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  outline: none;
}

.provider-status-badge:hover,
.provider-status-badge:focus-visible {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.provider-status-badge.status-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.provider-status-badge.status-active #provider-status-text {
  color: #0E6B00;
}

[data-theme="dark"] .provider-status-badge.status-active #provider-status-text {
  color: var(--brand-green);
}

.provider-status-badge.status-paused {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.3);
}

.provider-status-badge.status-paused #provider-status-text {
  color: #4B5563;
}

[data-theme="dark"] .provider-status-badge.status-paused #provider-status-text {
  color: #9CA3AF;
}

.provider-status-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 120;
  display: none;
}

[dir="rtl"] .provider-status-dropdown {
  right: auto;
  left: 0;
}

.provider-status-dropdown.open {
  display: block;
  animation: fadeInView 0.15s ease-out;
}

.provider-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.provider-status-option:hover {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
}

.provider-status-option.active {
  background: rgba(112, 255, 11, 0.1);
  color: #0E6B00;
  font-weight: 700;
}

[data-theme="dark"] .provider-status-option.active {
  color: var(--brand-green);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS: DESKTOP / TABLET / MOBILE
   ========================================================================== */

/* Tablet (768px to 1024px) - Exact 1-Row Stat Cards in Overview */
@media (min-width: 768px) and (max-width: 1024px) {
  .dash-stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  .dash-stats-grid .stat-card {
    padding: 10px 10px !important;
    min-width: 0 !important;
  }

  .dash-stats-grid .stat-card-value {
    font-size: 1.15rem !important;
    white-space: nowrap !important;
  }

  .dash-stats-grid .stat-card-label {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .dash-stats-grid .stat-card-trend {
    font-size: 0.64rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Intermediate Tablet to Mobile Sidebar Collapse */
@media (max-width: 992px) {
  .dash-sidebar {
    transform: translateX(-100%);
  }

  [dir="rtl"] .dash-sidebar {
    transform: translateX(100%);
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .dash-main-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .dash-sidebar-toggle-btn {
    display: flex;
  }

  .chat-layout-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .chat-threads-col {
    max-height: 200px;
  }
}

/* Mobile Devices (<= 768px) - Full Mobile Optimization */
@media (max-width: 768px) {
  .dashboard-app {
    overflow-x: hidden;
  }

  .dash-topbar {
    padding: 0 12px;
    height: 54px;
  }

  .dash-page-title {
    font-size: 1.05rem;
  }

  .dash-breadcrumb {
    font-size: 0.68rem;
  }

  .dash-search-bar {
    display: none;
  }

  .dash-content-body {
    padding: 12px 10px 78px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .dash-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .dash-section-heading {
    font-size: 1.15rem;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  .stat-card {
    padding: 10px 12px;
  }

  .stat-card-value {
    font-size: 1.2rem;
  }

  .stat-card-label {
    font-size: 0.66rem;
  }

  .stat-card-trend {
    font-size: 0.66rem;
  }

  .data-card {
    padding: 12px 12px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
  }

  .data-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .data-card-title {
    font-size: 0.95rem;
  }

  .data-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    margin-top: 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
  }

  .data-table {
    min-width: 520px;
    width: 100%;
  }

  .data-table th, 
  .data-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .overview-actions-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }

  .overview-action-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    font-size: 0.76rem;
    padding: 8px 6px;
    text-align: center;
  }

  .services-grid-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card-compact {
    padding: 12px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .analytics-panel {
    padding: 12px;
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .settings-card {
    padding: 12px 12px;
  }

  .service-logo-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .service-specific-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .service-tab-btn {
    flex-shrink: 0;
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  .dash-pill-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .pill-filter-btn {
    flex-shrink: 0;
    font-size: 0.74rem;
    padding: 5px 10px;
  }

  .dash-mobile-bottom-bar {
    display: flex;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .dash-topbar-left {
    gap: 8px;
  }

  .dash-page-title {
    font-size: 0.96rem;
  }

  .dash-topbar-right {
    gap: 4px;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .stat-card {
    padding: 8px 10px;
  }

  .stat-card-value {
    font-size: 1.1rem;
  }

  .overview-action-btn {
    flex: 1 1 100%;
  }

  .dash-modal-box {
    margin: 8px;
    width: calc(100% - 16px);
  }

  .dash-modal-header,
  .dash-modal-body,
  .dash-modal-footer {
    padding: 12px 14px;
  }
}

/* ==========================================================================
   TABLE CONTROLS: PAGINATION, BULK ACTIONS & EXPORT DROPDOWN
   ========================================================================== */
.data-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.table-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn {
  height: 28px;
  min-width: 28px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--brand-green);
  background: var(--bg-surface);
}

.pagination-btn.active {
  background: var(--brand-green);
  color: #080D15;
  border-color: var(--brand-green);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rows-per-page-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.rows-per-page-select {
  height: 28px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-green-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  animation: fadeInView 0.2s ease;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

[data-theme="dark"] .bulk-actions-bar {
  background: rgba(112, 255, 11, 0.12);
  border-color: rgba(112, 255, 11, 0.25);
}

.bulk-actions-bar.active {
  display: flex;
}

.bulk-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Export Dropdown Component */
.export-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.export-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 130;
  display: none;
  min-width: 130px;
  animation: fadeInView 0.15s ease-out;
}

[dir="rtl"] .export-dropdown-menu {
  right: auto;
  left: 0;
}

.export-dropdown-menu.open {
  display: block;
}

.export-dropdown-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.export-dropdown-item:hover {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
}

/* Date Range Filter Selector */
.date-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--bg-surface-alt);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.date-filter-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.date-filter-btn:hover {
  color: var(--text-heading);
}

.date-filter-btn.active {
  background: var(--bg-surface);
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}

/* Custom Range Inputs Container */
.custom-date-inputs {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  animation: fadeInView 0.2s ease;
}

.custom-date-inputs.open {
  display: flex;
}

.custom-date-input {
  height: 28px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.75rem;
  color: var(--text-main);
  outline: none;
}

/* Active Date Range Tag */
.active-date-range-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #0E6B00;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-top: 4px;
}

[data-theme="dark"] .active-date-range-badge {
  background: rgba(112, 255, 11, 0.12);
  color: var(--brand-green);
  border-color: rgba(112, 255, 11, 0.3);
}

/* Chat Attachment Button & Preview Chip */
.chat-attach-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.chat-attach-btn:hover {
  color: var(--brand-green);
  background: var(--bg-surface-alt);
}

.chat-attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.chat-attachment-chip .remove-chip-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 4px;
}

/* Chat Document Attachment Card */
.chat-attachment-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

[data-theme="dark"] .chat-attachment-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.chat-attachment-card:hover {
  background: rgba(0, 0, 0, 0.08);
}

.chat-bubble-image-preview {
  max-width: 220px;
  max-height: 160px;
  border-radius: var(--radius-xs);
  margin-top: 6px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

/* Audit Conversation Grouping */
.audit-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 10px;
  position: relative;
}

.audit-date-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-light);
  z-index: 1;
}

.audit-date-badge {
  position: relative;
  z-index: 2;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-sender-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  margin-bottom: 4px;
}

.audit-sender-badge.customer {
  background: rgba(16, 185, 129, 0.15);
  color: #0E6B00;
}

[data-theme="dark"] .audit-sender-badge.customer {
  color: var(--brand-green);
  background: rgba(112, 255, 11, 0.15);
}

.audit-sender-badge.provider {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
}

[data-theme="dark"] .audit-sender-badge.provider {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.2);
}

/* Announcement Image Upload Box */
.ann-image-upload-box {
  border: 2px dashed var(--border-light);
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ann-image-upload-box:hover {
  border-color: var(--brand-green);
  background: var(--bg-surface);
}

.ann-image-upload-box svg {
  color: var(--text-subtle);
}

.announcement-banner-img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  margin-top: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border-light);
}

