/* ==========================================
   GEHEIME BERICHTEN - KINDVRIENDELIJKE STYLING
   ========================================== */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Vrolijke kleuren */
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --accent: #f093fb;
  --success: #48bb78;
  --warning: #f6ad55;
  --error: #fc8181;

  /* Achtergronden */
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-light: #f7fafc;
  --bg-white: #ffffff;

  /* Tekst */
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;
  --text-white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-4);
  min-height: 100vh;
  position: relative;
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-4);
}

.login-card {
  margin-top: 10vh;
}

/* Typography */
.title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-bottom: var(--space-6);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.hint {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Daily Fact Card */
.daily-fact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.3);
}

.daily-fact-icon {
  font-size: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
  flex-shrink: 0;
}

.daily-fact-title {
  display: block;
  font-size: 0.85rem;
  color: #b8860b;
  font-weight: 800;
  margin-bottom: 2px;
}

.daily-fact-content p {
  margin: 4px 0 0 0;
  font-weight: 700;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.4;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--text-medium);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-small {
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
}

.btn-large {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: 1.25rem;
}

/* Ouder selector buttons */
.ouder-selector {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--text-white);
  font-weight: 600;
}

.ouder-buttons {
  display: flex;
  gap: var(--space-2);
}

.btn-ouder {
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ouder:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-ouder.active {
  background: var(--bg-white);
  color: var(--primary);
  border-color: var(--bg-white);
}

/* Input groups */
.input-group {
  margin-bottom: var(--space-5);
}

.input-group label {
  display: block;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: var(--space-2);
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: var(--space-4);
  padding-right: 3rem;
  font-family: inherit;
  font-size: 1.1rem;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.input-icon {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

/* Message compose */
.message-compose {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.message-compose textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: inherit;
  font-size: 1.1rem;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease;
}

.message-compose textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Emoji picker */
.emoji-picker {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.emoji-hint {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--space-2);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-1);
}

.emoji-btn {
  width: 100%;
  aspect-ratio: 1;
  font-size: 1.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn:hover {
  background: var(--bg-white);
  transform: scale(1.2);
}

.emoji-picker.compact .emoji-grid {
  grid-template-columns: repeat(8, 1fr);
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.3);
}

.tab.active {
  background: var(--bg-white);
  color: var(--primary);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--error);
  color: var(--text-white);
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Messages list */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-2);
}

/* ==========================================
   CHAT INTERFACE (KIND PAGE)
   ========================================== */

.chat-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  min-height: 400px;
  padding: 0;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-gradient);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chat-messages-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--bg-light);
}

.chat-input-area {
  padding: var(--space-3);
  background: var(--bg-white);
  border-top: 1px solid #e2e8f0;
}

.emoji-picker-inline {
  margin-bottom: var(--space-2);
}

.emoji-picker-inline .emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.emoji-picker-inline .emoji-btn {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  padding: 0;
}

.chat-input-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}

.chat-input-row textarea {
  flex: 1;
  padding: var(--space-3);
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  resize: none;
  min-height: 44px;
  max-height: 100px;
}

