/* Layout Geral */
#app {
  max-width: 600px; /* Mobile first / PWA constraint */
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  z-index: 1000;
  transition: opacity 0.5s ease-out;
}

.splash-content {
  text-align: center;
  color: white;
}

.splash-icon {
  font-size: 64px;
  margin-bottom: var(--sp-4);
  color: var(--accent);
}

.splash-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: white;
}

.splash-subtitle {
  font-size: 14px;
  opacity: 0.8;
}

/* Componentes de UI */
.header {
  padding: var(--sp-6) var(--sp-4);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.progress-container {
  padding: var(--sp-4);
  background-color: var(--bg-surface);
  margin-bottom: var(--sp-4);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
  font-weight: 500;
}

.progress-bar-bg {
  height: 8px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.task-list {
  padding: 0 var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.task-card {
  background-color: var(--bg-surface);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.task-icon {
  font-size: 24px;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 12px;
  border-radius: var(--radius-md);
}

.task-info {
  flex: 1;
}

.task-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.task-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-check {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  cursor: pointer;
  align-self: center;
  font-family: var(--font-sans);
}

.btn-check:disabled {
  background-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-check.completed {
  background-color: var(--accent);
}
