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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 2px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

.sheets-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #4a90d9;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.sheets-link svg {
  fill: #4a90d9;
}

.sheets-link:hover {
  background: #eef4fb;
  border-color: #4a90d9;
}

/* Mode switch */
.mode-switch {
  display: flex;
  gap: 8px;
  width: 100%;
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn svg {
  fill: #999;
  transition: fill 0.2s;
}

.mode-btn:hover {
  border-color: #ccc;
  color: #444;
}

.mode-btn:hover svg {
  fill: #666;
}

.mode-btn.active {
  border-color: #4a90d9;
  color: #4a90d9;
  background: #eef4fb;
}

.mode-btn.active svg {
  fill: #4a90d9;
}

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

/* Recording */
.recording-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.context-input {
  width: 100%;
}

.context-input input {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.context-input input:focus {
  border-color: #4a90d9;
}

.context-input input::placeholder {
  color: #aaa;
}

.record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.record-btn:hover {
  border-color: #ccc;
  background: #f9f9f9;
}

.record-btn.recording {
  border-color: #e53935;
  background: #fdecea;
  animation: pulse 1.5s infinite;
}

.record-btn.processing {
  border-color: #ffa726;
  background: #fff3e0;
  cursor: wait;
  animation: none;
}

.mic-icon {
  fill: #999;
  transition: fill 0.3s;
}

.record-btn.recording .mic-icon {
  fill: #e53935;
}

.record-btn.processing .mic-icon {
  fill: #ffa726;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.3); }
  70% { box-shadow: 0 0 0 20px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.record-status {
  color: #666;
  font-size: 14px;
}

.record-timer {
  color: #e53935;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Sections */
.section {
  margin-top: 32px;
}

.section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.text-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Tasks */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.task-description {
  font-size: 15px;
  color: #333;
}

.task-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.task-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
}

.task-tag.priority-high {
  background: #fdecea;
  color: #c62828;
}

.task-tag.priority-medium {
  background: #fff3e0;
  color: #e65100;
}

.task-tag.priority-low {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Buttons */
.save-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.save-btn:hover {
  background: #388e3c;
}

.save-btn:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.save-status {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #2e7d32;
}

/* Error */
.error-section {
  background: #fdecea;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 16px;
  color: #c62828;
  font-size: 14px;
}
