:root {
  color-scheme: light dark;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: #0f172a;
  color: #fff;
  padding: 1.5rem;
}
.brand h2 {
  margin: 0 0 0.25rem;
}
.brand p {
  margin: 0 0 1rem;
  color: #cbd5e1;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}
.main-content {
  flex: 1;
  padding: 2rem;
}
.main-content.full-width {
  max-width: 960px;
  margin: 0 auto;
}
.card,
.grid > div {
  background: var(--panel);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.5rem;
}
.button:hover {
  background: var(--accent-2);
}
.button-secondary {
  background: #475569;
}
.button-secondary:hover {
  background: #334155;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
}
input,
select,
button {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
button {
  background: var(--accent);
  color: white;
  cursor: pointer;
}
.error {
  color: #dc2626;
}
.error-alert {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(254, 226, 226, 0.35);
  border-radius: 16px;
  margin-bottom: 1rem;
}

/* Dashboard styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.page-overline {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
}
.page-header h1 {
  margin: 0;
  font-size: 2rem;
}
.page-tools .button {
  padding: 0.8rem 1.2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
.stat-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 1.4rem;
}
.stat-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}
.stat-label {
  margin: 0;
  color: #344054;
  font-weight: 600;
}
.stat-meta {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}
.stat-blue .stat-icon {
  background: rgba(59, 130, 246, 0.12);
}
.stat-green .stat-icon {
  background: rgba(16, 185, 129, 0.12);
}
.stat-orange .stat-icon {
  background: rgba(249, 115, 22, 0.12);
}
.stat-cyan .stat-icon {
  background: rgba(6, 182, 212, 0.12);
}
.stat-purple .stat-icon {
  background: rgba(124, 58, 237, 0.12);
}
.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.dashboard-grid--main {
  grid-template-columns: 1.5fr 0.85fr 0.85fr;
}
.dashboard-grid--secondary {
  grid-template-columns: 1.5fr 0.85fr;
}
.panel {
  background: #fff;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.panel-header p {
  margin: 0;
  color: var(--muted);
}
.panel-header select {
  min-width: 120px;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: #f8fafc;
}
.panel-large {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-small {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.panel-info {
  min-height: 320px;
}
.chart {
  position: relative;
  min-height: 240px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 24px;
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chart-line {
  display: grid;
  gap: 1rem;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.85rem;
}
.chart-line-path {
  position: relative;
  height: 150px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), transparent);
  border-radius: 18px;
  overflow: hidden;
}
.chart-line-path::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 45%,
      rgba(59, 130, 246, 0.45),
      transparent 7%
    ),
    radial-gradient(circle at 45% 35%, rgba(37, 99, 235, 0.45), transparent 7%),
    radial-gradient(circle at 70% 55%, rgba(96, 165, 250, 0.35), transparent 8%);
}
.status-ring {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.12) 0%,
    rgba(255, 255, 255, 0) 65%
  );
}
.status-ring span {
  font-size: 2.4rem;
  color: #0f172a;
  font-weight: 700;
}
.status-ring small {
  color: #64748b;
}
.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.status-list li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: #475569;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 3px;
}
.status-online {
  background: #22c55e;
}
.status-offline {
  background: #ef4444;
}
.status-unknown {
  background: #64748b;
}
.info-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.info-list dt {
  color: #475569;
}
.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 600;
  text-align: right;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 0.95rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.data-table th {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}
.data-table tbody tr:hover {
  background: #f8fbff;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-success {
  background: #dcfce7;
  color: #15803d;
}
.action-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.activity-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: flex-start;
}
.activity-time {
  color: #94a3b8;
  font-size: 0.9rem;
}
.activity-list p {
  margin: 0;
  font-weight: 600;
}
.activity-list small {
  color: #64748b;
}

/* Compare configuration */
.compare-page {
  min-width: 0;
  color: var(--backup-ink, #17223b);
}
.compare-selection-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(250px, 1fr);
  gap: 0.9rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.compare-toolbar {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e9eef5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 64, 92, 0.045);
}
.compare-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.7rem;
  align-items: end;
  max-width: none;
}
.compare-controls label {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #4c5d74;
  font-size: 0.7rem;
  font-weight: 700;
}
.compare-controls select {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  background: #f8fbff;
  color: #33445e;
}
.compare-swap {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 5px;
  background: #fff;
  color: #1676ed;
  font-size: 1rem;
  line-height: 1;
}
.compare-form-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}
.compare-form-actions .backup-action {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}
.compare-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.compare-selection-grid .compare-summary {
  margin-bottom: 0;
}
.compare-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 64, 92, 0.06);
}
.compare-summary-card strong {
  font-size: 1.4rem;
  color: #17223b;
}
.compare-summary-card span {
  color: #64748b;
  font-size: 0.75rem;
}
.compare-summary-blue {
  border-top: 3px solid #1676ed;
}
.compare-summary-green {
  border-top: 3px solid #16a765;
}
.compare-summary-orange {
  border-top: 3px solid #f59e0b;
}
.compare-summary-purple {
  border-top: 3px solid #7040e9;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.compare-panel,
.compare-diff-panel {
  border: 1px solid #e9eef5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 64, 92, 0.045);
}
.compare-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e7edf5;
}
.compare-panel-head h2 {
  margin: 0;
  font-size: 0.84rem;
}
.compare-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.6rem;
  font-weight: 700;
}
.compare-badge-alt {
  background: #dcfce7;
  color: #15803d;
}
.compare-badge-soft {
  background: #fef3c7;
  color: #b45309;
}
.compare-meta {
  margin: 0;
  padding: 0 1rem;
  color: #64748b;
  font-size: 0.65rem;
}
.compare-code {
  margin: 0.8rem 1rem 1rem;
  padding: 0.9rem 1rem;
  max-height: 320px;
  overflow: auto;
  border-radius: 6px;
  background: #0f172a;
  color: #e2e8f0;
  font:
    0.66rem/1.7 Consolas,
    monospace;
  white-space: pre-wrap;
}
.line {
  display: block;
}
.line-prefix {
  display: inline-block;
  width: 1.2em;
  color: currentColor;
  font-weight: 700;
}
.line-unchanged {
  color: #cbd5e1;
}
.line-modified {
  color: #fbbf24;
}
.line-added {
  color: #34d399;
}
.line-removed {
  color: #f87171;
}
.diff-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem 1rem;
}
.diff-row {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  background: #f8fafc;
}
.diff-row strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #17223b;
  font-size: 0.72rem;
}
.diff-row p {
  margin: 0;
  color: #64748b;
  font-size: 0.64rem;
}
.diff-marker {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.8rem;
}
.diff-added {
  border-left: 3px solid #16a765;
}
.diff-removed {
  border-left: 3px solid #ef4444;
}
.diff-modified {
  border-left: 3px solid #f59e0b;
}

