@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; min-height: 100vh; }

.container {
  max-width: 900px; margin: 0 auto; background: rgba(255,255,255,0.95); border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15); overflow: hidden; animation: floatIn 0.8s ease-out;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.header {
  background: linear-gradient(45deg, #ff6b6b, #feca57); color: white; padding: 2.5rem; text-align: center;
  animation: glow 3s infinite alternate;
}
@keyframes glow { from { box-shadow: 0 0 20px rgba(255,107,107,0.5); } to { box-shadow: 0 0 35px rgba(254,202,87,0.9); } }

.header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.header p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1rem; }
.brand a { color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); }
.brand a:hover { border-bottom-color: white; }
.brand-badge { background: rgba(255,255,255,0.25); padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; display: inline-block; margin-top: 1rem; }

.api-section { padding: 1.5rem; background: #f8f9fa; border-bottom: 1px solid #eee; }
.api-input { display: flex; gap: 0.5rem; }
.api-input input { flex: 1; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 1rem; }
.status { font-size: 0.9rem; margin-top: 0.5rem; }

.recording-dashboard, .summary-dashboard { padding: 2rem; }

.status-bar {
  background: linear-gradient(90deg, #667eea, #764ba2); color: white; padding: 1rem; border-radius: 50px;
  text-align: center; font-weight: 600; margin-bottom: 1rem; animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.transcription-box {
  width: 100%; min-height: 160px; padding: 1rem; border: 2px dashed #a0a0a0; border-radius: 16px;
  background: #f8f9fa; font-size: 1rem; resize: vertical; transition: all 0.3s; font-family: inherit;
}
.transcription-box:focus { border-color: #667eea; box-shadow: 0 0 0 4px rgba(102,126,234,0.2); }

.controls, .export-controls {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0;
}

.btn {
  padding: 12px 24px; border: none; border-radius: 50px; font-weight: 600; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.btn-primary { background: #667eea; color: white; }
.btn-record { background: #ff6b6b; color: white; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.btn-stop { background: #ef4444; color: white; }
.btn-ai { background: #10b981; color: white; }
.btn-success { background: #10b981; color: white; }
.btn-copy { background: #6366f1; color: white; }
.btn-clear { background: #94a3b8; color: white; }
.btn-upload { background: #f59e0b; color: white; }
.btn-upload input { display: none; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin: 1.5rem 0;
}
.stat-card {
  background: white; padding: 1.5rem; border-radius: 16px; text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-value { font-size: 2rem; font-weight: 700; color: #667eea; }
.stat-label { font-size: 0.8rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }

.summary-content {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); padding: 2rem; border-radius: 16px;
  min-height: 200px; line-height: 1.8; animation: slideUp 0.6s ease-out; white-space: pre-wrap;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.export-footer {
  text-align: center; padding: 1.5rem; font-size: 0.85rem; color: #64748b; border-top: 1px dashed #ddd; margin-top: 2rem;
}

@media (max-width: 768px) {
  .container { margin: 0.5rem; border-radius: 16px; }
  .header { padding: 1.5rem; }
  .header h1 { font-size: 2rem; }
  .controls, .export-controls { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 250px; justify-content: center; }
}