/* ============================================================
   FRONTLINE EMPLOYER PORTAL — Design System (Light Theme)
   Colors: Navy #0D1B2A | Orange #F4622A | Light Base #F5F7FA
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand */
  --navy: #305ddd;
  --navy-mid: #214db8;
  --navy-card: #FFFFFF;
  --navy-light: #4e73e5;
  --navy-border: #ccd6f6;
  --navy-glow: rgba(48, 93, 221, 0.22);
  --navy-bg: rgba(48, 93, 221, 0.08);
  --orange: #ff631e;
  --orange-hover: #e04e0d;
  --orange-light: #ff7c42;
  --orange-glow: rgba(255, 99, 30, 0.22);
  --orange-bg: rgba(255, 99, 30, 0.08);
  
  --primary: var(--navy);
  --secondary: var(--orange);

  /* Light palette (replaces dark neutrals) */
  --page-bg: #F0F4F8;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #EEF2F7;
  --border: #D8E0EA;
  --border-dark: #B0BECF;
  --border-darker: #666666;
  --border-light: #E8EEF5;
  --border-grey: #666666;

  /* Text */
  --text-primary: #0D1B2A;
  --text-secondary: #3D5068;
  --text-muted: #6E8299;
  --text-faint: #9EB0C4;

  /* Keep for compatibility */
  --white: #FFFFFF;
  --off-white: #E8EDF2;
  --gray-light: #C5D0DC;
  --gray: #8FA3B8;
  --gray-dark: #5A7390;

  /* Semantic */
  --success: #16A34A;
  --success-bg: rgba(22, 163, 74, 0.09);
  --error: #DC2626;
  --error-bg: rgba(220, 38, 38, 0.08);
  --warning: #D97706;
  --info: #2563EB;

  /* Card shadows */
  --shadow-xs: 0 1px 3px rgba(13, 27, 42, 0.08), 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow-sm: 0 4px 12px rgba(13, 27, 42, 0.10), 0 2px 4px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 8px 28px rgba(13, 27, 42, 0.12), 0 4px 10px rgba(13, 27, 42, 0.07);
  --shadow-lg: 0 20px 50px rgba(13, 27, 42, 0.14), 0 8px 20px rgba(13, 27, 42, 0.08);

  /* Glass (used for auth card on light bg) */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(13, 27, 42, 0.08);
  --glass-shadow: var(--shadow-lg);

  /* Design tokens */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* QL Rich Text Box */
  --toolbar-bg: #ededed;
}

/* === RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ============================================================
   AUTH LAYOUT (Register / Login / Verify)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
}

/* Soft geometric background */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 55% at 5% 10%, rgba(48, 93, 221, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 95% 90%, rgba(255, 99, 30, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(48, 93, 221, 0.04) 0%, transparent 80%),
    linear-gradient(160deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
  animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.03);
  }
}

.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(48, 93, 221, 0.04) 1px, transparent 0);
  background-size: 36px 36px;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo img {
  height: 68px;
  /* Show logo naturally on light bg — no invert */
  filter: none;
  transition: var(--transition-fast);
}

