@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #795548;
  --primary-light: #8D6E63;
  --primary-lighter: #A1887F;
  --primary-lightest: #BCAAA4;
  --bg: #EFEBE9;
  --bg-card: #ffffff;
  --bg-subtle: #f0f9f8;
  --text: #1a2e2b;
  --text-secondary: #4a6b66;
  --text-muted: #7a9994;
  --border: #b2dfdb;
  --border-light: #e0f2f1;
  --shadow-sm: 0 1px 3px rgba(0, 77, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 77, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 77, 64, 0.1);
  --dot-yesterday: #00897B;
  --dot-today: #26A69A;
  --dot-blockers: #e57373;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

::selection {
  background: var(--primary-lightest);
  color: var(--text);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
}

.loading-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-lighter);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-lightest) 50%, var(--bg) 100%);
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 32px;
}

.login-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== APP SHELL ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  font-size: 1.5rem;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-radius: 999px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-lightest);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.logout-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  border-color: var(--primary-lighter);
  color: var(--primary);
}

/* ===== TAB BAR ===== */
.tab-bar {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
}

.tab-btn {
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  padding: 24px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* ===== STANDUP FORM ===== */
.board-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 0.4s ease-out;
}

.standup-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.form-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.label-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-yesterday {
  background: var(--dot-yesterday);
}

.dot-today {
  background: var(--dot-today);
}

.dot-blockers {
  background: var(--dot-blockers);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-subtle);
  resize: vertical;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-lighter);
  box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.15);
  background: var(--bg-card);
}

.form-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.submit-btn {
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cancel-btn {
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  border-color: var(--primary-lighter);
  color: var(--primary);
}

.edit-btn {
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  background: var(--primary-lightest);
  border-color: var(--primary-lighter);
  color: var(--primary);
}

/* ===== SUBMITTED CARD ===== */
.submitted-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
}

.submitted-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.check-icon {
  font-size: 1.4rem;
}

.submitted-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.submitted-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.submitted-section {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ===== TEAM STATUS ===== */
.team-status {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.team-status-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.team-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-avatar-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-radius: 999px;
  border: 1px solid var(--border-light);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.chip-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== TIMELINE ===== */
.timeline-container {
  animation: fadeInUp 0.4s ease-out;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-lighter), var(--border));
  border-radius: 1px;
}

.timeline-group {
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: calc(var(--group-index, 0) * 0.1s);
}

.timeline-date-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary-lighter);
}

.timeline-date-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.date-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.date-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.timeline-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== ENTRY CARD ===== */
.entry-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease-out both;
  animation-delay: calc(var(--entry-index, 0) * 0.06s);
}

.entry-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.entry-mine {
  border-left: 3px solid var(--primary);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.entry-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-lightest);
}

.entry-meta {
  display: flex;
  flex-direction: column;
}

.entry-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.you-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 8px;
  background: var(--primary-lightest);
  color: var(--primary);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.entry-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-section {
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.entry-blocker {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.entry-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.entry-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ===== EMPTY STATE ===== */
.empty-timeline {
  text-align: center;
  padding: 64px 24px;
  animation: fadeInUp 0.5s ease-out;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

/* ===== SKELETON LOADERS ===== */
.board-loading,
.timeline-loading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.skeleton-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-block {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-card) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-tall {
  height: 100px;
}

.skeleton-short {
  height: 60px;
}

.skeleton-date {
  height: 36px;
  width: 180px;
  border-radius: 999px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .app-header {
    padding: 12px 16px;
  }

  .header-title {
    font-size: 1rem;
  }

  .user-name {
    display: none;
  }

  .tab-bar {
    padding: 0 16px;
  }

  .tab-btn {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .main-content {
    padding: 16px;
  }

  .standup-form,
  .submitted-card {
    padding: 24px 20px;
  }

  .form-title {
    font-size: 1.1rem;
  }

  .entry-card {
    padding: 16px 18px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -18px;
    width: 12px;
    height: 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .submit-btn,
  .cancel-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .logout-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .user-badge {
    padding: 4px 8px;
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Daily Standup Board! Sign in with your Google or GitHub account to get started.", "view": "login", "highlight_selector": ".login-btn", "wait_for": "user_interaction"},
  {"step": 2, "narration": "You're signed in! This is the My Standup tab where you log what you did yesterday, what you're doing today, and any blockers.", "view": "board", "highlight_selector": ".standup-form", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Fill in each section with your status update. The colored dots help visually distinguish yesterday, today, and blockers.", "view": "board", "highlight_selector": ".form-textarea", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Click Submit Standup to save your entry. You can edit it anytime during the day.", "view": "board", "highlight_selector": ".submit-btn", "wait_for": "user_interaction"},
  {"step": 5, "narration": "After submitting, you'll see a confirmation with your entry and which team members have also checked in today.", "view": "board", "highlight_selector": ".submitted-card", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Switch to the Team Timeline tab to see all team entries grouped by date in a beautiful timeline view.", "view": "timeline", "highlight_selector": ".tab-btn:last-child", "wait_for": "user_interaction"},
  {"step": 7, "narration": "Each day shows all team members' standups. Your entries are highlighted with a teal left border. Blockers stand out in red.", "view": "timeline", "highlight_selector": ".timeline-entries", "wait_for": "tap_to_continue"}
]
-->

.timeline-entry-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 8px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.reaction-btn:hover {
  border-color: var(--primary-lighter);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.reaction-btn:active {
  transform: translateY(0);
}

.reaction-emoji {
  font-size: 0.95rem;
}

.reaction-count {
  min-width: 10px;
  font-weight: 700;
  color: var(--text);
}

.weekly-summary-export-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--card-bg, #fff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.weekly-summary-export-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.weekly-summary-title {
  margin: 0;
  font-size: 1.1rem;
}

.weekly-summary-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted-text, #6b7280);
}

.weekly-summary-export-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #1f6feb;
  color: #fff;
  font-weight: 600;
}

.weekly-summary-export-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.weekly-summary-preview-note {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted-text, #6b7280);
}

.weekly-summary-pdf-content{
  
  position: absolute;
  left: 0;
  top: 0;
  width: 800px;
  pointer-events: none; position: fixed; left: -9999px; top: 0;}

.weekly-summary-pdf-header {
  margin-bottom: 1rem;
}

.weekly-summary-day-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.weekly-summary-entry {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #f9fafb;
}

.weekly-summary-entry h3,
.weekly-summary-day-section h2 {
  margin: 0 0 0.5rem;
}

.weekly-summary-empty {
  padding: 1rem;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
}
