/* AgendaForge Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 1rem; }

.site-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.site-header h1 { margin: 0 0 0.5rem; font-size: 2.5rem; }
.tagline { margin: 0; opacity: 0.9; font-size: 1.1rem; }

.planner-section { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; box-shadow: var(--shadow); }

.meeting-setup { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.meeting-setup label { font-weight: 600; color: var(--text); }
.meeting-setup input { padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.meeting-setup input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.primary-btn { background: var(--primary); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: var(--radius); cursor: pointer; font-size: 1rem; font-weight: 600; }
.primary-btn:hover { background: var(--primary-dark); }

.agenda-items { margin: 1rem 0; }
.agenda-item { display: grid; grid-template-columns: 20px 1fr 80px 120px auto; gap: 0.5rem; align-items: start; padding: 1rem; background: var(--bg); border-radius: var(--radius); margin-bottom: 0.75rem; }
.agenda-item input, .agenda-item textarea { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; font: inherit; }
.agenda-item textarea { grid-column: 2 / -1; min-height: 60px; resize: vertical; }
.drag-handle { cursor: move; color: var(--text-light); font-size: 1.2rem; }
.remove-item { background: var(--danger); color: white; border: none; width: 24px; height: 24px; border-radius: 4px; cursor: pointer; }

.agenda-summary { padding: 1rem; background: var(--bg); border-radius: var(--radius); margin: 1rem 0; }
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 0.5rem; }
.progress-fill { height: 100%; background: var(--success); transition: width 0.3s; }

.actions-section { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.secondary-btn { background: var(--secondary); color: white; border: none; padding: 0.5rem 1rem; border-radius: var(--radius); cursor: pointer; }
.secondary-btn:hover { opacity: 0.9; }

.history-section, .templates-section { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; box-shadow: var(--shadow); }
.saved-list { display: flex; flex-direction: column; gap: 0.5rem; }
.saved-item { padding: 0.75rem; background: var(--bg); border-radius: 4px; cursor: pointer; }
.saved-item:hover { background: var(--border); }

.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.template-btn { padding: 0.75rem; background: var(--primary); color: white; border: none; border-radius: var(--radius); cursor: pointer; }
.template-btn:hover { background: var(--primary-dark); }

support-content { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; box-shadow: var(--shadow); }
.support-content h2 { margin-top: 0; }

site-footer { text-align: center; padding: 2rem 0; color: var(--text-light); font-size: 0.9rem; }
.site-footer a { color: var(--primary); }

@media (max-width: 768px) {
  .agenda-item { grid-template-columns: 20px 1fr; }
  .agenda-item input[type="number"] { grid-column: 2; width: 80px; }
  .agenda-item .item-presenter { grid-column: 2; }
  .actions-section { flex-direction: column; }
}

@media (max-width: 480px) {
  .site-header h1 { font-size: 1.75rem; }
  .container { padding: 0 0.5rem; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
