@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

:root {
  color-scheme: dark;
  font-family: 'General Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  --bg: #1a1a1a;
  --surface: #222222;
  --surface-2: #2a2a2a;
  --surface-3: #303030;
  --border: #2a2a2a;
  --border-strong: #333333;
  --primary: #e8822a;
  --primary-soft: rgba(232, 130, 42, 0.15);
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --text: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --text-faint: #666666;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --chart-bar-max-height: 12rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'General Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  min-width: 320px;
}

body::before {
  content: none;
}

body :where(*) {
  letter-spacing: 0;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: var(--radius-pill);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

@keyframes shimmer {
  100% {
    background-position: 200% 0;
  }
}

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

.skeleton {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: var(--surface-2) !important;
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.mono-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.92em;
}

.app-message {
  min-height: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.app-message-success {
  color: var(--success);
}

.app-message-error {
  color: var(--danger);
}

.input-field {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid #3a3a3a;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 14px;
  caret-color: var(--primary);
  outline: none;
  transition: border-color 200ms ease-in-out, background 200ms ease-in-out;
}

.input-field::placeholder {
  color: #777777;
  opacity: 1;
}

.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  caret-color: var(--primary);
}

.input-field:hover {
  background: #2d2d2d;
}

.input-field:focus {
  border-color: var(--primary);
}

.input-field[aria-invalid='true'],
.input-field.input-error {
  border-color: var(--danger);
}

.input-field.input-success {
  border-color: var(--success);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.action-button {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 200ms ease-in-out, border-color 200ms ease-in-out, color 200ms ease-in-out;
}

.btn-primary {
  background: var(--primary);
  color: #111111;
  padding: 0 14px;
}

.btn-primary:hover {
  background: #f39a44;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: #3a3a3a;
  color: var(--text-soft);
  padding: 0 12px;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0 10px;
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.page-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  width: 224px;
  min-width: 224px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  background: var(--surface);
  border-right: 1px solid var(--border-strong);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar__brand::before,
.sidebar__brand-icon {
  content: '';
  width: 32px;
  height: 32px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent url('/static/assets/icone%20velox.png') center / contain no-repeat;
  color: #111111;
}

.sidebar__brand::before {
  background-color: transparent;
}

.sidebar__brand-icon {
  display: none;
}

.sidebar__brand-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand-subtitle {
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 0;
  margin: 0;
}

.sidebar__nav::before {
  content: 'MAIN MENU';
  display: block;
  padding: 0 10px 6px;
  color: var(--text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.sidebar-item {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 200ms ease-in-out, color 200ms ease-in-out;
}

.sidebar-item::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: currentColor;
  opacity: 0.45;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-item-active,
.sidebar-item-active:hover,
.sidebar-item-active:nth-child(even) {
  background: var(--primary-soft);
  color: var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #1f1f1f;
}

.sidebar-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
}

.sidebar-avatar-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.sidebar-avatar-info span {
  color: var(--text-faint);
  font-size: 0.72rem;
}

.sidebar-avatar-info .user-name {
  color: var(--text);
  font-weight: 700;
}

.dev-credit {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-strong);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-faint);
}

.dev-credit a {
  color: var(--text-faint);
  font-weight: 600;
  text-decoration: none;
}

.dev-credit a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.login-dev-credit {
  margin-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.login-dev-credit a {
  color: var(--text-faint);
  font-weight: 600;
  text-decoration: none;
}

.login-dev-credit a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface);
}

.header > .flex {
  min-width: 0;
}

.header-title {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
}

.header-meta {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.eyebrow,
.panel-eyebrow {
  margin: 0;
  color: var(--text-faint) !important;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dashboard-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-breadcrumb strong {
  color: var(--primary);
  font-weight: 700;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-tabs .btn-primary,
.dashboard-tabs .btn-secondary {
  min-height: 38px;
  padding-inline: 16px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.page-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 20px 28px;
}

.glass-card,
.glass-panel,
.chart-shell,
.table-shell,
.login-form-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.glass-sidebar {
  border-radius: 0;
  background: var(--surface);
}

.metric-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metric-card {
  min-height: 118px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  transition: border-color 200ms ease-in-out, background 200ms ease-in-out;
}

.metric-card:hover {
  border-color: #3a3a3a;
  background: #242424;
}

.metric-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.metric-card-value {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1;
  animation: count-up 0.45s ease-out;
}

.metric-card-foot {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.metric-sparkline {
  height: 40px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.metric-sparkline span {
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.metric-sparkline span:nth-child(1) {
  height: 34%;
  opacity: 0.4;
}

.metric-sparkline span:nth-child(2) {
  height: 52%;
  opacity: 0.4;
}

.metric-sparkline span:nth-child(3) {
  height: 68%;
}

.metric-sparkline span:nth-child(4) {
  height: 86%;
}

.metric-sparkline span:nth-child(5) {
  height: 100%;
}

.chart-shell,
.table-shell {
  padding: 16px;
}

.chart-header,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-header h2,
.panel-header h2,
.table-toolbar h2 {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.chart-header p,
.panel-header p,
.table-toolbar p,
.glass-card .text-white,
.chart-shell .text-white,
.table-shell .text-white {
  color: var(--text) !important;
}

.chart-header p,
.panel-header p,
.table-toolbar p,
.glass-card .text-slate-400,
.glass-card .text-slate-300,
.chart-shell .text-slate-400,
.table-shell .text-slate-400 {
  color: var(--text-muted) !important;
}

.chart-bars {
  display: grid;
  min-height: 18rem;
  grid-template-columns: repeat(7, minmax(2rem, 1fr));
  align-items: end;
  gap: 10px;
  padding: 16px 8px 0;
  border-top: 1px solid var(--border);
  background-image: linear-gradient(to top, transparent 31px, rgba(255, 255, 255, 0.04) 32px);
  background-size: 100% 48px;
}

.chart-bar-wrapper {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.chart-bar-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%) translateY(8px);
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

.chart-bar-wrapper:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chart-bar {
  width: 100%;
  height: var(--chart-bar-max-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 6px 6px 2px 2px;
  background: #2b2b2b;
}

.chart-bar-fill {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: var(--primary);
  transform: translateY(100%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-bar-fill.chart-bar-animated {
  transform: translateY(0);
}

.chart-axis-label {
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 700;
}

.insight-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.insight-bar::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  transform: rotate(45deg);
}

.mini-bars {
  height: 128px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.mini-bars span {
  flex: 1;
  min-width: 5px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
}

.mini-bars span:nth-child(3n + 1) {
  opacity: 0.45;
}

.mini-bars span:nth-child(3n + 2) {
  opacity: 0.72;
}

.table-shell {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.table-search {
  width: min(260px, 45vw);
  min-height: 36px;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 0 12px;
  outline: none;
}

.table-search:focus {
  border-color: var(--primary);
  color: var(--text);
}

.table-shell table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.table-shell th,
.table-shell td {
  border-top: 1px solid var(--border);
  padding: 13px 12px;
  text-align: left;
}

.table-shell th {
  color: var(--text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-shell tbody tr {
  background: transparent;
  transition: background 200ms ease-in-out;
}

.table-shell tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-shell td {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  vertical-align: middle;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-green {
  border-color: rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
}

.badge-red {
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
}

.badge-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.bg-brand-green {
  background: var(--success) !important;
}

.bg-brand-red {
  background: var(--danger) !important;
}

.action-button {
  min-height: 30px;
  border-color: #3a3a3a;
  background: var(--surface-2);
  color: var(--text-soft);
  padding: 0 10px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.action-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-button-danger {
  border-color: rgba(248, 113, 113, 0.2);
  color: var(--danger);
}

.action-button-danger:hover {
  border-color: var(--danger);
}

.user-form {
  display: grid;
  gap: 16px;
}

.user-form-grid {
  display: grid;
  gap: 14px;
}

.form-control {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.form-control span,
.toggle-control span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.user-form-actions,
.toggle-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-form-actions {
  justify-content: space-between;
  flex-wrap: wrap;
}

.toggle-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

@media (min-width: 920px) {
  .user-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.upload-dropzone {
  min-height: 15rem;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed #4a4a4a;
  border-radius: var(--radius-lg);
  background: #1f1f1f;
  color: var(--text);
  text-align: center;
  transition: background 200ms ease-in-out, border-color 200ms ease-in-out;
}

.upload-dropzone:hover,
.upload-dropzone.drag-active {
  border-color: var(--primary);
  background: rgba(232, 130, 42, 0.08);
}

.upload-dropzone.upload-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.upload-dropzone p {
  margin: 0;
}

.upload-dropzone .text-white {
  color: var(--text) !important;
}

.upload-dropzone .text-slate-400,
.upload-dropzone .text-slate-300 {
  color: var(--text-muted) !important;
}

.upload-dropzone svg,
.upload-icon {
  color: var(--primary) !important;
}

.upload-progress-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.upload-progress-panel[hidden] {
  display: none;
}

.upload-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.upload-progress-header strong {
  color: var(--primary);
  font-size: 0.82rem;
}

.upload-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #1a1a1a;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 220ms ease-in-out;
}

.upload-progress-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.queue-requirement {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.queue-requirement span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.queue-requirement strong {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg);
}

.mesh-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
}

.login-left {
  display: none;
}

.login-left-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.login-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.login-brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent url('/static/assets/icone%20velox.png') center / contain no-repeat;
  color: #111111;
}

.login-left .glass-panel,
.login-left .glass-card {
  background: transparent;
  color: var(--text);
  border: 0;
}

.login-panel-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  max-width: 780px;
}

.login-hero-title {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(1.65rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
}

.login-panel-subtitle {
  color: var(--text-muted);
  line-height: 1.7;
}

.login-form-panel {
  padding: 28px;
}

.login-form-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.18;
}

.login-form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.password-wrapper {
  position: relative;
}

.password-wrapper .input-field {
  padding-right: 82px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  bottom: 13px;
  z-index: 1;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.login-info {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

body[data-page='login'] h1,
body[data-page='login'] h2,
body[data-page='login'] p,
body[data-page='login'] strong {
  color: inherit;
}

body[data-page='login'] .login-form-panel .login-panel-subtitle,
body[data-page='login'] .login-form-panel .login-info {
  color: var(--text-muted);
}

body[data-page='login'] .login-form-panel .app-message-success {
  color: var(--success) !important;
}

body[data-page='login'] .login-form-panel .app-message-error {
  color: var(--danger) !important;
}

.login-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.login-stat strong {
  display: block;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
}

.login-stat span {
  display: block;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-sidebar {
  position: fixed;
  inset: 0;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

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

.mobile-sidebar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.mobile-sidebar-panel {
  position: relative;
  width: min(88vw, 320px);
  height: 100%;
  padding: 16px;
  background: var(--surface);
}

.mobile-sidebar-close {
  width: 100%;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .login-shell {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .login-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    border-right: 1px solid var(--border-strong);
  }
}

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    position: relative;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .header > .flex {
    width: 100%;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page-content {
    padding: 14px;
  }

  .metric-card,
  .chart-shell,
  .table-shell,
  .glass-card,
  .login-form-panel {
    border-radius: var(--radius-lg);
  }

  .chart-bars {
    min-height: 14rem;
    gap: 7px;
  }

  .chart-bar {
    --chart-bar-max-height: 9.5rem;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 36px;
  }

  .login-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header > .flex {
    flex-direction: column;
  }

  #mobileSidebarButton {
    width: 100%;
  }

  .chart-shell,
  .table-shell,
  .login-form-panel {
    padding: 14px;
  }

  .upload-dropzone {
    min-height: 13rem;
    padding: 18px;
  }
}
