.theme-dashboard {
  --bg-color: #f0f4f8;
  --card-bg: #ffffff;
  --primary: #2c5282;
  --accent: #4fd1c5;
  --text-main: #2d3748;
  --text-muted: #718096;
}

.theme-dashboard {
  background-color: var(--bg-color);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: var(--text-main);
}

.theme-dashboard .app-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.theme-dashboard .app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 10px 0;
}

.theme-dashboard .user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-dashboard .avatar {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.theme-dashboard h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--primary);
}
.theme-dashboard p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.theme-dashboard .install-pill {
  background: var(--accent);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: none; /* Only shows when installable */
}

.theme-dashboard .stats-bar {
  display: flex;
  background: var(--primary);
  padding: 20px;
  border-radius: 16px;
  color: white;
  margin-bottom: 25px;
  box-shadow: 0 10px 15px -3px rgba(44, 82, 130, 0.2);
}

.theme-dashboard .stat-item {
  flex: 1;
  text-align: center;
}
.theme-dashboard .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
}
.theme-dashboard .stat-label {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
}

.theme-dashboard .quiz-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.theme-dashboard .quiz-card {
  background: var(--card-bg);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  user-select: none;
  gap: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.theme-dashboard .quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-dashboard .quiz-card:active {
  transform: scale(0.97);
}

.theme-dashboard .card-icon {
  font-size: 1.8rem;
  background: #edf2f7;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.theme-dashboard .card-content {
  flex: 1;
}
.theme-dashboard .card-content h3 {
  margin: 0;
  font-size: 1rem;
}
.theme-dashboard .card-content p {
  font-size: 0.8rem;
  margin-top: 2px;
}

.theme-dashboard .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.theme-dashboard .back-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.theme-dashboard .badge {
  display: inline-block;
  background: #e6fffa;
  color: #2c7a7b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: bold;
  margin-top: 8px;
}

.theme-dashboard .arrow {
  color: var(--text-muted);
  font-weight: bold;
}

.theme-dashboard .disclaimer-box {
  background-color: #fffaf0;
  border: 1px solid #feebc8;
  border-left: 4px solid #ed8936;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.theme-dashboard .disclaimer-box strong {
  display: block;
  color: #9c4221;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.theme-dashboard .disclaimer-box p {
  color: #7b341e;
  font-size: 0.8rem;
  line-height: 1.4;
}

.theme-dashboard .app-footer {
  margin-top: 40px;
  padding-bottom: 20px;
  text-align: center;
}

.theme-dashboard .contact-section {
  background: #edf2f7;
  padding: 20px;
  border-radius: 12px;
}

.theme-dashboard .contact-section h4 {
  margin: 0 0 8px 0;
  color: var(--primary);
  font-size: 1rem;
}

.theme-dashboard .email-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
}

.theme-dashboard .email-link:hover {
  text-decoration: underline;
}

@media (display-mode: standalone) {
  .theme-dashboard .notes-section-card {
    display: none;
  }
}