.auth-logo img:hover {
  opacity: 0.82;
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-link a {
  color: var(--orange);
  font-weight: 700;
  transition: var(--transition-fast);
}

.auth-link a:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

.text-link {
  color: var(--orange);
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

.text-link:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

.auth-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============================================================
   STEP PROGRESS INDICATOR
   ============================================================ */

.steps-indicator {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: default;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
  transition: var(--transition);
  z-index: 0;
}

.step-item.completed:not(:last-child)::after {
  background: var(--orange);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--surface-3);
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.step-item.active .step-circle {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 4px var(--navy-glow);
}

.step-item.completed .step-circle {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.step-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-top: 7px;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.step-item.active .step-label {
  color: var(--navy);
}

.step-item.completed .step-label {
  color: var(--text-muted);
}

/* ============================================================
   FORM STEPS (animated)
   ============================================================ */

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-heading i {
  color: var(--orange);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group {
  margin-bottom: 20px;
  position: relative;
}

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

@media (max-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.form-label .req {
  color: var(--orange);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-darker);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 5px 6px 6px 2px rgba(13, 27, 42, 0.1);
}

.form-control:focus {
  border-color: var(--navy);
  border-width: 1.5px;
  box-shadow: 0 0 0 4px var(--navy-glow), 0 2px 4px rgba(13, 27, 42, 0.08);
  background: var(--surface);
}

.form-control::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.form-control.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-control.is-success {
  border-color: var(--success);
}

/* Icon-wrapped input */
.input-wrap {
  position: relative;
}

.input-wrap .form-control {
  padding-left: 42px;
}

.input-wrap .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: 5;
}

.input-wrap:focus-within .ico {
  color: var(--navy);
}

.input-wrap .ico-right {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
}

.input-wrap .ico-right:hover {
  color: var(--orange);
}

/* Email status badge */
.email-status-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.email-status-badge.checking {
  color: var(--text-muted);
}

.email-status-badge.available {
  color: var(--success);
}

.email-status-badge.taken {
  color: var(--error);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E8299' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--surface);
  padding-right: 40px;
  cursor: pointer;
}

select.form-control option {
  background: var(--surface);
  color: var(--text-primary);
  padding: 6px 0;
}

select.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--surface-3);
}

select.form-control.skeleton {
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

@keyframes skeletonPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.9;
  }
}

textarea.form-control {
  resize: vertical;
  min-height: 96px;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 5px;
}

.form-error {
  display: none;
  align-items: center;
  gap: 5px;
  color: var(--error);
  font-size: 0.72rem;
  margin-top: 5px;
}

.form-error.show {
  display: flex;
}

/* === PASSWORD STRENGTH === */
.pwd-strength {
  margin-top: 8px;
}

.strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.s-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.strength-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  transition: color 0.3s;
}

.pw-weak .s-bar:nth-child(1) {
  background: var(--error);
}

.pw-fair .s-bar:nth-child(-n+2) {
  background: var(--warning);
}

.pw-good .s-bar:nth-child(-n+3) {
  background: var(--info);
}

.pw-strong .s-bar {
  background: var(--success);
}

.pw-weak .strength-label {
  color: var(--error);
}

.pw-fair .strength-label {
  color: var(--warning);
}

.pw-good .strength-label {
  color: var(--info);
}

.pw-strong .strength-label {
  color: var(--success);
}

/* ============================================================
   CHECKBOX
   ============================================================ */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.check-row label {
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.check-row label a {
  color: var(--orange);
  font-weight: 600;
}

.check-row label a:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(48, 93, 221, 0.25);
}

.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(48, 93, 221, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(48, 93, 221, 0.25);
}

.btn-navy {
  background: var(--orange) !important;
  color: #fff !important;
  border-color: var(--orange) !important;
  box-shadow: 0 2px 8px rgba(255, 99, 30, 0.25);
}

.btn-navy:hover {
  background: var(--orange-hover) !important;
  border-color: var(--orange-hover) !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(255, 99, 30, 0.38);
}

.btn-ghost {
  background: var(--surface-3);
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
}

.btn-ghost-orange {
  background: var(--orange);
  color: white !important;
  border-color: var(--orange) !important;
}

.btn-ghost-orange:hover {
  background: var(--orange-hover) !important;
  border-color: var(--orange-hover) !important;
  color: white !important;
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--text-faint);
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

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

.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.form-nav .btn {
  flex: 1;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.alert i {
  margin-top: 1px;
  flex-shrink: 0;
  font-size: 15px;
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: var(--success);
}

.alert-error {
  background: var(--error-bg);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--error);
}

.alert-warning {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: var(--warning);
}

.alert-info {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--info);
}

/* ============================================================
   AUTH BOTTOM LINK
   ============================================================ */