/* Backup management */
.backup-page {
  --backup-ink: #17223b;
  --backup-muted: #718096;
  --backup-line: #e7edf5;
  min-width: 0;
  color: var(--backup-ink);
}
.backup-topbar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: -2rem -2rem 0;
  padding: 0 1.25rem;
  background: #fff;
  border-bottom: 1px solid #edf1f7;
}
.sidebar-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: #58708e;
  font-size: 1.15rem;
}
.backup-product-name {
  font-size: 0.92rem;
  font-weight: 700;
}
.backup-topbar-tools {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}
.inline-delete-form { display: inline; margin: 0; padding: 0; }
.notification-menu {
  position: relative;
}
.notification-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 110;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(430px, calc(100vh - 5rem));
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}
.notification-dropdown.show {
  display: block;
}
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eef2f7;
}
.notification-header strong { color: #111827; font-size: 0.92rem; }
.notification-header span { color: #64748b; font-size: 0.75rem; }
.notification-empty { margin: 0; padding: 1.2rem 1rem; color: #64748b; font-size: 0.85rem; }
.notification-list { list-style: none; max-height: 360px; overflow-y: auto; margin: 0; padding: 0; }
.notification-list li { border-bottom: 1px solid #f1f5f9; }
.notification-list li:last-child { border-bottom: 0; }
.notification-list a { display: flex; gap: 0.7rem; padding: 0.8rem 1rem; color: inherit; text-decoration: none; }
.notification-list a:hover { background: #f8fafc; }
.notification-icon { flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fef2f2; font-size: 0.9rem; }
.notification-icon--schedule { background: #fff7ed; }
.notification-content { min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.notification-content strong { color: #1f2937; font-size: 0.8rem; }
.notification-content small { overflow: hidden; color: #475569; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.notification-content time { color: #94a3b8; font-size: 0.7rem; }
.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.topbar-search,
.backup-search,
.date-filter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #e0e7f1;
  border-radius: 5px;
  background: #f8fafe;
  color: #8090a7;
}
.topbar-search {
  width: 172px;
  padding: 0.38rem 0.65rem;
}
.topbar-search input,
.backup-search input,
.date-filter input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26344e;
  font-size: 0.72rem;
}
.notification-icon {
  position: relative;
  color: #61738d;
  font-size: 1.25rem;
}
.notification-icon b {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  text-align: center;
  line-height: 15px;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
}
.user-menu strong,
.user-menu small {
  display: block;
}
.user-menu small {
  color: var(--backup-muted);
  font-size: 0.6rem;
}
.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}
.backup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.3rem 0 1.15rem;
}
.backup-heading h1 {
  margin: 0;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}
.backup-heading p {
  margin: 0.25rem 0 0;
  color: var(--backup-muted);
  font-size: 0.75rem;
}
.breadcrumb {
  color: #687891;
  font-size: 0.68rem;
}
.breadcrumb span {
  color: #1683ff;
  font-size: 0.9rem;
}
.breadcrumb b {
  margin: 0 0.5rem;
  color: #b6c0cf;
}
.backup-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.backup-stat {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 102px;
  gap: 0.8rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid #edf1f6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 64, 92, 0.06);
}
.backup-stat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}
.backup-stat p {
  margin: 0.05rem 0 0.08rem;
  color: #56657d;
  font-size: 0.68rem;
  font-weight: 700;
}
.backup-stat strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.05;
}
.backup-stat small {
  color: #77859a;
  font-size: 0.64rem;
}
.backup-stat-blue .backup-stat-icon {
  background: #1676ed;
}
.backup-stat-green .backup-stat-icon {
  background: #16a765;
}
.backup-stat-orange .backup-stat-icon {
  background: #f59e0b;
}
.backup-stat-purple .backup-stat-icon {
  background: #7040e9;
}
.stat-line {
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 72px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #1676ed;
}
.backup-stat-green .stat-line {
  background: #18a96a;
}
.backup-stat-orange .stat-line {
  background: #f59e0b;
  width: 7px;
}
.backup-stat-purple .stat-line {
  background: #7040e9;
}
.backup-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
  width: 100%;
}
.backup-list-panel {
  width: 100%;
}
.backup-list-panel,
.backup-detail-panel,
.storage-panel {
  border: 1px solid #e9eef5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 64, 92, 0.045);
}
.backup-panel-heading,
.backup-detail-panel h2,
.storage-panel h2 {
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--backup-line);
  font-size: 0.82rem;
}
.backup-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #f0f3f7;
}
.backup-action {
  border: 1px solid #dce4ef;
  border-radius: 4px;
  padding: 0.42rem 0.62rem;
  background: #fff;
  color: #43536c;
  font-size: 0.64rem;
  cursor: pointer;
}
.backup-action.primary {
  border-color: #1976ef;
  background: #1676ed;
  color: #fff;
  text-decoration: none;
}
.backup-action.danger-outline {
  color: #e34747;
}
.backup-filter {
  margin-left: auto;
}
.backup-filter select {
  width: 100px;
  padding: 0.42rem;
  border: 1px solid #dce4ef;
  border-radius: 4px;
  background: #fff;
  color: #4a5b72;
  font-size: 0.62rem;
}
.date-filter {
  width: 145px;
  padding: 0.43rem 0.5rem;
  background: #fff;
}
.backup-search {
  width: 116px;
  padding: 0.43rem 0.5rem;
  background: #fff;
}
.backup-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.backup-table {
  width: 100%;
  font-size: 0.75rem;
}
.backup-table th,
.backup-table td {
  padding: 0.65rem 0.55rem;
  white-space: nowrap;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}
