* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 100%);
  min-height: 100vh;
  padding: 32px;
  color: #1a1815;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #d9d4cf;
  overflow: hidden;
}
.header {
  background: #1a1815;
  color: white;
  padding: 32px;
  text-align: center;
}
.header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.header p {
  font-size: 14px;
  opacity: 0.9;
}
.content { padding: 32px; }
.form-group { margin-bottom: 28px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: #1a1815;
  margin-bottom: 8px;
  font-size: 0.9em;
  letter-spacing: -0.01em;
}
.form-group input[type="text"], .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d9d4cf;
  font-size: 0.95em;
  font-family: 'Inter', sans-serif;
  background: #fafaf9;
  transition: all 0.15s ease;
}
.form-group input[type="text"]:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: #1a1815;
  background: #ffffff;
}
.phase-container {
  border: 1px solid #d9d4cf;
  padding: 20px;
  margin-bottom: 20px;
  background: #fafaf9;
}
.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.phase-title-input { flex: 1; margin-right: 10px; }
.task-list { margin-top: 15px; }
.task-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}
.task-item input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d9d4cf;
  font-size: 0.9em;
  font-family: 'Inter', sans-serif;
  background: white;
}
.btn {
  padding: 10px 18px;
  border: none;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: #1a1815;
  color: white;
}
.btn-primary:hover { background: #2d2925; }
.btn-success {
  background: #28a745;
  color: white;
}
.btn-success:hover { background: #218838; }
.btn-danger {
  background: #c93434;
  color: white;
}
.btn-danger:hover { background: #a02828; }
.btn-secondary {
  background: #6e645a;
  color: white;
}
.btn-secondary:hover { background: #5a5248; }
.btn-small { padding: 6px 12px; font-size: 0.8em; }
.actions {
  padding: 24px 32px;
  background: #fafaf9;
  border-top: 1px solid #d9d4cf;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.help-text {
  font-size: 0.8em;
  color: #6e645a;
  margin-top: 6px;
}
/* Preview modal CSS removed - preview functionality no longer needed */
.notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 20px;
  background: #28a745;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.1);
  display: none;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  min-width: 200px;
  text-align: center;
}
.notification.error { background: #c93434; }
.notification.show { display: block; animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #d9d4cf;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.back-button-nav {
  color: #1a1815;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
  background: white;
  padding: 8px 16px;
  border: 1px solid #d9d4cf;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.back-button-nav:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-color: #c9c3bb;
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
}
body {
  padding-top: 80px;
}
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .back-button-nav {
    align-self: flex-start;
    font-size: 13px;
    padding: 8px 12px;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-actions .btn {
    width: 100%;
    font-size: 14px;
    padding: 12px 16px;
  }

  body {
    padding: 0;
    padding-top: 0;
  }

  .container {
    margin-top: 0;
    padding-top: 145px;
  }

  .header {
    padding: 20px 16px;
  }
}
