.dashboard-container {
  width: min(1500px, 100%);
  min-height: 70vh;
  /* background: rgba(255, 255, 255, 0.12); */
  /* border: 1px solid var(--border_muted); */
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  color: var(--app_text, var(--text_black));
}

/* Header */
.dash-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dash-header h1 {
  font-size: 1.5rem;
  color: var(--text_white);
  margin: 0;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card-wrap {
  display: flex;
  justify-content: space-between;
  /* margin-bottom: 24px; */
  gap: 16px;
  /* background-color: #667eea; */
}

.stat-card {
  background: var(--background_white);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.stat-title {
  font-size: 0.5rem;
  color: var(--text_muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text_color);
}

/* Table Controls */
.table-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.table-controls input,
.table-controls select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.table-controls input {
  flex: 1;
}

/* Table Styling */
.table-wrapper {
  /* background: var(--background_white); */
  border-radius: 12px;
  /* border: 1px solid var(--border); */
  overflow-x: auto;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.sessions-table tr {
  border-radius: 12px;
  margin: 2px 0;
  background: var(--background_white);
}

.sessions-table tr.session-row:nth-child(even) {
  background: var(--background_cream);
}

.sessions-table thead {
  border-bottom: var(--border);
}

.sessions-table th {
  /* background: var(--background_white); */
  padding: 14px 16px;
  color: var(--text_muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.sessions-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}

.sessions-table th:nth-child(6),
.sessions-table td:nth-child(6) {
  display: none;
}

/* Badges & Buttons */
.plate-badge {
  /* background: #fef08a; */
  color: #667eea;
  /* color: #092e74; */
  padding: 4px 10px;
  border-radius: 6px;
  border: #667eea solid 2px;
  font-family: monospace;
  font-size: 1.2rem;
  width: 100%;
  text-align: center;

}

.status-badge-desh {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
}

.status-active {
  background: var(--background_red);
  color: var(--text_white);
}

.status-completed {
  background: var(--background_green);
  color: var(--text_white);
}

.status-badge-desh.status-active,
.status-badge-desh.status-open,
.status-badge-desh.status-in-progress {
  background: rgba(219, 70, 78, 0.12);
  color: var(--text_red, var(--background_red));
  border-color: rgba(219, 70, 78, 0.28);
}

.status-badge-desh.status-completed,
.status-badge-desh.status-closed,
.status-badge-desh.status-paid {
  background: rgba(92, 212, 152, 0.12);
  color: var(--text_green, var(--background_green));
  border-color: rgba(92, 212, 152, 0.28);
}

.btn-pay {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* background: var(--background_green); */
  color: var(--text_white);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-pay:hover {
  opacity: 0.9;
}

.paid-check {
  color: var(--background_green);
  font-weight: 700;
}

.session-row em {
  color: var(--text_orange);
  font-weight: 800;
}

.session-row p {
  max-width: 120px;
  overflow: hidden;
}

.sessions-table tr.session-row {
  cursor: pointer;
  transition: 0.5s ease;
}

.sessions-table tr.session-row:hover {
  filter: brightness();
  /* border: var(--border); */
  background: var(--background_white_trans);
}

.payment_method {
  max-width: 150px;
}

.pagination-container {
  width: 100%;

  padding: 15px;
}

.pagination-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-page {
  border: 1px solid var(--background_white);
}

@media (max-width: 768px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dash-header h1 {
    font-size: 1.3rem;
  }

  .table-controls {
    flex-direction: column;
  }

  .table-controls input,
  .table-controls select {
    width: 100%;
  }

  .sessions-table {
    table-layout: fixed;
    width: 100%;
  }

  .sessions-table th,
  .sessions-table td {
    padding: 10px 8px;
    font-size: 0.75rem;
    word-break: break-word;
  }

  .sessions-table th:nth-child(1),
  .sessions-table td:nth-child(1),
  .sessions-table th:nth-child(3),
  .sessions-table td:nth-child(3),
  .sessions-table th:nth-child(4),
  .sessions-table td:nth-child(4),
  /* .sessions-table th:nth-child(5), */
  /* .sessions-table td:nth-child(5), */
  .sessions-table th:nth-child(7),
  .sessions-table td:nth-child(7),
  .sessions-table th:nth-child(8),
  .sessions-table td:nth-child(8),
  .sessions-table th:nth-child(9),
  .sessions-table td:nth-child(9) {
    display: none;
  }

  .sessions-table th:nth-child(8),
  .sessions-table td:nth-child(8) {
    display: table-cell;
  }

  .sessions-table th:nth-child(2),
  .sessions-table td:nth-child(2) {
    width: 24%;
  }

  .sessions-table th:nth-child(5),
  .sessions-table td:nth-child(5) {
    width: 18%;
  }

  .sessions-table th:nth-child(6),
  .sessions-table td:nth-child(6) {
    width: 18%;
  }

  .sessions-table th:nth-child(8),
  .sessions-table td:nth-child(8) {
    width: 22%;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .status-badge-desh {
    padding: 4px 10px;

    /* padding: 10px; */
  }
}

@media (max-width: 560px) {
  .dashboard-container {
    padding: 20px 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-title {
    font-size: 0.7rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .table-wrapper {
    border-radius: 10px;
  }

  .sessions-table {
    min-width: 0;
  }

  .plate-badge {
    display: inline-block;
    min-width: 90px;
    text-align: center;
  }

  .btn-pay {
    width: 100%;
    padding: 8px 10px;
  }
}