:root {
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-sidebar: #0f172a;
  --admin-sidebar-text: #94a3b8;
  --admin-sidebar-hover: #1e293b;
  --admin-sidebar-active: #0284c7;
  --admin-primary: #0284c7;
  --admin-primary-hover: #0369a1;
  --admin-text: #0f172a;
  --admin-muted: #64748b;
  --admin-border: #e2e8f0;
  --admin-radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.5;
}

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

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  width: 260px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--admin-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
  align-self: flex-start;
  overflow-y: auto;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding-bottom: 24px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.admin-brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.admin-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.admin-brand small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  padding: 16px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--admin-sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  background-color: var(--admin-sidebar-hover);
  color: #fff;
}

.sidebar-link.active {
  background-color: var(--admin-sidebar-active);
  color: #fff;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 14px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

/* Main Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 64px;
  background-color: #fff;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--admin-muted);
}

.slide-language-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--admin-border);
}

.slide-language-tab {
  padding: 10px 16px;
  border: 1px solid var(--admin-border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f8fafc;
  color: var(--admin-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.slide-language-tab.is-active {
  background: #fff;
  color: var(--admin-primary);
  box-shadow: inset 0 3px 0 var(--admin-primary);
}

.slide-language-tab:focus-visible {
  outline: 2px solid var(--admin-primary);
  outline-offset: 2px;
}

.breadcrumbs strong {
  color: var(--admin-text);
  margin-left: 6px;
}

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

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.local-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  background-color: #0284c7;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.logout-btn {
  background: none;
  border: 1px solid var(--admin-border);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--admin-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.logout-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Page Content */
.page-content {
  padding: 32px;
  flex: 1;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.welcome-row .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--admin-primary);
  margin-bottom: 4px;
}

.welcome-row h1 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.muted {
  color: var(--admin-muted);
  font-size: 14px;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  padding: 22px;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.stat-icon {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}

.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }

