/* Server-rendered admin panel additions on top of the design's styles.css */

/* Login page */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.login-hero {
  background: var(--accent-grad);
  color: white;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.login-hero::before {
  content: ""; position: absolute; right: 80px; bottom: -120px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.login-hero h1 {
  font-size: 32px; line-height: 1.2; margin: 0; font-weight: 600;
  letter-spacing: -0.5px; position: relative; z-index: 1;
}
.login-hero p { opacity: 0.85; font-size: 14px; max-width: 420px; position: relative; z-index: 1; }
.login-hero-mark {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.18); display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px); margin-bottom: 32px;
  position: relative; z-index: 1;
}
.login-form {
  padding: 64px; display: flex; flex-direction: column; justify-content: center;
  max-width: 480px; width: 100%; margin: 0 auto;
}
.login-form h2 { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.3px; }
.login-form .login-sub { color: var(--text-3); margin: 0 0 28px; font-size: 14px; }
.login-form .label { margin-top: 14px; }
.login-form .errors {
  background: var(--danger-bg); color: var(--danger);
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px;
  margin-bottom: 14px;
}
.login-form .btn-primary { width: 100%; justify-content: center; padding: 11px 14px; margin-top: 18px; }

/* Toast list */
.toast-stack {
  position: fixed; top: 76px; right: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
}
.toast.toast-success { background: var(--success); }
.toast.toast-error { background: var(--danger); }
.toast.toast-warning { background: var(--warning); }
.toast.toast-info { background: var(--info); }

/* Simple visibility helper */
.is-hidden { display: none !important; }

/* Drawer used as modal for customer detail (server-rendered version) */
.detail-shell { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }

/* Tweaks panel */
.tweaks {
  position: fixed; right: 16px; bottom: 16px;
  width: 280px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  z-index: 60; padding: 14px;
}
.tweaks h4 {
  font-size: 12px; font-weight: 600; margin: 0 0 8px;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px;
}
.tweaks .row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.tweaks input[type="color"] { width: 32px; height: 24px; border: none; padding: 0; background: transparent; }

/* Permission matrix tweaks */
.matrix .perm-cell { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; align-items: center; justify-content: center; }
.matrix .perm-yes { background: var(--success-bg); color: var(--success); }
.matrix .perm-no  { background: #F4F4F7; color: var(--text-4); }

/* Phone preview */
.phone-preview {
  background: #1F1B2E; border-radius: 14px; padding: 16px; color: white;
  min-height: 110px;
}
.phone-preview .meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; opacity: 0.7; margin-bottom: 10px;
}
.phone-preview .preview-mark {
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
}
.phone-preview .title-line { font-weight: 600; font-size: 14px; }
.phone-preview .body-line { font-size: 12.5px; opacity: 0.85; margin-top: 4px; }

/* Misc */
.muted-strong { color: var(--text-2); font-weight: 500; }
.kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  background: var(--bg-soft); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}
.alert-banner {
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--warning-bg); color: var(--warning);
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  margin-bottom: 14px;
}
