/* ============================================================
   Baycop Cloud Portal — Stylesheet
   Dark control panel UI inspired by Hetzner/DigitalOcean
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --bg:           #0d1117;
  --bg-2:         #161b27;
  --bg-card:      #1e2535;
  --bg-card-hover:#232c3d;
  --sidebar:      #131825;
  --sidebar-w:    230px;
  --border:       #2a3347;
  --border-light: #1e2840;
  --accent:       var(--brand-color, #E07252);
  --accent-dim:   rgba(224,114,82,.12);
  --accent-h:     color-mix(in srgb, var(--accent) 80%, #000);
  --text:         #e2e8f0;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --green:        #10b981;
  --green-dim:    rgba(16,185,129,.12);
  --red:          #ef4444;
  --red-dim:      rgba(239,68,68,.12);
  --amber:        #f59e0b;
  --amber-dim:    rgba(245,158,11,.12);
  --blue:         #3b82f6;
  --blue-dim:     rgba(59,130,246,.12);
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0,0,0,.35);
  --shadow-sm:    0 2px 8px  rgba(0,0,0,.25);
  --transition:   .18s ease;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── Layout: Auth pages ────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(224,114,82,.08) 0%, transparent 65%), var(--bg);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo img { height: 32px; }

.auth-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
}

/* ─── Layout: Portal shell ──────────────────────────────── */
.portal-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 18px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.sidebar-brand-text {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}
.sidebar-brand-bay {
  color: #E07252;
}
.sidebar-brand-cloud {
  color: #ffffff;
}
.sidebar-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.sidebar-brand-sub {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  padding: 16px 18px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  text-decoration: none;
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-user {
  padding: 14px 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--text-3);
}

/* Main content area */
.portal-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  height: 56px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 18px;
  padding: 4px;
  line-height: 1;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-content {
  flex: 1;
  padding: 28px 24px;
  max-width: 1280px;
  width: 100%;
}

/* ─── Sidebar overlay (mobile) ──────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

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

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ─── Stats/KPI cards ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--accent); }

.stat-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-icon.green  { background: var(--green-dim); color: var(--green); }
.stat-icon.red    { background: var(--red-dim);   color: var(--red);   }
.stat-icon.amber  { background: var(--amber-dim); color: var(--amber); }
.stat-icon.blue   { background: var(--blue-dim);  color: var(--blue);  }
.stat-icon.accent { background: var(--accent-dim);color: var(--accent);}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ─── Server / Instance cards ───────────────────────────── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.server-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.server-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.server-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.server-hostname {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.server-ip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.server-ip i { color: var(--text-3); font-size: 11px; }

.server-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.spec-item {
  text-align: center;
}

.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.spec-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

/* ─── Status badges ─────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-running  { background: var(--green-dim); color: var(--green); }
.badge-running .status-dot  { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }

.badge-stopped  { background: rgba(100,116,139,.15); color: #94a3b8; }
.badge-stopped .status-dot  { background: #64748b; }

.badge-warning  { background: var(--amber-dim); color: var(--amber); }
.badge-warning .status-dot  { background: var(--amber); animation: pulse 1.5s infinite; }

.badge-error    { background: var(--red-dim); color: var(--red); }
.badge-error .status-dot    { background: var(--red); }

.badge-unknown  { background: rgba(100,116,139,.1); color: var(--text-3); }
.badge-unknown .status-dot  { background: var(--text-3); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: var(--text-3);
}

.btn-success {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(16,185,129,.3);
}
.btn-success:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(239,68,68,.3);
}
.btn-danger:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-warning {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(245,158,11,.3);
}
.btn-warning:hover {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}

.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled, .btn.loading {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  line-height: 1.4;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,114,82,.12);
}

.form-control::placeholder { color: var(--text-3); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ─── Alerts ────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.alert-success { background: var(--green-dim); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-error   { background: var(--red-dim);   border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: var(--amber-dim); border: 1px solid rgba(245,158,11,.3); color: #fde68a; }
.alert-info    { background: var(--blue-dim);  border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }

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

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

.data-table th {
  text-align: left;
  padding: 10px 16px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr {
  transition: background var(--transition);
}
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }

.data-table .td-name { color: var(--text); font-weight: 500; }
.data-table .td-mono { font-family: var(--font-mono); font-size: 13px; }

/* ─── Page header ───────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.page-header-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
}

/* ─── Server Detail ─────────────────────────────────────── */
.server-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.server-detail-icon {
  width: 56px; height: 56px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.server-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.server-detail-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
  font-family: var(--font-mono);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.info-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-3);
  margin-bottom: 5px;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.info-value.mono { font-family: var(--font-mono); font-size: 14px; }

/* ─── Action buttons row ────────────────────────────────── */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ─── Modal / Dialog ─────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 500;
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  animation: modal-in .18s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Log table ─────────────────────────────────────────── */
.action-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.action-start    { background: var(--green-dim); color: var(--green); }
.action-stop     { background: rgba(100,116,139,.15); color: #94a3b8; }
.action-reboot   { background: var(--blue-dim);  color: var(--blue);  }
.action-reinstall{ background: var(--amber-dim); color: var(--amber); }
.action-reset-pw { background: var(--red-dim);   color: var(--red);   }
.action-sync     { background: var(--accent-dim); color: var(--accent);}

/* ─── Empty state ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 14px;
  color: var(--text-3);
  opacity: .5;
}

.empty-state h3 {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

/* ─── Terminal / password reveal ───────────────────────── */
.terminal-box {
  background: #0a0d12;
  border: 1px solid #1e2535;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #4ade80;
  word-break: break-all;
}

/* ─── Tab navigation ────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Spinner ───────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast notifications ───────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  max-width: 320px;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success { background: #0d3d2a; border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; }
.toast-error   { background: #3d0d0d; border: 1px solid rgba(239,68,68,.4);  color: #fca5a5; }
.toast-info    { background: #0d1d3d; border: 1px solid rgba(59,130,246,.4); color: #93c5fd; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Password input wrapper ─────────────────────────────── */
.input-group {
  position: relative;
}
.input-group .form-control { padding-right: 44px; }
.input-group-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 14px;
}
.input-group-btn:hover { color: var(--text-2); }

/* ─── Admin nav badge ───────────────────────────────────── */
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1.4;
}

/* ─── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i { font-size: 10px; }

/* ─── Color input ───────────────────────────────────────── */
.color-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

input[type="color"] {
  width: 44px; height: 38px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 230px; }

  .sidebar {
    transform: translateX(-100%);
  }

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

  .sidebar-overlay.open { display: block; }

  .portal-main { margin-left: 0; }

  .topbar-menu-btn { display: block; }

  .page-content { padding: 20px 16px; }

  .servers-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .info-grid { grid-template-columns: repeat(2, 1fr); }

  .modal { max-width: 100%; }

  .action-bar { gap: 8px; }
  .action-bar .btn { font-size: 12px; padding: 7px 12px; }

  .server-detail-header { flex-direction: column; }

  .auth-card { padding: 28px 20px; }

  #toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