.chat-input-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-send {
  width: 50px;
  height: 50px;
  padding: 0;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

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

.send-success {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  animation: fadeInOut 1.5s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Waiting hint */
.waiting-hint {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-top: 1px solid #fcd34d;
}

.waiting-hint span {
  margin-right: var(--space-1);
}

/* New message effects */
.new-message-glow {
  animation: glowPulse 0.5s ease-in-out 3;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 60px rgba(118, 75, 162, 0.4);
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(118, 75, 162, 0.6);
  }
}

.bounce {
  animation: bounceAnim 0.5s ease;
}

@keyframes bounceAnim {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

/* Pulsing badge */
.badge.pulse {
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(252, 129, 129, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(252, 129, 129, 0);
  }
}

.message-bubble {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  max-width: 85%;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-bubble.incoming {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.message-bubble.outgoing {
  background: var(--bg-gradient);
  color: var(--text-white);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

.message-bubble.unread {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.message-sender {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-1);
}

.message-content {
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: var(--space-2);
  text-align: right;
}

.message-bubble.outgoing .message-time {
  color: rgba(255, 255, 255, 0.8);
}

/* Conversations list (for ouder) */
.conversations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.conversation-item:hover {
  background: #edf2f7;
  transform: translateX(4px);
}

.conversation-item.unread {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.conversation-avatar {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: var(--radius-full);
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.conversation-name {
  font-weight: 700;
  color: var(--text-dark);
}

.conversation-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.conversation-preview {
  color: var(--text-medium);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 100;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-close {
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.modal-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal-compose {
  padding: var(--space-4);
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal-compose textarea {
  width: 100%;
  padding: var(--space-3);
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  resize: none;
}

.modal-compose textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Chat messages in modal */
.chat-message {
  display: flex;
  gap: var(--space-2);
  max-width: 85%;
}

.chat-message.incoming {
  align-self: flex-start;
}

.chat-message.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.chat-bubble {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-light);
}

.chat-message.outgoing .chat-bubble {
  background: var(--bg-gradient);
  color: var(--text-white);
}

.chat-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--space-1);
}

.chat-message.outgoing .chat-name {
  color: rgba(255, 255, 255, 0.8);
}

.chat-content {
  font-size: 0.95rem;
  line-height: 1.4;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: var(--space-1);
  text-align: right;
}

.chat-message.outgoing .chat-time {
  color: rgba(255, 255, 255, 0.7);
}

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

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  color: var(--text-light);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--bg-light);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

.spinner.small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: var(--space-8);
}

.empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--space-4);
}

.empty-state p {
  color: var(--text-medium);
  margin-bottom: var(--space-2);
}

/* Messages */
.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
  color: #276749;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-top: var(--space-4);
  animation: successPop 0.3s ease;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  font-size: 1.5rem;
}

.error-message {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: var(--space-2);
  text-align: center;
  font-weight: 600;
}

.error {
  color: var(--error);
  text-align: center;
  padding: var(--space-4);
}

.refresh-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2);
  color: var(--text-light);
  font-size: 0.85rem;
}

.unread-indicator {
  background: var(--error);
  color: var(--text-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Links */
.papa-login {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid #e2e8f0;
}

.papa-login a,
.back-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
}

.papa-login a:hover,
.back-link:hover {
  color: var(--primary);
}

.back-link {
  display: block;
  margin-top: var(--space-3);
}

/* Steps */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Floating emojis */
.floating-emoji {
  position: fixed;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.emoji-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.emoji-2 {
  top: 30%;
  right: 8%;
  animation-delay: 1s;
}

.emoji-3 {
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.emoji-4 {
  bottom: 10%;
  right: 5%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Shake animation */
.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Confetti container */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: var(--space-3);
  }

  .card {
    padding: var(--space-4);
  }

  .title {
    font-size: 1.5rem;
  }

  .emoji-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .header h1 {
    font-size: 1.25rem;
  }
}

/* Ouder theme (slightly different bg) */
.ouder-theme {
  background: linear-gradient(135deg, #434190 0%, #553c9a 100%);
}

/* ==========================================
   SETUP WIZARD & SETTINGS STYLES
   ========================================== */

/* Setup wizard buttons */
.setup-buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.setup-buttons .btn {
  flex: 1;
}

/* Verification question items */
.verification-question-item,
.settings-question-item {
  background: var(--bg-light);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.verification-question-item .input-group,
.settings-question-item .input-group {
  margin-bottom: var(--space-3);
}

.verification-question-item .input-group:last-of-type,
.settings-question-item .input-group:last-of-type {
  margin-bottom: var(--space-2);
}

/* Full width inputs in question items */
.verification-question-item input,
.settings-question-item input {
  width: 100%;
  padding: var(--space-3);
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.verification-question-item input:focus,
.settings-question-item input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-remove-question {
  margin-top: var(--space-2);
  color: var(--error);
  border-color: var(--error);
}

.btn-remove-question:hover {
  background: var(--error);
  color: white;
}

/* Ouder setup sections */
.ouder-setup-section {
  background: var(--bg-light);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.ouder-setup-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

/* Settings form */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.settings-section {
  background: var(--bg-light);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.settings-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid #e2e8f0;
}

.settings-input {
  width: 100%;
  padding: var(--space-3);
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.settings-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Settings message */
.settings-message {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-top: var(--space-3);
}

.settings-message.success {
  background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
  color: #276749;
}

.settings-message.error {
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
  color: #c53030;
}

/* Tab content styling for ouder page */
.tab-content {
  animation: fadeIn 0.3s ease;
}

/* H2 in setup/settings */
#setup-wizard h2,
.settings-form h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
  color: var(--primary);
}

/* Add question button */
#btn-add-question,
#btn-add-settings-question {
  width: 100%;
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}
