:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.08), 0 8px 10px -6px rgba(79, 70, 229, 0.04);
  --border-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 50px;
}

.hidden {
  display: none !important;
}

/* Header */
.app-header {
  background: var(--card-bg);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e2e8f0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.code-pill {
  background: #eef2ff;
  color: #4f46e5;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Layout Container */
.app-container {
  max-width: 540px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Cards */
.pastel-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.greeting-banner {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #c7d2fe;
}

.greeting-banner h2 {
  font-size: 1.2rem;
  color: #312e81;
  margin-bottom: 4px;
}

.greeting-banner p {
  color: #4338ca;
  font-size: 0.9rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* Form Inputs */
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

input, select {
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Buttons (Fixed alignment & appearance) */
button {
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
  transition: transform 0.1s ease, opacity 0.2s ease;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-subtle {
  background: #f1f5f9;
  color: var(--text-muted);
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-subtle:hover {
  background: #e2e8f0;
}

/* Voice Recorder Box */
.recorder-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.record-btn {
  flex: 1;
  background: #fee2e2;
  color: #dc2626;
  border: 2px dashed #fca5a5;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}

.record-btn.recording {
  background: #dc2626;
  color: white;
  border-style: solid;
  border-color: #b91c1c;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { transform: scale(1.01); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

audio {
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
}

/* Reminders List */
.reminders-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.reminder-pill-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reminder-info h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.reminder-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.delete-btn {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
}

.footer-link {
  text-align: center;
  margin-top: 20px;
}

.footer-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