.backup-table th {
  padding: 0.65rem 0.55rem;
  background: #fbfcfe;
  color: #35445b;
  font-size: 0.7rem;
}
.backup-table td {
  color: #506078;
}
.backup-table input {
  width: 12px;
  height: 12px;
  padding: 0;
  accent-color: #1676ed;
}
.backup-table .file-name {
  max-width: 155px;
  overflow: hidden;
  color: #2d6fda;
  text-overflow: ellipsis;
}
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
}
.status-pill-success {
  background: #ddf8e8;
  color: #169b5d;
}
.status-pill-failed {
  background: #ffe4e4;
  color: #e04747;
}
.table-actions {
  display: flex;
  gap: 0.3rem;
}
.table-actions a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
  background: #1976ed;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
}
.table-actions a:nth-child(2) {
  background: #14a866;
}
.table-actions a:nth-child(3) {
  background: #f5a000;
}
.table-actions a.delete-action {
  background: #ed4444;
}
.empty-backups {
  padding: 2rem !important;
  text-align: center;
  color: #8996a9 !important;
}
.backup-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0.55rem 0.8rem;
  border: 1px solid #dce5f0;
  color: #718096;
  font-size: 0.62rem;
}
.pagination-info {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 30px;
  box-sizing: border-box;
  padding: 0.35rem 0.65rem;
  border: 1px solid #cbd8e8;
  border-radius: 4px;
  background: #f8fbff;
  color: #61708a;
  line-height: 1;
}
.pagination-info b {
  color: #1676ed;
  font-weight: 700;
}
.pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid #cbd8e8;
  border-radius: 4px;
  background: #f8fbff;
}
.backup-pagination button,
.backup-pagination .pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #cbd8e8;
  border-radius: 4px;
  background: #fff;
  color: #61708a;
  font-size: 0.65rem;
  text-decoration: none;
}
.backup-pagination button.active,
.backup-pagination .pagination-button.active,
.backup-pagination .pagination-button[aria-current="page"] {
  border-color: #1676ed;
  background: #1676ed;
  color: #fff;
  font-weight: 700;
}
.backup-side-panels {
  display: grid;
  gap: 0.9rem;
}
.detail-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  padding: 1rem;
  text-align: center;
}
.detail-placeholder > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: #277cf1;
  font-size: 1.8rem;
}
.detail-placeholder p {
  margin: 0.8rem 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.detail-placeholder small {
  color: #8b98ab;
  font-size: 0.62rem;
}
.storage-content {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
}
.storage-ring {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  border: 10px solid #e8eef7;
  border-top-color: #1577ef;
  border-right-color: #1577ef;
  border-radius: 50%;
}
.storage-ring strong {
  font-size: 0.88rem;
}
.storage-ring span {
  color: #8290a4;
  font-size: 0.58rem;
}
.storage-panel dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.58rem;
}
.storage-panel dl div {
  display: flex;
  gap: 0.35rem;
}
.storage-panel dt {
  font-size: 0.62rem;
}
.storage-panel dd {
  margin: 0;
  color: #718096;
}
.storage-panel dd b {
  display: block;
  color: #263650;
  font-size: 0.65rem;
}
.used-dot {
  color: #1577ef;
}
.total-dot {
  color: #cbd5e1;
}
.free-dot {
  color: #e8edf4;
}
.manage-storage {
  width: calc(100% - 1.5rem);
  margin: 0 0.75rem 0.8rem;
  padding: 0.5rem;
  border: 1px solid #e1e8f3;
  border-radius: 4px;
  background: #f8faff;
  color: #1676ed;
  font-size: 0.62rem;
}
.backup-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.7rem 0.15rem 0;
  color: #78869a;
  font-size: 0.62rem;
}
.nav-section-title {
  display: block;
  margin: 1.1rem 0 0.4rem;
  color: #8190a6;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-link.active {
  background: #1676ed;
  color: #fff;
  box-shadow: 0 5px 14px rgba(22, 118, 237, 0.3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #3d8af1;
  border-radius: 7px;
  color: #65a9ff;
}
.brand h2 {
  font-size: 0.95rem;
}
.brand p {
  font-size: 0.58rem;
  line-height: 1.35;
}
.system-status {
  margin-top: 2rem;
  padding: 0.75rem;
  border: 1px solid #2a3c59;
  border-radius: 5px;
  color: #e2e8f0;
  font-size: 0.62rem;
}
.system-status strong,
.system-status span,
.system-status small {
  display: block;
}
.system-status span {
  margin: 0.4rem 0 0.85rem;
  color: #73df9e;
}
.system-status small {
  color: #aebbd0;
}
.system-status small b {
  float: right;
  color: #fff;
}
.system-status i {
  display: block;
  height: 4px;
  margin-top: 0.35rem;
  border-radius: 4px;
  background: #243752;
}
.system-status i b {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: inherit;
  background: #18bd65;
}
.schedule-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 0.9rem;
  align-items: start;
}
.schedule-list-panel,
.schedule-form-panel,
.schedule-calendar,
.schedule-info {
  border: 1px solid #e9eef5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 64, 92, 0.045);
}
.schedule-form-panel h2,
.schedule-calendar h2,
.schedule-info h2 {
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e7edf5;
  font-size: 0.82rem;
}
.schedule-form {
  display: grid;
  gap: 0.48rem;
  padding: 0.8rem 1rem 1rem;
}
.schedule-form label {
  color: #45556d;
  font-size: 0.65rem;
  font-weight: 700;
}
.schedule-form label b {
  color: #ef4444;
}
.schedule-form select,
.schedule-form input[type="time"],
.schedule-form textarea {
  width: 100%;
  padding: 0.48rem 0.55rem;
  border: 1px solid #dce4ef;
  border-radius: 4px;
  background: #fff;
  color: #33445e;
  font-size: 0.65rem;
}
.schedule-form textarea {
  min-height: 70px;
  resize: vertical;
  font-family: inherit;
}
.day-checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.42rem 0.25rem;
  margin: 0.15rem 0 0.5rem;
}
.schedule-form .day-checks label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 500;
}
.day-checks input {
  width: 12px;
  height: 12px;
  accent-color: #1676ed;
}
.switch-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.switch-label input {
  display: none;
}
.switch {
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: #cbd5e1;
}
.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.2s;
}
.switch-label input:checked + .switch {
  background: #18b96b;
}
.switch-label input:checked + .switch::after {
  transform: translateX(14px);
}
.schedule-form-actions {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.schedule-form-actions .backup-action {
  margin: 0;
}
.schedule-form-actions .backup-action.primary {
  border: 0;
}
.schedule-error {
  margin: 0.7rem 0.8rem 0;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  background: #fff1f1;
  color: #d33c3c;
  font-size: 0.65rem;
}
.schedule-table td strong {
  display: block;
  color: #34445d;
}
.table-subtext {
  display: block;
  color: #8b98ab;
  font-size: 0.56rem;
}
.schedule-table .table-actions form {
  display: contents;
}
.schedule-table .table-actions button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #1577ef;
  color: #fff;
  font-size: 0.68rem;
}
.schedule-table .table-actions form:nth-child(2) button {
  background: #1577ef;
}
.schedule-table .table-actions form:nth-child(3) button {
  background: #ed4444;
}
.schedule-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 0.9rem;
  margin-top: 0.9rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: 44px repeat(7, minmax(62px, 1fr));
  overflow-x: auto;
  padding: 0.55rem;
  font-size: 0.55rem;
}
.calendar-grid > strong {
  padding: 0.35rem 0.15rem;
  text-align: center;
  color: #4d5b72;
}
.calendar-time {
  padding: 0.8rem 0.2rem;
  color: #6d7d94;
  text-align: right;
}
.calendar-slot {
  min-height: 40px;
  border: 1px solid #edf1f6;
  background: #fcfdff;
}
.calendar-event {
  display: block;
  margin: 0.25rem;
  padding: 0.3rem;
  border-left: 3px solid #1676ed;
  border-radius: 3px;
  color: #2169c5;
  font-size: 0.5rem;
  line-height: 1.25;
}
.calendar-event b {
  font-weight: 700;
}
.calendar-event.green {
  border-color: #16a765;
  background: #e7f8ee;
  color: #168b53;
}
.calendar-event.blue {
  background: #e9f3ff;
}
.schedule-info {
  padding-bottom: 0.65rem;
}
.schedule-info p {
  display: flex;
  gap: 0.6rem;
  margin: 0.75rem 1rem;
  color: #247cf0;
  font-size: 1rem;
}
.schedule-info p span {
  color: #62738b;
  font-size: 0.6rem;
  line-height: 1.35;
}
.restore-main-grid {
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.restore-left-column,
.restore-right-column {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}
.restore-panel {
  border: 1px solid #e9eef5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 64, 92, 0.045);
}
.restore-panel h2 {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid #e7edf5;
  font-size: 0.78rem;
}
.restore-device-panel {
  padding-bottom: 0.7rem;
}
.restore-device-select {
  width: calc(100% - 1.4rem);
  margin: 0.7rem;
  padding: 0.52rem;
  border: 1px solid #dce4ef;
  border-radius: 4px;
  background: #fff;
  color: #394a64;
  font-size: 0.64rem;
}
.restore-device-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #edf1f6;
  color: #687890;
  font-size: 0.57rem;
}
.online-dot {
  padding: 0.25rem 0.42rem;
  border-radius: 999px;
  background: #def8e9;
  color: #15965a;
  font-weight: 700;
}
.restore-file-search {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.65rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #dce4ef;
  border-radius: 4px;
  color: #8090a7;
}
.restore-file-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #33445e;
  font-size: 0.62rem;
}
.restore-file-list {
  max-height: 270px;
  overflow-y: auto;
  padding: 0 0.55rem;
}
.restore-file-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 49px;
  padding: 0.35rem 0.25rem;
  border-bottom: 1px solid #edf1f6;
  color: #40516b;
  text-decoration: none;
  font-size: 0.58rem;
}
.restore-file-row.selected {
  border-radius: 4px;
  background: #eaf3ff;
}
.restore-file-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.restore-file-row strong,
.restore-file-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.restore-file-row strong {
  color: #34445d;
}
.restore-file-row small {
  margin-top: 0.15rem;
  color: #8b98ab;
  font-size: 0.52rem;
}
.restore-radio {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid #b8c4d5;
  border-radius: 50%;
}
.restore-file-row.selected .restore-radio {
  border: 4px solid #1676ed;
}
.restore-file-size {
  min-width: 42px;
  text-align: right;
}
.latest-badge {
  padding: 0.22rem 0.35rem;
  border-radius: 999px;
  background: #d9f6e5;
  color: #15965a;
  font-size: 0.48rem;
}
.restore-list-footer {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  color: #77869b;
  font-size: 0.54rem;
}
.restore-list-footer span {
  color: #1676ed;
}
.restore-empty {
  padding: 1.5rem 0;
  color: #8794a7;
  text-align: center;
  font-size: 0.65rem;
}
.restore-options {
  padding-bottom: 0.65rem;
}
.restore-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.1rem 0.35rem;
  align-items: center;
  margin: 0.7rem 0.85rem;
  color: #394a64;
  font-size: 0.6rem;
}
.restore-toggle input {
  display: none;
}
.restore-toggle > span {
  position: relative;
  grid-row: span 2;
  width: 22px;
  height: 13px;
  border-radius: 999px;
  background: #cbd5e1;
}
.restore-toggle > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  content: "";
}
.restore-toggle input:checked + span {
  background: #1676ed;
}
.restore-toggle input:checked + span::after {
  left: 11px;
}
.restore-toggle b {
  font-weight: 700;
}
.restore-toggle small {
  color: #8592a4;
  font-size: 0.52rem;
}
.restore-toggle .warning-text {
  color: #ee4b4b;
}
.backup-preview-panel {
  padding-bottom: 0.75rem;
}
.restore-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 0.8rem;
}
.restore-preview-heading span {
  color: #687890;
  font-size: 0.59rem;
}
.restore-preview-heading span b {
  margin-left: 0.45rem;
  padding: 0.25rem 0.38rem;
  border-radius: 999px;
  background: #dff7e9;
  color: #15965a;
  font-size: 0.5rem;
}
.restore-preview-code {
  height: 355px;
  margin: 0.7rem;
  padding: 0.7rem 1.2rem;
  overflow: auto;
  border: 1px solid #dce4ef;
  border-radius: 4px;
  background: #fbfcff;
  color: #43536c;
  font:
    0.64rem/1.75 Consolas,
    "Courier New",
    monospace;
  white-space: pre;
}
.restore-warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border: 1px solid #f2c14d;
  border-radius: 5px;
  background: #fff8e8;
  color: #85570a;
}
.restore-warning > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ffb514;
  color: #fff;
  font-weight: 800;
}
.restore-warning strong {
  font-size: 0.65rem;
}
.restore-warning p {
  margin: 0.2rem 0 0;
  font-size: 0.57rem;
  line-height: 1.45;
}
.restore-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}
.restore-button {
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}
.restore-button.secondary {
  border: 1px solid #dce4ef;
  background: #fff;
  color: #40516b;
}
.restore-button.preview-diff {
  background: #ffb000;
}
.restore-button.restore-submit {
  background: #f02935;
}
.delete-confirmation-wrap {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 2rem 1rem;
}
.delete-confirmation-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid #f0d0d0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(34, 41, 57, 0.08);
}
.delete-confirmation-card h1 {
  margin: 0 0 1rem;
  color: #1f2937;
  font-size: 1.4rem;
}
.delete-confirmation-body {
  padding: 1rem;
  border: 1px solid #f4e1e1;
  border-radius: 8px;
  background: #fff7f7;
}
.delete-label {
  margin: 0 0 0.4rem;
  color: #7a8598;
  font-size: 0.68rem;
  font-weight: 700;
}
.delete-confirmation-body strong {
  display: block;
  margin-bottom: 0.8rem;
  color: #1f2937;
  font-size: 0.98rem;
  word-break: break-all;
}
.delete-warning {
  margin: 0;
  color: #9a4a4a;
  font-size: 0.66rem;
}
.delete-confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.2rem;
}
.delete-confirmation-actions form {
  display: contents;
}
@media (max-width: 1120px) {
  .dashboard-grid--main,
  .dashboard-grid--secondary {
    grid-template-columns: 1fr;
  }
  .compare-selection-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .schedule-main-grid,
  .schedule-bottom-grid {
    grid-template-columns: 1fr;
  }
  .compare-controls {
    flex-wrap: wrap;
  }
  .compare-controls label {
    flex-basis: calc(50% - 0.35rem);
  }
  .compare-form-actions {
    flex-direction: row;
  }
  .restore-main-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .backup-topbar {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem;
  }
  .backup-product-name,
  .topbar-search,
  .notification-icon {
    display: none;
  }
  .main-content {
    padding: 1rem;
  }
  .backup-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .backup-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .backup-filter {
    margin-left: 0;
  }
  .backup-footer {
    flex-direction: column;
    gap: 0.4rem;
  }
  .schedule-bottom-grid {
    grid-template-columns: 1fr;
  }
  .restore-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .restore-button {
    flex: 1;
  }
  .restore-preview-code {
    height: 260px;
  }
  .restore-device-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}
