/* dashboard.css - Premium Glassmorphism UI */

.dashboard-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 56px;
  position: relative;
  z-index: 10;
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  min-height: 56px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.dashboard-header__brand {
  justify-self: center;
}

.dashboard-header__back {
  justify-self: start;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, var(--flow-blue) 0 66%, var(--flow-dark) 66%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
}

.logo-mark::before {
  width: 16px;
  height: 3px;
  left: 4px;
  bottom: 5px;
}

.logo-mark::after {
  width: 3px;
  height: 16px;
  right: 5px;
  top: 4px;
  opacity: 0.7;
}

.user-info {
  justify-self: end;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info span {
    font-weight: 600;
    color: #bfdbfe;
}

/* Login Section */
.login-card {
  max-width: 430px;
  margin: 72px auto;
  text-align: center;
  padding: 36px 30px;
}

.login-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

.form-group {
    text-align: left;
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--flow-blue);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

#loginBtn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* Dashboard Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.stat-icon {
  font-size: 30px;
  background: rgba(var(--accent-rgb), 0.1);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.stat-content h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1;
}

.level-badge {
    color: #bfdbfe;
}

/* Promo / Quiz / Queue Section */
.weekly-quiz-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 18px;
}

.quiz-promo {
  background: rgba(15, 23, 42, 0.72);
  border-left: 4px solid var(--flow-blue);
  padding: 30px;
}

.quiz-promo h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

.quiz-promo p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.quiz-status {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.review-queue {
    text-align: center;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-queue h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.review-queue p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.review-queue strong {
    font-size: 24px;
    color: #f59e0b;
    /* amber for repeating words */
    display: block;
    margin: 8px 0;
}

/* Utilities */
.hidden {
    display: none !important;
}

@media (max-width: 768px) {
  .dashboard-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .dashboard-header__back,
  .dashboard-header__brand,
  .user-info {
    justify-self: center;
  }

  .weekly-quiz-container {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 104px;
  }
}