.auth-link {
  text-align: center;
  margin-top: 22px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.auth-link a {
  color: var(--orange);
  font-weight: 700;
  transition: var(--transition-fast);
}

.auth-link a:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

/* ============================================================
   DEV NOTICE
   ============================================================ */
.dev-notice {
  background: rgba(217, 119, 6, 0.06);
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--warning);
}

.dev-notice strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
}

.dev-notice a {
  color: var(--orange);
  word-break: break-all;
}

/* ============================================================
   VERIFY PAGE
   ============================================================ */
.verify-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 24px;
}

.verify-icon.ok {
  background: var(--success-bg);
  color: var(--success);
  border: 2px solid rgba(22, 163, 74, 0.25);
}

.verify-icon.bad {
  background: var(--error-bg);
  color: var(--error);
  border: 2px solid rgba(220, 38, 38, 0.25);
}

.verify-center {
  text-align: center;
  padding: 16px 0;
}

.verify-center h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.verify-center p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ============================================================
   ADMIN LAYOUT (Dashboard)
   ============================================================ */
.admin-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--page-bg);
}

/* --- SIDEBAR --- */
.sidebar {
  width: 262px;
  background: #eee;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform 0.3s ease;
  overflow: hidden;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}

.sb-logo {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.sb-logo img {
  height: 38px;
}

.sb-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 22px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link i {
  color: var(--navy); /* Icons are the primary color */
}

.nav-link:hover {
  color: var(--navy-mid);
  background: rgba(0, 0, 0, 0.04);
  border-left-color: var(--navy-light);
}

.nav-link.active {
  color: var(--navy);
  background: var(--navy-bg);
  border-left-color: var(--navy);
  font-weight: 700;
}

.nav-link i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sb-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sb-avatar {
  width: 36px;
  height: 36px;
  background: var(--navy-bg);
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.sb-user-info {
  flex: 1;
  min-width: 0;
}

.sb-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- ADMIN MAIN --- */
.admin-main {
  flex: 1;
  margin-left: 262px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- TOPBAR --- */
.topbar {
  height: 62px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-grey);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.topbar-left {
  flex: 1;
}

.topbar-left h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-left p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: var(--orange-bg);
}

.dot-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

.menu-toggle {
  display: none;
}

/* --- PAGE CONTENT --- */
.page-content {
  flex: 1;
  padding: 28px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.page-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- WELCOME BANNER --- */
.welcome-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 98, 42, 0.22) 0%, transparent 70%);
}

.wb-icon {
  width: 56px;
  height: 56px;
  background: rgba(244, 98, 42, 0.15);
  border: 1.5px solid rgba(244, 98, 42, 0.4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-light);
  font-size: 22px;
  flex-shrink: 0;
}

.wb-text h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.wb-text p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.wb-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* --- STATS GRID --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.stat-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.08;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-card.c-orange::after {
  background: var(--orange);
}

.stat-card.c-blue::after {
  background: var(--info);
}

.stat-card.c-green::after {
  background: var(--success);
}

.stat-card.c-warn::after {
  background: var(--warning);
}

.stat-ico {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 14px;
}

.stat-ico.c-orange {
  background: var(--orange-bg);
  color: var(--orange);
}

.stat-ico.c-blue {
  background: rgba(37, 99, 235, 0.09);
  color: var(--info);
}

.stat-ico.c-green {
  background: var(--success-bg);
  color: var(--success);
}

