/* ===================================================================
   LEEFHub – User Dashboard (Frontend)
   -------------------------------------------------------------------
   Contains ONLY dashboard-specific layout + sections.
   Shared UI (buttons, cards, inputs, badges) lives in core-ui.css
=================================================================== */

/* ===================================================================
   TILE BOOKING WRAPPER
=================================================================== */
.lh-tile-form-wrapper {
    margin-top: 12px;
    padding: 16px;
    background: var(--lh-bg);
    border: 1px solid var(--lh-border);
    border-radius: 10px;
}


/* ===================================================================
   1. DASHBOARD ROOT
=================================================================== */
.leefhub-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  box-sizing: border-box;
}


/* ===================================================================
   2. DASHBOARD HEADER
=================================================================== */
.leefhub-dashboard-header {
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  box-shadow: var(--lh-shadow);
  padding: 24px 30px;
  margin-bottom: 40px;
}

.leefhub-welcome {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 8px;
}

.leefhub-subtext {
  color: var(--lh-text-muted);
}


/* ===================================================================
   3. NEXT UPCOMING CLASS (Hero)
=================================================================== */
.leefhub-next-class {
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--lh-shadow);
}

.lh-hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.lh-next-class-info strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.lh-next-class-info .lh-time {
  font-size: 0.95rem;
  color: var(--lh-text-muted);
  margin-bottom: 12px;
}


/* ===================================================================
   4. QUICK ACTIONS (Tiles)
=================================================================== */
.leefhub-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.lh-tile h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.lh-tile p {
  color: var(--lh-text-muted);
  margin-bottom: 12px;
}

.lh-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}


/* ===================================================================
   5. CLASSES LIST (Upcoming + Past)
=================================================================== */
.leefhub-classes .lh-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 12px;
  color: var(--lh-text);
}

.booking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 14px;
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  border-radius: 8px;
  margin-bottom: 10px;

  transition: background 0.25s ease;
}

.booking-row:hover {
  background: var(--lh-bg);
}

.leefhub-event-time {
  color: var(--lh-text-muted);
  font-size: 0.9em;
}

.lh-zoom-btn {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lh-primary);
}

.lh-past {
  opacity: 0.55;
}
.lh-past:hover {
  opacity: 0.75;
}


/* ===================================================================
   6. PROFILE + MEMBERSHIP SECTIONS
=================================================================== */
.leefhub-profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .leefhub-profile-columns {
    grid-template-columns: 1fr;
  }
}

.leefhub-profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

  margin-top: 10px;
  margin-bottom: 10px;
  padding: 20px;

  background: var(--lh-surface);
  border-radius: 12px;
  border: 1px solid var(--lh-border);
  box-shadow: var(--lh-shadow);
}

@media (max-width: 768px) {
  .leefhub-profile-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ===================================================================
   7. ACTIVITY LOG (optional)
=================================================================== */
.leefhub-log-stream {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lh-log-entry {
  padding: 14px 16px;
  margin-bottom: 16px;

  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 10px;

  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.lh-log-entry:hover {
  background: #f9f9f9;
}

.lh-log-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 600;
}

.lh-log-summary {
  font-size: 13px;
  margin-bottom: 4px;
  color: #333;
}

.lh-log-time {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

/* ===================================================================
   DASHBOARD BUTTON NORMALIZATION (SAFE)
   Visual consistency only — no layout control
=================================================================== */
.leefhub-dashboard .leefhub-btn {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;

  padding: 10px 18px;        /* consistent padding */
  border-radius: 12px;       /* consistent shape */

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
}

/* Neutralize .small visually (dashboard only) */
.leefhub-dashboard .leefhub-btn.small {
  font-size: 0.95rem;
  padding: 10px 18px;
}
/* ============================================================
   Dashboard — Account Action Buttons
============================================================ */

/* Make Manage Billing match Edit Profile */
.leefhub-dashboard .leefhub-btn-group .leefhub-btn-secondary:not(.lh-btn-logout) {
  background: var(--lh-primary);
  color: #fff;
  border: none;
}

.leefhub-dashboard .leefhub-btn-group
.leefhub-btn-secondary:not(.lh-btn-logout):hover {
  filter: brightness(0.95);
}

/* Subtle danger ONLY for Log Out */
.leefhub-dashboard .lh-btn-logout {
  background: rgba(220, 53, 69, 0.08);
  color: #b02a37;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.leefhub-dashboard .lh-btn-logout:hover {
  background: rgba(220, 53, 69, 0.14);
  color: #8a1f2a;
}


/* ==========================================
   Dashboard success fade-out
========================================== */
.lh-fade-out {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.lh-fade-out.is-hidden {
  opacity: 0;
}

/* ============================================================
   Membership Card — Calm Highlight
============================================================ */

.lh-membership-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  position: relative;
}

/* Header layout */
.lh-membership-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* Plan name */
.lh-plan-name {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Price */
.lh-plan-meta {
  font-size: 0.95rem;
  color: var(--lh-text-muted);
}

/* Dates */
.lh-plan-dates {
  font-size: 0.85rem;
  color: var(--lh-text-muted);
}

/* Status badge (calmer) */
.lh-plan-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =====================
   STATUS STATES
===================== */

/* ACTIVE / TRIALING — subtle emphasis */
.lh-status-active,
.lh-status-trialing {
  border-color: rgba(124, 77, 255, 0.35);
  background: linear-gradient(
    180deg,
    rgba(124, 77, 255, 0.08),
    rgba(124, 77, 255, 0.02)
  );
}

/* Slim accent bar (much softer) */
.lh-status-active::before,
.lh-status-trialing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: rgba(124, 77, 255, 0.7);
}

/* Badge styling */
.lh-status-active .lh-plan-status,
.lh-status-trialing .lh-plan-status {
  background: rgba(124, 77, 255, 0.15);
  color: var(--lh-primary);
}

/* PAST DUE / UNPAID */
.lh-status-past_due,
.lh-status-unpaid {
  background: var(--lh-bg);
  border-style: dashed;
}

.lh-status-past_due .lh-plan-status,
.lh-status-unpaid .lh-plan-status {
  background: rgba(244, 180, 0, 0.15);
  color: #8a6d00;
}

/* CANCELED */
.lh-status-canceled {
  opacity: 0.6;
  background: var(--lh-bg);
}

.lh-status-canceled .lh-plan-status {
  background: #e0e0e0;
  color: #666;
}
