/*
 * Career Sentinel — Employer Account Dashboard Styles
 * Supplements employer.css + styles.css. Royal Blue palette, no new tokens.
 */

/* ── Gate ──────────────────────────────────────────────────────────────────── */

.emp-acct-gate {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.emp-acct-gate-inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.emp-acct-gate-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary, #e8eaf0);
  margin: 0;
}

.emp-acct-gate-sub {
  font-size: 1.05rem;
  color: var(--text-muted, #8896b3);
  line-height: 1.6;
  margin: 0;
}

.emp-acct-gate-motto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #e8eaf0);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.emp-acct-signin-btn {
  width: 100%;
  max-width: 340px;
  margin-top: 0.5rem;
}

.emp-acct-gate-note {
  font-size: 0.875rem;
  color: var(--text-muted, #8896b3);
  margin: 0;
}

.emp-acct-link-btn {
  background: none;
  border: none;
  color: var(--brand-bright, #60a5fa);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.emp-acct-link-btn:hover { color: #93c5fd; }

/* ── Loading ─────────────────────────────────────────────────────────────────── */

.emp-acct-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 60vh;
  color: var(--text-muted, #8896b3);
  font-size: 0.95rem;
}

/* ── Dashboard shell ─────────────────────────────────────────────────────────── */

.emp-acct-dashboard {
  padding-bottom: 4rem;
}

.emp-acct-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.emp-acct-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.emp-acct-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary, #e8eaf0);
  margin: 0 0 0.2rem;
}

.emp-acct-email {
  font-size: 0.875rem;
  color: var(--text-muted, #8896b3);
  margin: 0;
}

.emp-acct-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.emp-acct-signout-btn {
  background: none;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 6px;
  color: var(--text-muted, #8896b3);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}
.emp-acct-signout-btn:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: var(--text-primary, #e8eaf0);
}

/* ── Tab nav ─────────────────────────────────────────────────────────────────── */

.emp-acct-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.emp-acct-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted, #8896b3);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  margin-bottom: -1px;
}
.emp-acct-tab:hover { color: var(--text-primary, #e8eaf0); }
.emp-acct-tab-active {
  border-bottom-color: #1d4ed8;
  color: var(--text-primary, #e8eaf0);
  font-weight: 600;
}

/* ── Panels ──────────────────────────────────────────────────────────────────── */

.emp-acct-panel {
  min-height: 320px;
}

/* ── Section headers ─────────────────────────────────────────────────────────── */

.emp-acct-section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.emp-acct-section-head {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #e8eaf0);
  margin: 0 0 0.25rem;
}

.emp-acct-section-sub {
  font-size: 0.875rem;
  color: var(--text-muted, #8896b3);
  margin: 0;
  line-height: 1.5;
}

/* ── State indicators ────────────────────────────────────────────────────────── */

.emp-acct-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted, #8896b3);
  font-size: 0.875rem;
  padding: 1rem 0;
}

.emp-spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.emp-acct-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(96, 165, 250, 0.04);
  border: 1px dashed rgba(96, 165, 250, 0.18);
  border-radius: 12px;
  margin-top: 0.5rem;
}

.emp-acct-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #e8eaf0);
  margin: 0 0 0.5rem;
}

.emp-acct-empty-sub {
  font-size: 0.875rem;
  color: var(--text-muted, #8896b3);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* ── Assessment list cards ───────────────────────────────────────────────────── */

.emp-assess-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.emp-assess-card {
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.emp-assess-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.09);
  transform: translateY(-1px);
}

.emp-assess-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.emp-assess-card-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #e8eaf0);
  margin: 0;
  line-height: 1.3;
}

.emp-assess-card-date {
  font-size: 0.75rem;
  color: var(--text-muted, #8896b3);
  white-space: nowrap;
  flex-shrink: 0;
}

.emp-assess-card-metrics {
  display: flex;
  gap: 1rem;
}

.emp-assess-metric {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.emp-assess-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8896b3);
}

.emp-assess-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #e8eaf0);
  line-height: 1.1;
}

.emp-assess-metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #8896b3);
}

.emp-assess-card-readiness-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(29, 78, 216, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.2);
  align-self: flex-start;
}

.emp-assess-card-arrow {
  font-size: 0.8rem;
  color: var(--text-muted, #8896b3);
  align-self: center;
}

/* ── Detail view ─────────────────────────────────────────────────────────────── */

.emp-assess-detail-header {
  margin-bottom: 1.5rem;
}

/* ── Profile form ────────────────────────────────────────────────────────────── */

.emp-acct-profile-form {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.emp-acct-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.emp-acct-input {
  width: 100%;
  max-width: 100%;
}

.emp-acct-select {
  appearance: none;
  -webkit-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='%238896b3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.emp-acct-profile-error {
  font-size: 0.85rem;
  color: #f87171;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(248, 113, 113, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ── Inline report (after authed assess) ─────────────────────────────────────── */

.emp-acct-inline-report-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.emp-acct-save-notice {
  font-size: 0.8rem;
  color: #34d399;
  margin: 0;
}

/* ── Roster tab ──────────────────────────────────────────────────────────────── */

.emp-acct-roster-actions-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

/* ── Stubs (seats / candidates) ──────────────────────────────────────────────── */

.emp-acct-seats-stub,
.emp-acct-candidates-stub {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(96, 165, 250, 0.04);
  border: 1px dashed rgba(96, 165, 250, 0.18);
  border-radius: 12px;
}

.emp-acct-seats-head {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #e8eaf0);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.emp-acct-coming-soon-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(212, 167, 44, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(212, 167, 44, 0.25);
}

.emp-acct-seats-desc {
  font-size: 0.875rem;
  color: var(--text-muted, #8896b3);
  margin: 0;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .emp-acct-header {
    flex-direction: column;
  }
  .emp-acct-header-right {
    width: 100%;
    justify-content: flex-start;
  }
  .emp-acct-tabs {
    gap: 0;
  }
  .emp-acct-tab {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
  }
  .emp-assess-list {
    grid-template-columns: 1fr;
  }
}

/* The [hidden] attribute must win over the flex/block display these state
   containers carry, or gate/loading/dashboard stack on top of each other. */
.emp-acct-gate[hidden],
.emp-acct-loading[hidden],
.emp-acct-dashboard[hidden] { display: none !important; }
