/* ========================================================
   MODERN DARK DASHBOARD STYLESHEET
   Matching reference UI design: core PHP + Bootstrap 5
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Dancing+Script:wght@600;700&display=swap');

:root {
  --bg-main: #131417;
  --bg-sidebar: #0f1013;
  --bg-card: #1c1e22;
  --bg-card-hover: #212429;
  --bg-pill: #25282f;
  --bg-input: #1f2127;

  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #ffffff;
  --text-secondary: #9a9ea7;
  --text-muted: #6b7280;

  --accent-cyan: #05f2b2;
  --accent-cyan-dark: #00d2c4;
  --accent-yellow: #ffd338;
  --accent-yellow-dark: #f5b700;
  --accent-lilac: #dfa8e4;
  --accent-lilac-dark: #cf84e0;

  --chart-purple: #8c52ff;
  --chart-teal: #00e5a3;
  --chart-pink: #f43f77;
  --chart-orange: #ff7a3d;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 0.925rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}
::-webkit-scrollbar-thumb {
  background: #2f323a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #414550;
}

/* ========================================================
   LAYOUT: SIDEBAR + MAIN CONTENT
   ======================================================== */

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

/* SLIM LEFT SIDEBAR */
.app-sidebar {
  width: 72px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.sidebar-logo:hover {
  transform: scale(1.08) rotate(15deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.sidebar-nav-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d828d;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.sidebar-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-item.active {
  color: #ffffff;
  background: #252830;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-nav-item .badge-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 1px solid var(--bg-sidebar);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-sidebar-plus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #242730;
  color: #9a9ea7;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sidebar-plus:hover {
  background: var(--chart-purple);
  color: #fff;
  border-color: transparent;
  transform: rotate(90deg);
}

/* MAIN CONTENT CONTAINER */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 24px 30px;
  overflow-y: auto;
}

/* ========================================================
   TOP HEADER BAR
   ======================================================== */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}

/* Search Input */
.search-container {
  position: relative;
  width: 280px;
}

.search-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 18px 10px 42px;
  color: #fff;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
  color: #606470;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #747986;
  font-size: 0.95rem;
}

/* Center Script "Dashboard" */
.cursive-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.5px;
  user-select: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* User Profile Pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 12px 4px 8px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}