.stat-ico.c-warn {
  background: rgba(217, 119, 6, 0.09);
  color: var(--warning);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- QUICK ACTIONS --- */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.qa-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.qa-card:hover {
  border-color: var(--orange);
  background: var(--orange-bg);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(244, 98, 42, 0.14);
}

.qa-ico {
  width: 48px;
  height: 48px;
  background: var(--orange-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
}

.qa-card:hover .qa-ico {
  background: rgba(244, 98, 42, 0.15);
}

.qa-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.qa-card:hover .qa-label {
  color: var(--orange-hover);
}

/* --- CARD --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
}

.card-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body {
  padding: 22px;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -10px;
  margin-bottom: 20px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

/* --- STATUS BADGE --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-pending {
  background: rgba(217, 119, 6, 0.10);
  color: var(--warning);
}

.badge-active {
  background: var(--success-bg);
  color: var(--success);
}

.badge-inactive {
  background: var(--error-bg);
  color: var(--error);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

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

  .menu-toggle {
    display: flex;
  }

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

  .welcome-banner {
    flex-wrap: wrap;
  }

  .wb-actions {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--page-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}


/* ============================================================
   COMPANY PROFILE SPECIFIC
   ============================================================ */

/* Logo Upload & Preview */
.logo-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  background: var(--surface-2);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.logo-upload-box:hover {
  border-color: var(--orange);
  background: var(--orange-bg);
}

.logo-preview-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.logo-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview-circle i {
  font-size: 32px;
  color: var(--text-faint);
}

.logo-upload-box .btn-upload {
  font-size: 0.75rem;
  padding: 6px 16px;
}

/* Quill Editor Premium Styling */
.ql-container.ql-snow {
  border: 1.5px solid var(--border-darker) !important;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font) !important;
  font-size: 0.9rem !important;
  min-height: 160px;
}

.ql-toolbar.ql-snow {
  border: 1.5px solid var(--border-darker) !important;
  border-bottom: none !important;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: var(--surface-2);
  padding: 8px 12px !important;
}

.ql-toolbar {
  background: var(--toolbar-bg) !important;
}

.ql-editor {
  min-height: 160px;
  color: var(--text-primary);
}

.ql-editor.ql-blank::before {
  color: var(--text-faint) !important;
  font-style: normal !important;
}

.ql-snow .ql-stroke {
  stroke: var(--text-secondary) !important;
}

.ql-snow .ql-fill {
  fill: var(--text-secondary) !important;
}

.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
  color: var(--orange) !important;
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--orange) !important;
}

/* Group Entity Selection */
.group-toggle-area {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 8px;
}

.toggle-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.toggle-item input {
  accent-color: var(--orange);
  width: 17px;
  height: 17px;
}

.dependent-field {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
  animation: fadeSlideIn 0.3s ease;
}

.dependent-field.show {
  display: block;
}

/* Form Section Header */
.form-section-header {
  margin: 32px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-section-header i {
  color: var(--orange);
  font-size: 1.1rem;
}

/* Job Vacancies Table & Tags */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--surface-2);
  padding: 12px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-light);
}

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

.data-table tr:hover {
  background: var(--surface-2);
}

.job-title-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-title-cell strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.invite-only-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 98, 42, 0.1);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  width: max-content;
}

.dept-level-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dept-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
}

.level-label {
  color: var(--text-faint);
  font-size: 0.75rem;
}

.table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-invite {
  color: var(--orange) !important;
  font-weight: 600;
  border-color: rgba(244, 98, 42, 0.2) !important;
}

.btn-invite:hover {
  background: var(--orange) !important;
  color: white !important;
}

.text-mono {
  font-family: monospace;
  font-weight: 600;
  color: var(--text-secondary) !important;
  letter-spacing: 0.5px;
}

/* Badge enhancements */
.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

/* Competency Chips */
.competency-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  min-height: 40px;
}

.comp-chip {
  padding: 8px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 30px;
  background: white;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-chip i {
  font-size: 0.8rem;
  opacity: 0.5;
}

.comp-chip:hover {
  border-color: var(--orange);
  background: rgba(244, 98, 42, 0.05);
  color: var(--orange);
}

.comp-chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 98, 42, 0.3);
}

.comp-chip.active i {
  opacity: 1;
}

.comp-limit-hint {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 8px;
}