.stat-label {
  font-size: 13px;
  color: var(--admin-muted);
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

/* Panels */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.panel {
  background: #fff;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.panel-heading h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}

.stat-card .muted a {
  color: var(--admin-primary);
  font-weight: 600;
  text-decoration: none;
}

.dashboard-overview .stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-chart-panel {
  min-width: 0;
  padding: 22px;
}

.dashboard-chart-wide {
  grid-column: span 2;
}

.dashboard-chart-panel .panel-heading {
  gap: 16px;
}

.dashboard-chart-panel .panel-heading .muted {
  margin-top: 4px;
}

.monthly-chart-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  min-height: 220px;
  padding: 16px 8px 0;
  border-bottom: 1px solid var(--admin-border);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 53px, #f1f5f9 54px, transparent 55px);
}

.monthly-chart-column {
  display: grid;
  grid-template-rows: 20px minmax(120px, 1fr) 28px;
  justify-items: center;
  align-items: end;
  gap: 6px;
  height: 220px;
  color: var(--admin-muted);
  font-size: 12px;
}

.monthly-chart-column > strong {
  color: var(--admin-text);
  font-size: 12px;
}

.monthly-chart-track {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: stretch;
  width: min(44px, 70%);
  height: 100%;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}

.chart-segment {
  display: block;
  min-height: 0;
  transition: height 0.2s ease;
}

.feedback-segment,
.feedback-swatch {
  background: #0284c7;
}

.question-segment,
.question-swatch {
  background: #8b5cf6;
}

.monthly-chart-label {
  align-self: center;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: var(--admin-muted);
  font-size: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.status-chart-row + .status-chart-row {
  margin-top: 24px;
}

.status-chart-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.status-chart-heading span {
  color: var(--admin-muted);
}

.status-chart-track,
.horizontal-chart-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.status-chart-track {
  display: flex;
}

.status-segment {
  display: block;
  height: 100%;
}

.status-new,
.status-new-swatch {
  background: #f59e0b;
}

.status-reviewed,
.status-reviewed-swatch {
  background: #0284c7;
}

.status-resolved,
.status-resolved-swatch {
  background: #16a34a;
}

.chart-legend-wrap {
  flex-wrap: wrap;
  gap: 10px 16px;
}

.horizontal-chart {
  display: grid;
  gap: 18px;
}

.horizontal-chart-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) minmax(80px, 2fr) 32px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.horizontal-chart-row > span {
  overflow: hidden;
  color: var(--admin-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-chart-row > strong {
  text-align: right;
}

.horizontal-chart-track i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.content-chart .horizontal-chart-row {
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 2.5fr) 32px 60px;
}

.content-chart-track i {
  background: linear-gradient(90deg, #0284c7, #14b8a6);
}

.content-chart .horizontal-chart-row small {
  color: var(--admin-muted);
  text-align: right;
}

.chart-empty {
  padding: 18px 0;
  color: var(--admin-muted);
  font-size: 13px;
}

.dashboard-shell {
  --admin-bg: #f3f6fb;
  --admin-sidebar: #101a31;
  --admin-sidebar-hover: #1d2b48;
  --admin-sidebar-active: #1769aa;
  --admin-primary: #0876bd;
  --admin-primary-hover: #075f9a;
  --admin-radius: 16px;
  background:
    radial-gradient(ellipse at 86% 0%, rgba(203, 229, 255, 0.32), transparent 34rem),
    var(--admin-bg);
}

.dashboard-shell .sidebar {
  background: linear-gradient(180deg, #121d35 0%, #0c1528 100%);
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.08);
}

.dashboard-shell .admin-brand {
  margin-bottom: 24px;
  padding: 4px 8px 22px;
}

.dashboard-shell .admin-brand-logo {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.dashboard-shell .sidebar-link {
  min-height: 42px;
  border-radius: 10px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dashboard-shell .sidebar-link:hover {
  transform: translateX(2px);
}

.dashboard-shell .sidebar-link.active {
  background: linear-gradient(100deg, #0876bd, #1596cf);
  box-shadow: 0 7px 18px rgba(2, 132, 199, 0.22);
}

.dashboard-shell .nav-label {
  padding-top: 21px;
  color: #8090aa;
  font-size: 10px;
  letter-spacing: 1.15px;
}

.dashboard-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  border-color: rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(14px);
}

.dashboard-shell .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-shell .breadcrumbs strong {
  margin-left: 0;
}

.dashboard-shell .local-badge {
  border-color: #c9efda;
  background: #f0fbf5;
}

.dashboard-shell .admin-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #0876bd, #35a9d8);
  box-shadow: 0 4px 10px rgba(8, 118, 189, 0.2);
}

.dashboard-shell .page-content {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 42px);
}

.dashboard-shell .welcome-row {
  position: relative;
  isolation: isolate;
  min-height: 178px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 30px 34px;
  border: 1px solid rgba(62, 139, 195, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(91, 194, 235, 0.28), transparent 17rem),
    linear-gradient(112deg, #10243e 0%, #123a5e 55%, #126d9d 100%);
  box-shadow: 0 18px 38px rgba(17, 56, 88, 0.17);
}

.dashboard-shell .welcome-row::after {
  position: absolute;
  z-index: -1;
  right: 7%;
  bottom: -132px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 58px rgba(255, 255, 255, 0.025);
  content: "";
}

.dashboard-shell .welcome-row > div {
  max-width: 700px;
}

.dashboard-shell .welcome-row .eyebrow {
  margin-bottom: 9px;
  color: #85d8f6;
  letter-spacing: 1.3px;
}

.dashboard-shell .welcome-row h1 {
  margin-bottom: 7px;
  color: #fff;
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -0.8px;
}

.dashboard-shell .welcome-row .muted {
  color: rgba(235, 246, 255, 0.77);
}

.dashboard-shell .welcome-row .button-primary {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 11px;
  background: #fff;
  color: #123a5e;
  box-shadow: 0 8px 20px rgba(7, 25, 45, 0.16);
}

.dashboard-shell .welcome-row .button-primary:hover {
  background: #eaf7ff;
}

.dashboard-shell .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-shell .stat-card {
  position: relative;
  min-width: 0;
  min-height: 176px;
  overflow: hidden;
  padding: 20px 21px;
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-shell .stat-card:hover {
  transform: translateY(-3px);
  border-color: #c8dcec;
  box-shadow: 0 13px 28px rgba(15, 23, 42, 0.09);
}

.dashboard-shell .stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  font-size: 16px;
}

.dashboard-shell .stat-icon.blue { background: #e4f2ff; color: #0876bd; }
.dashboard-shell .stat-icon.green { background: #e5f8ee; color: #15945d; }
.dashboard-shell .stat-icon.orange { background: #fff2df; color: #d97706; }
.dashboard-shell .stat-icon.purple { background: #f0eaff; color: #7c54c8; }

.dashboard-shell .stat-label {
  margin: 13px 0 3px;
  color: #5f7086;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-shell .stat-value {
  margin-bottom: 3px;
  color: #12243b;
  font-size: 30px;
  line-height: 1.15;
}

.dashboard-shell .stat-card .muted {
  font-size: 12px;
}

.dashboard-shell .stat-card .muted a {
  color: #0876bd;
}

.dashboard-shell .dashboard-chart-grid {
  gap: 16px;
}

.dashboard-shell .dashboard-chart-panel {
  overflow: hidden;
  padding: 23px 24px;
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 22px rgba(15, 23, 42, 0.045);
}

.dashboard-shell .dashboard-chart-panel .panel-heading {
  min-height: 58px;
  align-items: flex-start;
  margin-bottom: 19px;
  border-bottom-color: #edf1f6;
}

.dashboard-shell .dashboard-chart-panel .panel-heading h2 {
  color: #1b2c43;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.15px;
}

.dashboard-shell .dashboard-chart-panel .panel-heading .muted {
  color: #8190a3;
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-shell .monthly-chart-grid {
  border-color: #e8edf3;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 53px, #edf2f7 54px, transparent 55px);
}

.dashboard-shell .monthly-chart-track {
  width: min(38px, 68%);
  border-radius: 8px 8px 3px 3px;
  background: #f0f4f8;
}

.dashboard-shell .feedback-segment {
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #27a4dc, #0876bd);
}

.dashboard-shell .question-segment {
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #a486ee, #7955cc);
}

.dashboard-shell .chart-legend {
  color: #64758a;
}

.dashboard-shell .status-chart-track,
.dashboard-shell .horizontal-chart-track {
  height: 10px;
  background: #edf2f7;
}

.dashboard-shell .status-chart-track {
  height: 12px;
}

.dashboard-shell .horizontal-chart-track i {
  background: linear-gradient(90deg, #0876bd, #44b3db);
}

.dashboard-shell .content-chart-track i {
  background: linear-gradient(90deg, #10a477, #54c7a6);
}

.dashboard-shell .horizontal-chart {
  gap: 20px;
}

.dashboard-shell .horizontal-chart-row > span {
  color: #586b81;
  font-weight: 500;
}

.dashboard-shell .horizontal-chart-row > strong {
  color: #24364e;
  font-size: 12px;
}

.dashboard-shell .content-chart .horizontal-chart-row small {
  color: #8593a6;
  font-size: 11px;
}

.dashboard-shell .button-outline {
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  color: #36516d;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dashboard-shell .button-outline:hover {
  border-color: #b6d2e7;
  background: #f3f9fd;
}

.dashboard-shell .admin-main {
  min-height: 100vh;
}

.dashboard-shell .topbar-right {
  min-width: 0;
  gap: 12px;
}

.dashboard-shell .breadcrumbs {
  min-width: 0;
}

.dashboard-shell .page-content > .welcome-row {
  min-height: 154px;
}

.dashboard-shell .panel {
  border-color: rgba(220, 228, 238, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 7px 22px rgba(15, 23, 42, 0.045);
}

.dashboard-shell .panel-heading {
  gap: 16px;
  border-bottom-color: #edf1f6;
}

.dashboard-shell .panel-heading h2 {
  color: #1b2c43;
  font-size: 17px;
  font-weight: 700;
}

.dashboard-shell .panel-heading .muted {
  margin-top: 4px;
  color: #8190a3;
  font-size: 12px;
}

.dashboard-shell .table-wrap {
  border-radius: 10px;
}

.dashboard-shell table th {
  background: #f7f9fc;
  color: #708197;
  font-size: 10px;
  letter-spacing: 0.55px;
  white-space: nowrap;
}

.dashboard-shell table td {
  border-bottom-color: #edf1f6;
}

.dashboard-shell table tbody tr {
  transition: background-color 0.15s ease;
}

.dashboard-shell table tbody tr:hover {
  background: #f8fbfe;
}

.dashboard-shell .button {
  border-radius: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dashboard-shell .button-primary {
  background: linear-gradient(110deg, #0876bd, #1596cf);
  box-shadow: 0 5px 12px rgba(8, 118, 189, 0.14);
}

.dashboard-shell .button-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(110deg, #075f9a, #0876bd);
  box-shadow: 0 8px 16px rgba(8, 118, 189, 0.2);
}

.dashboard-shell .button-outline {
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  color: #36516d;
}

.dashboard-shell .form-control,
.dashboard-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dashboard-shell select,
.dashboard-shell textarea {
  border-color: #dce5ef;
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-shell .form-control:focus,
.dashboard-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.dashboard-shell select:focus,
.dashboard-shell textarea:focus {
  border-color: #64a9d2;
  box-shadow: 0 0 0 3px rgba(8, 118, 189, 0.12);
  outline: none;
}

.dashboard-shell .form-label {
  color: #34475f;
  font-size: 13px;
}

.dashboard-shell .form-hint {
  color: #8190a3;
}

.dashboard-shell .alert-error,
.dashboard-shell .alert-success {
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.dashboard-shell .status-badge,
.dashboard-shell .status-pill {
  border-radius: 999px;
}

.dashboard-shell .btn-action {
  border-radius: 8px;
}

.dashboard-shell .btn-edit,
.dashboard-shell .btn-view {
  border-color: #dce5ef;
  background: #f8fafc;
  color: #36516d;
}

.dashboard-shell .btn-edit:hover,
.dashboard-shell .btn-view:hover {
  background: #edf6fc;
  color: #075f9a;
}

.dashboard-shell .btn-delete {
  border-color: #fecaca;
  background: #fff5f5;
}

.dashboard-shell .settings-grid-2col,
.dashboard-shell .form-grid-2col {
  gap: 18px;
}

.dashboard-shell .stat-mini-card {
  border-color: rgba(220, 228, 238, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.045);
}

.dashboard-shell .stat-mini-label {
  color: #64758a;
}

.dashboard-shell .stat-mini-val {
  color: #172a42;
}

.feedback-overview .alert-success {
  border: 1px solid #b9ead0;
  border-radius: 12px;
  background: #effbf4;
  box-shadow: 0 5px 16px rgba(21, 148, 93, 0.06);
}

.dashboard-shell .feedback-welcome {
  min-height: 166px;
}

.dashboard-shell .feedback-welcome .button-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feedback-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.feedback-stat-grid .stat-mini-card {
  position: relative;
  min-height: 126px;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feedback-stat-grid .stat-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.feedback-stat-grid .stat-mini-label {
  color: #64758a;
  font-size: 11px;
  letter-spacing: 0.65px;
}

.feedback-stat-grid .stat-mini-val {
  color: #172a42;
  font-size: 30px;
  line-height: 1.15;
}

.feedback-stat-grid .feedback-stat-new {
  border-top: 3px solid #3184d8;
}

.feedback-stat-grid .feedback-stat-reviewed {
  border-top: 3px solid #e8aa2e;
}

.feedback-stat-grid .feedback-stat-resolved {
  border-top: 3px solid #22a36a;
}

.feedback-overview .filter-bar {
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px;
  border-color: rgba(220, 228, 238, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
}

.feedback-overview .filter-input,
.feedback-overview .filter-select {
  min-height: 42px;
  border-color: #dce5ef;
  border-radius: 9px;
  background: #fbfdff;
  color: #34475f;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-overview .filter-input:focus,
.feedback-overview .filter-select:focus {
  border-color: #64a9d2;
  box-shadow: 0 0 0 3px rgba(8, 118, 189, 0.12);
}

.feedback-overview .filter-btn,
.feedback-overview .reset-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.feedback-overview .reset-btn {
  border-color: #dce5ef;
  background: #fff;
}

.feedback-overview .reset-btn:hover {
  border-color: #b6d2e7;
  background: #f3f9fd;
}

.feedback-reports-panel {
  overflow: hidden;
  padding: 0;
  border-color: rgba(220, 228, 238, 0.9);
  border-radius: 17px;
  box-shadow: 0 7px 22px rgba(15, 23, 42, 0.045);
}

.feedback-reports-panel .panel-heading {
  margin: 0;
  padding: 20px 22px 16px;
  border-bottom-color: #edf1f6;
}

.feedback-reports-panel .panel-heading h2 {
  color: #1b2c43;
  font-size: 16px;
}

.feedback-reports-panel .panel-heading .muted {
  margin-top: 4px;
  color: #8190a3;
  font-size: 12px;
}

.feedback-reports-panel > div[style*="overflow-x"] {
  overflow-x: auto;
}

.feedback-overview .data-table {
  min-width: 1050px;
}

.feedback-overview .data-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  background: #f7f9fc;
  color: #708197;
  font-size: 10px;
  letter-spacing: 0.55px;
  white-space: nowrap;
}

.feedback-overview .data-table td {
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom-color: #edf1f6;
  vertical-align: middle;
}

.feedback-overview .data-table tbody tr {
  transition: background-color 0.15s ease;
}

.feedback-overview .data-table tbody tr:hover {
  background: #f8fbfe;
}

.feedback-overview .cat-badge,
.feedback-overview .status-pill {
  border-radius: 999px;
}

.feedback-overview .btn-view {
  border-color: #dce5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.feedback-overview .btn-delete {
  border-radius: 8px;
}

.feedback-reports-panel > div[style*="padding: 16px"] {
  border-top-color: #edf1f6 !important;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--admin-muted);
  border-bottom: 1px solid var(--admin-border);
  font-weight: 600;
}

td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.active,
.status-badge.published,
.status-badge.open {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.draft,
.status-badge.pending {
  background: #fef9c3;
  color: #854d0e;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.button-primary {
  background: var(--admin-primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--admin-primary-hover);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-shell .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-shell .welcome-row {
    gap: 20px;
  }
  .dashboard-shell .feedback-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-shell .settings-grid-2col {
    grid-template-columns: 1fr;
  }
  .dashboard-shell .dashboard-chart-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-shell .dashboard-chart-wide {
    grid-column: auto;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    bottom: 0;
    z-index: 999;
    transition: left 0.2s ease;
  }
  .sidebar.is-open {
    left: 0;
  }
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 760px) {
  .dashboard-shell .topbar {
    gap: 10px;
    padding: 0 18px;
  }
  .dashboard-shell .breadcrumbs {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
  }
  .dashboard-shell .breadcrumbs span {
    display: none;
  }
  .dashboard-shell .breadcrumbs strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-shell .topbar-right {
    flex: 0 1 auto;
    gap: 8px;
  }
  .dashboard-shell .topbar-right .local-badge {
    display: none;
  }
  .dashboard-shell .topbar-right .dashboard-language-select {
    width: 82px;
    min-width: 0;
    padding: 7px 4px;
    font-size: 12px;
  }
  .dashboard-shell .topbar-right .admin-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }
  .dashboard-shell .topbar-right .logout-btn {
    padding: 6px 8px;
    white-space: nowrap;
  }
  .dashboard-shell .welcome-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-shell .welcome-row > a {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .page-content {
    padding: 20px 14px;
  }
  .dashboard-shell .stat-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-shell .feedback-stat-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    gap: 8px;
    padding: 0 14px;
  }
  .topbar-right {
    min-width: 0;
    gap: 8px;
  }
  .topbar-right .local-badge {
    display: none;
  }
  .dashboard-language-select {
    width: 78px;
    min-width: 0;
    padding: 7px 4px;
  }
  .topbar-right .admin-avatar {
    flex: 0 0 32px;
  }
  .topbar-right .logout-btn {
    padding: 6px 8px;
    white-space: nowrap;
  }
  .breadcrumbs {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .dashboard-shell .welcome-row {
    padding: 24px 21px;
  }
  .dashboard-shell .welcome-row h1 {
    font-size: 27px;
  }
  .dashboard-chart-panel {
    padding: 16px;
  }
  .monthly-chart-grid {
    gap: 5px;
    padding-right: 0;
    padding-left: 0;
  }
  .content-chart .horizontal-chart-row {
    grid-template-columns: minmax(78px, 1fr) minmax(60px, 1.5fr) 24px 48px;
    gap: 7px;
    font-size: 11px;
  }
  .horizontal-chart-row {
    grid-template-columns: minmax(78px, 1fr) minmax(60px, 1.5fr) 24px;
    gap: 7px;
    font-size: 11px;
  }
}
.dashboard-language-select {
  border: 1px solid var(--admin-border, #cbd5e1);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--admin-text, #0f172a);
  background: #fff;
  font: inherit;
}

.dashboard-language-fixed {
  position: fixed;
  z-index: 1000;
  top: 16px;
  right: 16px;
}
