/* AI Summarizer - Transcript to Bullet Points */

:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --on-surface: #1f2937;
  --on-surface-secondary: #6b7280;
  --success: #10b981;
  --radius-lg: 12px;
  --radius-md: 8px;
  --transition: 150ms ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%);
  min-height: 100vh;
  color: var(--on-surface);
}

.app-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

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

header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sections */
section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
}

.panel-header label {
  font-size: 0.9rem;
}

/* Textarea */
#transcript-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition);
}

#transcript-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 213, 0.2);
}

/* Buttons */
.primary-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 213, 0.3);
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.secondary-btn:hover {
  background: var(--primary);
  color: white;
}

/* Summary List */
.summary-list {
  list-style: none;
  padding: 0;
}

.summary-list li {
  background: var(--surface-alt);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.summary-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* History */
.history-list {
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  background: var(--surface-alt);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.history-item:hover {
  background: #f3f4f6;
}

.history-item .history-time {
  font-size: 0.75rem;
  color: var(--on-surface-secondary);
}

/* Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.copy-toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

/* Hidden utility */
.hidden {
  display: none !important;
}