/* Count Bubbles for Apps */
.count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-light);
  border-radius: 50%;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.count-bubble.invitee {
  color: var(--orange);
  border-color: rgba(244, 98, 42, 0.2);
  background: rgba(244, 98, 42, 0.05);
}

.count-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 31, 56, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  width: 90%;
  max-width: 850px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 30px;
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  background: #f8fafc;
}

.modal-footer {
  padding: 15px 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  background: white;
}

/* Profile Display */
.profile-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto 10px;
}

.profile-info-item {
  margin-bottom: 12px;
}

.profile-info-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.profile-section {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.profile-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.role-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
}

.role-item:last-child {
  border-bottom: 0;
}

.role-title {
  font-weight: 700;
  color: var(--text-primary);
}

.role-meta {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 3px;
}

.comp-score {
  float: right;
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
}

/* ============================================================
   NEW DASHBOARD & BI STYLES
   ============================================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.qa-vertical-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
  text-decoration: none;
}

.qa-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateX(4px);
  color: #fff;
}

.qa-btn i {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.simple-list li:hover {
  background: var(--surface-2);
}

.simple-list li:last-child {
  border-bottom: none;
}

.li-info {
  display: flex;
  flex-direction: column;
}

.li-info strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.li-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bi-card .card-body {
  padding: 24px;
}

/* Analytics Page Specifics */
.analytics-header-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.data-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.data-row>.card {
  flex: 1;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   ENHANCED PROFILE MODAL 
   ========================================== */
.prof-category {
  margin-bottom: 24px;
}

.prof-category-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--orange-bg);
  padding-bottom: 6px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prof-category-title i {
  color: var(--orange);
}

.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.prof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.prof-item i {
  color: var(--success);
  font-size: 0.9rem;
}

.prof-item:hover {
  border-color: var(--orange-light);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

/* Modal Sidebar tweaks */
.profile-sidebar {
  padding-right: 20px;
  border-right: 1px solid var(--border-light);
}

.modal-footer {
  gap: 12px;
}

.btn-toggle-shortlist {
  min-width: 180px;
}

.btn-toggle-shortlist.is-shortlisted {
  background: var(--error);
  border-color: var(--error);
}

.btn-toggle-shortlist.is-shortlisted:hover {
  background: #b91c1c;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--surface);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================================
   UNIT LOCATIONS LIST
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.location-item-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.location-item-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}

.location-item-card .loc-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.location-item-card .loc-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.location-item-card .btn-del {
  background: var(--error-bg);
  color: var(--error);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.location-item-card .btn-del:hover {
  background: var(--error);
  color: #fff;
}

/* ============================================================
   FEATURES CHECKLIST WIDGET
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--surface);
  user-select: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.feature-item:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}
.feature-item.selected {
  border-color: var(--primary);
  background: var(--navy-bg);
  color: var(--primary);
  font-weight: 500;
}
.feature-item input[type="checkbox"] {
  accent-color: var(--primary);
  cursor: pointer;
  width: 15px;
  height: 15px;
}
.feature-item i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
}
.feature-item.selected i {
  color: var(--primary);
}

/* ============================================================
   CALENDAR & MODALS
   ============================================================ */
.calendar-grid-cell {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 90px;
}
.calendar-grid-cell:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-xs);
  background: var(--surface-2);
}
.calendar-grid-cell.today {
  background: var(--navy-bg);
  border-color: var(--primary);
}
.calendar-grid-cell.other-month {
  background: #f8fafc;
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.calendar-event-badge {
  display: block;
  font-size: 0.65rem;
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.calendar-event-badge:hover {
  filter: brightness(0.9);
}
.calendar-event-badge.booked {
  background: var(--primary);
  color: #ffffff;
}
.calendar-event-badge.blocked {
  background: var(--secondary);
  color: #ffffff;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close:hover {
  color: var(--error);
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--surface-2);
}

/* Tab Switching inside Modal */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
}
.modal-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-fast);
}
.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.modal-tab-content {
  display: none;
}
.modal-tab-content.active {
  display: block;
}