/* ============================================================
   App-Specific Styles — REP HQ
   Supplements hq-ui.css + hq-header.css with page-specific
   patterns not in the shared kit.
   ============================================================ */

/* ===================
   LOGIN PAGE
   =================== */

.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #011F2B;
  font-family: degular, 'Calibri', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
  position: relative;
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-image: url('/static/assets/ridgemont_bg_texture.jpg');
}

.login-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.login-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 3rem;
}

.login-logo img {
  height: 64px;
  width: auto;
}

.login-hq-mark {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 58px;
  color: white;
  letter-spacing: -0.07em;
  line-height: 1;
}

.login-error {
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(240, 86, 34, 0.2);
  border: 1px solid rgba(240, 86, 34, 0.4);
  border-radius: 6px;
  color: #F05622;
  font-size: 0.875rem;
  text-align: center;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 261px;
  padding: 0.75rem 0;
  background: #011F2B;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: degular, 'Calibri', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.025em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.login-footer-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 1.5rem;
}

.login-footer {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  font-weight: 300;
  text-align: center;
}


/* ===================
   ADMIN TOGGLE SWITCH
   =================== */

.hq-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.hq-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.hq-toggle-track {
  position: absolute;
  inset: 0;
  background: #d1dbe3;
  border-radius: 10px;
  transition: background 0.2s;
}

.hq-toggle input:checked + .hq-toggle-track {
  background: #2B76A5;
}

.hq-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hq-toggle input:checked ~ .hq-toggle-thumb {
  transform: translateX(16px);
}


/* ===================
   MODAL
   =================== */

.hq-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hq-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #dde2e6;
}

.hq-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #415A68;
}

.hq-modal-close {
  background: none;
  border: none;
  color: #96A39C;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.2rem;
  line-height: 1;
}

.hq-modal-close:hover {
  color: #415A68;
}

.hq-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.hq-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid #dde2e6;
  gap: 0.5rem;
}

.hq-modal-footer .hq-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.hq-modal-error {
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  background: #fff0ec;
  border: 1px solid rgba(240, 86, 34, 0.3);
  border-radius: 4px;
  color: #F05622;
  font-size: 0.85rem;
}


/* ===================
   STAT CARDS
   =================== */

.stat-card {
  text-align: center;
  padding: 1.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 300;
  color: #2B76A5;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: #96A39C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}


/* ===================
   EMPTY STATE
   =================== */

.hq-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #96A39C;
}

.hq-empty svg {
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.hq-empty p {
  margin: 0;
  font-size: 0.9rem;
}