@media (max-width: 840px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 660px) {
  .page-header {  
    flex-direction: column;
    align-items: stretch;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
    text-align: center;
  }
  .panel {
    padding: 1.25rem;
  }
}
/* Login page specific styles */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.16),
      transparent 24%
    ),
    linear-gradient(180deg, #081026 0%, #081d44 100%);
}
.login-screen {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  width: min(1180px, 100%);
  align-items: center;
}
.login-visual {
  background: linear-gradient(180deg, #061a49 0%, #0f2f6f 100%);
  border-radius: 38px;
  color: #f8fafc;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 42px 110px rgba(2, 16, 50, 0.32);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(96, 165, 250, 0.16),
      transparent 18%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(59, 130, 246, 0.14),
      transparent 20%
    );
  pointer-events: none;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-badge {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}
.hero-badge-icon {
  font-size: 1.75rem;
}
.hero-copy {
  max-width: 460px;
}
.hero-copy .hero-label {
  margin: 0 0 0.5rem;
  color: #a5b4fc;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.03;
  color: #fff;
}
.hero-copy p {
  margin: 1rem 0 0;
  max-width: 440px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1rem;
}
.hero-artboard {
  position: relative;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  overflow: hidden;
  padding: 2rem;
}
.hero-artboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 32%,
      rgba(59, 130, 246, 0.18),
      transparent 18%
    ),
    radial-gradient(
      circle at 78% 72%,
      rgba(96, 165, 250, 0.12),
      transparent 18%
    );
}
.device {
  position: absolute;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 72px rgba(8, 20, 48, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.device::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}
.device-server {
  width: 168px;
  height: 152px;
  top: 36px;
  left: 30px;
}
.device-router {
  width: 132px;
  height: 112px;
  top: 108px;
  right: 34px;
}
.device-switch {
  width: 150px;
  height: 84px;
  bottom: 52px;
  left: 40px;
}
.device-access {
  width: 96px;
  height: 96px;
  bottom: 44px;
  right: 62px;
}
.art-link {
  position: absolute;
  width: 220px;
  height: 2px;
  background: rgba(96, 165, 250, 0.8);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.32);
}
.link-a {
  top: 130px;
  left: 190px;
  transform: rotate(18deg);
}
.link-b {
  top: 210px;
  left: 90px;
  transform: rotate(-12deg);
}
.link-c {
  bottom: 130px;
  right: 150px;
  transform: rotate(22deg);
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}
.hero-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #e2e8f0;
}
.hero-features strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
}
.hero-features p {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.95rem;
}
.login-form-panel {
  padding: 2.25rem;
  border-radius: 36px;
  max-width: 520px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}