.user-pill:hover {
  background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.user-info {
  text-align: right;
  line-height: 1.25;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.user-email {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.user-caret {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ========================================================
   GREETING HEADER
   ======================================================== */

.greeting-row {
  margin-bottom: 20px;
}

.greeting-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* ========================================================
   TOP CARDS ROW (3 Ticket Notched Gradient Cards)
   ======================================================== */

.top-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.ticket-card {
  border-radius: 20px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ticket-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Card 1: Mint Cyan */
.ticket-card.card-cyan {
  background: linear-gradient(135deg, #05f2b2 0%, #00d2c4 100%);
  color: #053b34;
}

/* Card 2: Golden Yellow */
.ticket-card.card-yellow {
  background: linear-gradient(135deg, #ffd338 0%, #f5b700 100%);
  color: #422b00;
}

/* Card 3: Soft Lilac Pink */
.ticket-card.card-lilac {
  background: linear-gradient(135deg, #dfa8e4 0%, #d18ce0 100%);
  color: #3b1046;
}

/* Card Content Styling */
.ticket-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.ticket-value {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.ticket-link {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s, transform 0.2s;
  background: rgba(0, 0, 0, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.ticket-link:hover {
  opacity: 1;
  transform: translateX(3px);
}

.ticket-card.card-cyan .ticket-link {
  color: #053b34;
}
.ticket-card.card-yellow .ticket-link {
  color: #422b00;
}
.ticket-card.card-lilac .ticket-link {
  color: #3b1046;
}

/* 3D Image Artwork in Cards */
.ticket-art {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.ticket-card:hover .ticket-art {
  transform: scale(1.05) rotate(2deg);
}

/* Card connector tab styling */
.ticket-notch-left, .ticket-notch-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 24px;
  background-color: var(--bg-main);
  z-index: 5;
}
.ticket-notch-left {
  left: -6px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.ticket-notch-right {
  right: -6px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* ========================================================
   DASHBOARD GRID: MAIN LEFT (72%) + RIGHT PANEL (28%)
   ======================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* GENERAL CARD STYLING */
.dash-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

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

.dash-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Pill Buttons & Dropdowns in Headers */
.btn-pill-dark {
  background-color: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: #ced2dc;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-pill-dark:hover {
  background-color: #2e323b;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-pill-yellow {
  background-color: var(--accent-yellow);
  color: #2b1f00;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-pill-yellow:hover {
  background-color: #f5b700;
  color: #1a1200;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 211, 56, 0.3);
}

/* ========================================================
   MIDDLE ROW: SALES CHART + MINI CALENDAR
   ======================================================== */

.middle-row {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 20px;
}

/* SALES CARD */
.sales-chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

.sales-presenter-art {
  position: absolute;
  right: 10px;
  bottom: 0px;
  height: 180px;
  width: auto;
  border-radius: 12px;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  z-index: 2;
  transition: transform 0.3s ease;
}

.dash-card:hover .sales-presenter-art {
  transform: translateY(-4px) scale(1.02);
}

/* Custom Chart Legend */
.chart-custom-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-line-toys {
  width: 24px;
  height: 3px;
  background-color: var(--chart-purple);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--chart-purple);
}

.legend-line-care {
  width: 24px;
  height: 3px;
  background-color: var(--chart-teal);
  border-radius: 2px;
  border-top: 2px dashed var(--chart-teal);
  box-shadow: 0 0 8px var(--chart-teal);
}

/* CALENDAR CARD */
.calendar-link-view {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.calendar-link-view:hover {
  color: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-top: 8px;
}

.cal-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.cal-day {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #abb0bc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.cal-day:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cal-day.dimmed {
  color: #4b505c;
}

/* Active Highlight Range (3 to 7 Feb) */
.cal-day.active-range {
  background-color: var(--accent-yellow);
  color: #1a1200;
  font-weight: 700;
  border-radius: 0;
}

.cal-day.active-range.range-start {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

.cal-day.active-range.range-end {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* ========================================================
   BOTTOM ROW: WEEKLY SALES + CUSTOMER DETAILS
   ======================================================== */

.bottom-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
}

/* WEEKLY SALES 3D PILL BARS */
.weekly-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 180px;
  padding: 10px 4px 0;
  position: relative;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  justify-content: flex-end;
  flex: 1;
  position: relative;
}

.bar-pill {
  width: 22px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bar-pill:hover {
  transform: scaleY(1.06);
  filter: brightness(1.15);
}

/* Specific Pill Colors */
.bar-pill.bar-mon { background: linear-gradient(180deg, #ff9566 0%, #ff6b35 100%); }
.bar-pill.bar-tue { background: linear-gradient(180deg, #ff6699 0%, #e62e6b 100%); }
.bar-pill.bar-wed { background: linear-gradient(180deg, #ffd338 0%, #f5a623 100%); }
.bar-pill.bar-thu { background: linear-gradient(180deg, #00f2ad 0%, #00b87c 100%); }
.bar-pill.bar-fri { background: linear-gradient(180deg, #ff6b6b 0%, #e63946 100%); }
.bar-pill.bar-sat { background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%); }

.bar-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Floating Tooltip Pill ($10k on Thursday) */
.bar-tooltip-pill {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2b2e35;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bar-tooltip-pill::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #2b2e35 transparent transparent transparent;
}

/* CUSTOMER DETAILS TABLE */
.customer-table-container {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.custom-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  text-transform: capitalize;
  border: none;
}

.custom-table td {
  padding: 12px 14px;
  font-size: 0.82rem;
  background-color: #1f2227;
  border: none;
  vertical-align: middle;
  transition: background 0.2s;
}

.custom-table tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.custom-table tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.custom-table tr:hover td {
  background-color: #262a32;
}

.cust-id {
  color: var(--text-secondary);
  font-weight: 500;
}

.cust-name {
  color: #ffffff;
  font-weight: 600;
}

.cust-date {
  color: var(--text-secondary);
}

.cust-amount {
  color: #ffffff;
  font-weight: 600;
}

/* Status Badges */
.badge-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-status.shipped {
  color: #ff9800;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.badge-status.delivered {
  color: #00e5a3;
  background: rgba(0, 229, 163, 0.12);
  border: 1px solid rgba(0, 229, 163, 0.25);
}

.badge-status.paid {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-status.pending {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.table-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.table-action-btn:hover {
  color: #fff;
}

/* ========================================================
   RIGHT PANEL / COLUMN
   ======================================================== */

/* Brand Card Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Donut Chart Container & Legend */
.donut-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}

.donut-chart-box {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}

.donut-badge-tooltip {
  position: absolute;
  top: 12px;
  right: -6px;
  background-color: #2b2e35;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #abb0bc;
}

.legend-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.platform-caption {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

/* Date Range Selector Pill */
.date-range-pill {
  background-color: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: #d1d5db;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.date-range-pill:hover {
  background-color: #2d313a;
}

/* Metrics List Rows */
.metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.metric-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-metric-green {
  color: #00e5a3;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Lower Visitor Cards */
.visitor-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visitor-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.visitor-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

/* Progress Bars with Glowing Gradients */
.visitor-bar-track {
  width: 100%;
  height: 6px;
  background-color: #242730;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.visitor-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.visitor-bar-fill.fill-online {
  background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.visitor-bar-fill.fill-offline {
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

/* ========================================================
   MODALS & TOAST NOTIFICATIONS
   ======================================================== */

.modal-content.dark-modal {
  background-color: #1e2127;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dark-modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 18px 24px;
}

.dark-modal .modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
}

.dark-modal .form-control, .dark-modal .form-select {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.dark-modal .form-control:focus, .dark-modal .form-select:focus {
  border-color: var(--chart-purple);
  box-shadow: 0 0 0 0.2rem rgba(140, 82, 255, 0.25);
  background-color: #242730;
  color: #fff;
}

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

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.toast.toast-dark {
  background-color: #21252d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ========================================================
   RESPONSIVE QUERIES
   ======================================================== */

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .top-cards-row {
    grid-template-columns: 1fr;
  }
  .middle-row {
    grid-template-columns: 1fr;
  }
  .bottom-row {
    grid-template-columns: 1fr;
  }
  .right-column {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    width: 60px;
  }
  .search-container {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .app-wrapper {
    flex-direction: column;
  }
  .app-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 16px;
    position: relative;
  }
  .sidebar-nav {
    flex-direction: row;
    width: auto;
  }
  .sidebar-bottom {
    margin-top: 0;
    flex-direction: row;
  }
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-container {
    width: 100%;
  }
}
