/*
 * custom.css
 * ----------
 * Purpose: Minimal, login-screen-only overrides so the Blade login view matches the provided theme markup
 * without using forbidden `style="..."` attributes inside Blade templates.
 */

/* Dashboard status bar when Reverb/WebSockets are off (shared hosting): muted badge, no pulse */
.live-badge.live-badge--snapshot {
  color: var(--text-400);
}
.live-badge.live-badge--snapshot::before {
  background: var(--text-400);
  animation: none;
}

/* Login panel left branding sizing (theme uses inline styles) */
.login-brand-logo-left {
  width: 52px;
  height: 52px;
  font-size: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.login-title-left {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.login-desc-left {
  color: var(--sb-text);
  font-size: 15px;
  max-width: 340px;
  line-height: 1.7;
  margin: 0 0 40px;
}

.login-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sb-text);
  font-size: 13px;
}

.login-point-icon-heat {
  color: #f59e0b;
  width: 16px;
}

.login-point-icon-qc {
  color: #60a5fa;
  width: 16px;
}

.login-point-icon-prod {
  color: #34d399;
  width: 16px;
}

.login-left-footer {
  position: absolute;
  bottom: 24px;
  left: 60px;
  font-size: 11px;
  color: var(--sb-label);
}

/* Login panel right header sizing (theme uses inline styles) */
.login-brand-logo-right {
  width: 48px;
  height: 48px;
  font-size: 18px;
  border-radius: 12px;
  margin: 0 auto 16px;
}

.login-title-right {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-900);
  margin: 0 0 4px;
}

.login-subtitle-right {
  color: var(--text-400);
  font-size: 13px;
  margin: 0;
}

.login-demo-alert {
  font-size: 12px;
}

.login-password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-forgot-link {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
}

.login-forgot-link:hover {
  text-decoration: underline;
}

.login-forgot-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

.login-remember-label {
  font-size: 13px;
  color: var(--text-500);
}

.login-right-header-inner {
  text-align: center;
  margin-bottom: 32px;
}

/* Theme login submit button sizing overrides (theme uses inline styles on <a>) */
.btn-login {
  justify-content: center;
  padding: 12px;
  font-size: 15px;
  border-radius: 10px;
}

.login-contact-hint {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-400);
}

/*
 * Dashboard-only overrides
 * ------------------------
 * These minimal classes allow us to match the provided theme dashboard layout
 * without using forbidden inline `style="..."` attributes in Blade templates.
 */
.dashboard-g2-2fr-1fr {
  grid-template-columns: 2fr 1fr;
}

.dashboard-chart-220 {
  height: 220px;
}

.dashboard-chart-190 {
  height: 190px;
}

.dashboard-alert-row {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dashboard-alert-row--no-border {
  border-bottom: none;
}

.dashboard-alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.dashboard-alert-dot-red {
  background: var(--red);
}

.dashboard-alert-dot-orange {
  background: var(--orange);
}

.dashboard-alert-dot-yellow {
  background: var(--yellow);
}

.dashboard-alert-dot-accent {
  background: var(--accent);
}

.dashboard-alert-dot-green {
  background: var(--green);
}

.dashboard-alert-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-900);
}

.dashboard-alert-subtitle {
  font-size: 11.5px;
  color: var(--text-400);
  margin-top: 2px;
}

/*
 * Full-width modules
 * -------------------
 * Theme sidebar is `position: fixed` and `main-content` is offset via
 * `margin-left`. We explicitly set `width` so all module pages (tables/cards)
 * span the remaining area consistently.
 */
.main-content {
  width: calc(100% - var(--sb-w));
  box-sizing: border-box;
}

.main-content.sb-collapsed {
  width: calc(100% - var(--sb-collapsed));
}

.dt-card {
  width: 100%;
}

/*
 * Data table card heading spacing
 * -------------------------------
 * The theme does not define `dt-head` padding by default; module headings inside
 * cards can stick to the left edge. Apply consistent inner spacing used across
 * management pages.
 */
.dt-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.dt-head h3 {
  margin: 0;
}

.dt-head small {
  display: block;
  margin-top: 4px;
}

/*
 * Layout header alignment (theme parity)
 * --------------------------------------
 * Keeps Blade markup clean (no inline `style="..."`) while matching a few theme
 * inline styles in the header.
 */
.main-header #live-clock {
  font-size: 13px;
  letter-spacing: 0.05em;
}

.user-chip .fa-chevron-down {
  margin-left: 6px !important;
}

/*
 * Accessibility improvements
 * --------------------------
 * Provides keyboard-visible focus ring and a skip link for quick navigation.
 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
}

.skip-link:focus {
  top: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/*
 * Module help UX
 * --------------
 * Shared info-button and field-help icon styling for all admin modules.
 */
.module-info-btn {
  margin-right: 8px;
}

.module-help-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-700);
}

.module-help-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.field-info-icon {
  border: none;
  background: transparent;
  color: var(--text-400);
  margin-left: 6px;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  vertical-align: middle;
}

.field-info-icon:hover {
  color: var(--accent);
}

/*
 * App tour
 */
.tour-step-meta {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: var(--text-400);
}

.tour-step-content {
  min-height: 72px;
  line-height: 1.7;
  color: var(--text-700);
}