.login-form-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.avatar-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #1d4ed8;
}
.login-form-header h2 {
  margin: 0;
  font-size: 2.1rem;
  color: #0f172a;
}
.login-form-header p {
  margin: 0.5rem auto 0;
  color: #64748b;
}
.login-form {
  display: grid;
  gap: 1rem;
}
.login-form label {
  display: grid;
  gap: 0.5rem;
  color: #0f172a;
  font-weight: 600;
}
.input-group {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.input-group input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 1rem;
  color: #0f172a !important;
}
.input-group input::placeholder {
  color: #64748b;
}
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  background-color: #f8fafc !important;
}
.input-icon {
  color: #64748b;
  font-size: 1rem;
}
.password-toggle {
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #64748b;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.password-toggle:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}
.password-toggle svg {
  display: block;
}
.password-toggle.visible svg {
  stroke: #1d4ed8;
}
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #475569;
}
.checkbox-label input {
  width: auto;
  margin: 0;
}
.text-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.95rem;
}
.button-primary {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}
.login-footer {
  margin-top: 1.75rem;
  text-align: center;
  display: grid;
  gap: 1rem;
}
.login-footer .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #94a3b8;
}
.login-footer .divider::before,
.login-footer .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.button-outline {
  background: transparent;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.95rem 1rem;
  border-radius: 16px;
}
.contact-info-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
  user-select: all;
  letter-spacing: 0.01em;
}
.contact-info-box svg {
  color: #3b82f6;
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-visual {
    order: 2;
  }
}
@media (max-width: 680px) {
  .login-page {
    padding: 1rem;
  }
  .login-visual,
  .login-form-panel {
    border-radius: 24px;
    padding: 1.5rem;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
}
