/* Base Dashboard Styles */
#wpadminbar {
  display: none !important;
}

body button :focus {
  background: inherit;
}

.gpt-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  color: var(--dk-text);
}

#site-header, #site-footer, .page-header {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

body {
  padding-top: 0 !important;
}

body.logged-in.gym-client #wpadminbar {
  display: none !important;
}

body.logged-in.gym-client {
  padding-top: 0 !important;
}

/* Spinner */
.gpt-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--dk-border);
  border-top-color: var(--dk-accent);
  border-radius: 50%;
  animation: gpt-spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

/* ------------------------------------------------------------------ */
/* SECTION CARDS                                                        */
/* ------------------------------------------------------------------ */
.gpt-dashboard-card {
  background: var(--dk-surface);
  border-radius: var(--dk-radius);
  border: 1px solid var(--dk-border);
  box-shadow: var(--dk-shadow-sm);
  overflow: hidden;
}

.gpt-dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--dk-border);
  background: var(--dk-surface-2);
}

.gpt-dashboard-card-header svg {
  color: var(--dk-text-muted);
  flex-shrink: 0;
}

.gpt-dashboard-card-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dk-text);
  letter-spacing: 0.01em;
  text-transform: none;
}

.gpt-dashboard-card-body {
  padding: 20px 22px;
}

/* ------------------------------------------------------------------ */
/* EMPTY STATES                                                         */
/* ------------------------------------------------------------------ */

/* Legacy (bookings panel) */
.gpt-empty-state {
  text-align: center;
  padding: 48px 32px;
  background: var(--dk-surface-2);
  border-radius: var(--dk-radius-sm);
  border: 1px dashed var(--dk-border-hover);
}

.gpt-empty-state svg {
  color: var(--dk-text-muted);
  margin-bottom: 16px;
  stroke-width: 1.5;
}

.gpt-empty-state h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dk-text);
  margin: 0 0 8px 0;
}

.gpt-empty-state p {
  font-size: 13px;
  color: var(--dk-text-sub);
  margin: 0 auto;
  max-width: 380px;
}

/* Premium card empty state (metrics / notes / exercises) */
.gpt-empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 40px;
  text-align: center;
}

.gpt-empty-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: var(--dk-surface-2);
  border: 1px solid var(--dk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--dk-text-muted);
}

.gpt-empty-state-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dk-text);
  margin: 0 0 7px 0;
  letter-spacing: -0.01em;
}

.gpt-empty-state-desc {
  font-size: 13px;
  color: var(--dk-text-sub);
  margin: 0 auto;
  max-width: 320px;
  line-height: 1.6;
}

/* Inline placeholder text */
.gpt-empty-state-text {
  text-align: center;
  color: var(--dk-text-muted);
  font-size: 13px;
  padding: 36px 20px;
  margin: 0;
}

.gpt-loading-text {
  text-align: center;
  color: var(--dk-text-muted);
  font-size: 13px;
  padding: 36px 20px;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* NOTE CARDS                                                           */
/* ------------------------------------------------------------------ */
.gpt-note-card {
  background: var(--dk-surface-2);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}

.gpt-note-card:last-child {
  margin-bottom: 0;
}

.gpt-note-card:hover {
  border-color: var(--dk-border-hover);
}

.gpt-note-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gpt-note-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--dk-text);
}

.gpt-note-date {
  font-size: 11px;
  color: var(--dk-text-muted);
  font-weight: 500;
}

.gpt-note-body {
  font-size: 14px;
  color: var(--dk-text-sub);
  line-height: 1.65;
  white-space: pre-wrap;
}

.gpt-error-text {
  text-align: center;
  color: var(--dk-red);
  font-size: 13px;
  padding: 36px 20px;
}

/* ── Premium dashboard footer ── */
/* ── Dashboard footer — mirrors the header card style ── */
.gpt-dashboard-footer {
  margin-top: 48px;
  border-radius: 18px;
  background: #12151e;
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.gpt-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 36px;
}

/* Left — brand */
.gpt-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gpt-footer-logo {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.gpt-footer-logo:hover {
  opacity: 1;
}

.gpt-footer-brand-text {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.gpt-footer-tagline {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Center — nav links */
.gpt-footer-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.gpt-footer-nav-link {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.gpt-footer-nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
}

/* Right — meta */
.gpt-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.gpt-footer-copy {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.gpt-footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  transition: color 0.15s;
}

.gpt-footer-powered:hover {
  color: var(--dk-accent);
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .gpt-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 18px;
  }
  .gpt-footer-meta {
    align-items: center;
  }
  .gpt-footer-nav {
    gap: 2px;
  }
}
