:root {
  --primary: #d97706;
  --primary-hover: #b45309;
  --bg-dark: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --border-color: #334155;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 70px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  border-bottom: 2px solid var(--primary);
  padding: 1.5rem 1rem 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.header-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.header-logo {
  height: 120px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 18px rgba(251, 191, 36, 0.5));
}

.logo-toggle-bar {
  display: flex;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3px;
  gap: 4px;
}

.logo-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.logo-toggle-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
}

.header h1 {
  font-size: 1.6rem;
  color: #fbbf24;
  margin-bottom: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.header p {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.badge-free {
  display: inline-block;
  background: linear-gradient(90deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  background-color: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

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

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

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.card h2 {
  font-size: 1.2rem;
  color: #fbbf24;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background-color: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.3);
}

.btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

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

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

.btn-danger:hover {
  background-color: #dc2626;
}

/* Speaker List Cards */
.speaker-item {
  background: #111827;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.speaker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.speaker-name {
  font-size: 1.05rem;
  font-weight: bold;
  color: #f3f4f6;
}

.speaker-status {
  font-size: 0.75rem;
  background-color: #065f46;
  color: #34d399;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.speaker-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.travel-badge {
  background-color: #1e293b;
  border: 1px solid #3b82f6;
  color: #60a5fa;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.6rem;
}

/* Rules Notice Box */
.notice-box {
  background-color: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.8rem;
  color: #fef08a;
  margin-bottom: 1rem;
}

.notice-box ul {
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

/* WhatsApp Chat Interface */
.chat-box {
  background-color: #0b141a;
  border-radius: 12px;
  padding: 1rem;
  height: 380px;
  display: flex;
  flex-direction: column;
  border: 1px solid #1f2937;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-right: 0.3rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.chat-bubble.bot {
  background-color: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-left: 3px solid #00a884;
}

.chat-bubble.user {
  background-color: #005c4b;
  color: #e9edef;
  align-self: flex-end;
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.chat-input {
  flex: 1;
  background-color: #2a3942;
  border: none;
  color: #fff;
  padding: 0.6rem;
  border-radius: 20px;
  outline: none;
}

.chat-send {
  background-color: #00a884;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
