/* Wave Meetings — Mobile-first styles */

:root {
  --primary: #1a5f7a;
  --primary-dark: #144a5f;
  --danger: #dc3545;
  --danger-dark: #c82333;
  --success: #28a745;
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px 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: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* Login View */
.login-card {
  background: var(--card-bg);
  margin: auto;
  padding: 40px 24px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.logo {
  font-size: 64px;
  margin-bottom: 16px;
}

.logo-sm {
  font-size: 24px;
  margin-right: 8px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  -webkit-appearance: none;
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.hint {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* Checkbox list */
.checkbox-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.checkbox-item:last-child {
  border-bottom: none;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
}

.checkbox-item label {
  flex: 1;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-item .role {
  font-size: 12px;
  color: var(--text-light);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-text {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-large {
  padding: 16px 24px;
  font-size: 18px;
}

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

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

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:active {
  background: var(--bg);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:active {
  background: var(--danger-dark);
  transform: scale(0.98);
}

.btn-text {
  background: transparent;
  color: var(--text-light);
  padding: 12px;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 14px;
}

.icon {
  font-size: 20px;
}

/* Header */
.mobile-header {
  background: var(--card-bg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.header-left {
  display: flex;
  align-items: center;
}

/* Dashboard */
.dashboard-content {
  padding: 24px 20px;
  flex: 1;
}

.dashboard-content h2 {
  margin-bottom: 24px;
}

/* Meeting View */
.meeting-status {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.status-header {
  margin-bottom: 40px;
}

.timer {
  font-size: 48px;
  font-weight: 300;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}

/* Pulse Animation */
.listening-indicator {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
  opacity: 0;
}

.pulse-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow);
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.listening-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.listening-hint {
  font-size: 14px;
  color: var(--text-light);
}

/* Meeting Controls */
.meeting-controls {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-message {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 100;
}

/* Speaker Mapping */
.speaker-card {
  background: var(--card-bg);
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.speaker-card h2 {
  text-align: center;
}

.speaker-card .subtitle {
  text-align: center;
  margin-bottom: 24px;
}

.speaker-item {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.speaker-item label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.speaker-item .sample-quote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 12px;
  padding: 8px;
  background: white;
  border-radius: 4px;
  font-size: 14px;
}

.speaker-item select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  background: white;
}

.preview-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.preview-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

#summary-preview {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
}

#summary-preview ul {
  padding-left: 20px;
  margin: 8px 0;
}

#summary-preview li {
  margin-bottom: 4px;
}

.form-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Sent Confirmation */
.confirmation-card {
  background: var(--card-bg);
  margin: auto;
  padding: 40px 24px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.confirmation-card h2 {
  margin-bottom: 16px;
}

.confirmation-card p {
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Errors */
.error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 8px;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .login-card,
  .confirmation-card,
  .speaker-card {
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .dashboard-content,
  .meeting-controls {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}
