* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding-top: 56px;
  padding-bottom: 64px;
  font-size: 16px;
  color: #1a202c;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #1a365d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-mascot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
}

.header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.hero-card {
  text-align: center;
  padding: 24px 16px;
}

.hero-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-title {
  margin: 0 0 4px 0;
  font-size: 22px;
  color: #1a365d;
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: #718096;
  letter-spacing: 0.5px;
}

.content {
  max-width: 480px;
  margin: 0 auto;
}

.section {
  display: none;
  padding: 16px;
}

.section.active {
  display: block;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h2, .card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  color: #1a365d;
}

.card h2 {
  font-size: 20px;
}

.flights-card h3 {
  margin-bottom: 8px;
}

.flight-direction {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #718096;
  margin-bottom: 8px;
}

.flight-leg {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.flight-leg:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.flight-route {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flight-code {
  font-size: 20px;
  font-weight: 700;
  color: #1a365d;
  min-width: 44px;
}

.flight-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #e2e8f0, #1a365d);
  position: relative;
  border-radius: 1px;
}

.flight-plane {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #1a365d;
}

.flight-meta {
  font-size: 13px;
  color: #718096;
  margin-top: 4px;
  padding-left: 52px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #718096;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 60px;
  transition: color 0.2s;
}

.nav-btn.active {
  color: #1a365d;
}

.nav-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
}

.btn {
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.8;
}

.btn-primary {
  background: #1a365d;
  color: white;
}

.btn-danger {
  background: #e53e3e;
  color: white;
}

.btn-success {
  background: #38a169;
  color: white;
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-not_started {
  background: #e2e8f0;
  color: #4a5568;
}

.status-researching {
  background: #fefcbf;
  color: #975a16;
}

.status-booked {
  background: #c6f6d5;
  color: #276749;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  max-height: 85vh;
  overflow: auto;
  width: 100%;
  max-width: 480px;
  z-index: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1a365d;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #718096;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: #38a169;
  transition: width 0.3s ease;
}

.hotel-option {
  background: #f7fafc;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  border-left: 3px solid #1a365d;
}

.hotel-option h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #1a365d;
}

.hotel-option-details {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 8px;
}

.hotel-option-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.day-card {
  cursor: pointer;
  user-select: none;
}

.dashboard-todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: opacity 0.3s;
}

.dashboard-todo-item:last-of-type {
  border-bottom: none;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-chevron {
  transition: transform 0.2s;
  font-size: 20px;
}

.day-card.expanded .day-chevron {
  transform: rotate(90deg);
}

.day-content {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.day-card.expanded .day-content {
  display: block;
}

.note-item {
  background: #f7fafc;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.note-text {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 8px;
}

.note-actions {
  display: flex;
  gap: 8px;
}

.category-group {
  margin-bottom: 20px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-header h3 {
  margin: 0;
  font-size: 16px;
  color: #1a365d;
}

.category-progress {
  font-size: 13px;
  color: #718096;
  font-weight: 600;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
}

.checklist-item.done {
  opacity: 0.6;
}

.checklist-item.done .checklist-text {
  text-decoration: line-through;
}

.checklist-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  cursor: pointer;
}

.checklist-text {
  flex: 1;
  font-size: 15px;
  color: #1a202c;
}

.budget-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
}

.budget-item-info {
  flex: 1;
}

.budget-item-description {
  font-size: 15px;
  color: #1a202c;
  font-weight: 600;
}

.budget-item-meta {
  font-size: 13px;
  color: #718096;
  margin-top: 4px;
}

.budget-item-amount {
  font-size: 16px;
  font-weight: 700;
  color: #1a365d;
  margin-right: 12px;
}

.budget-item-actions {
  display: flex;
  gap: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.stat-item {
  text-align: center;
  padding: 12px;
  background: #f7fafc;
  border-radius: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a365d;
}

.stat-label {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

.countdown {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #1a365d 0%, #2d4a7a 100%);
  border-radius: 12px;
  color: white;
}

.countdown-label-top {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.countdown-units {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-unit {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 72px;
}

.countdown-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.countdown-unit-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 2px;
}

.countdown-separator {
  font-size: 28px;
  font-weight: 300;
  opacity: 0.4;
}

.countdown-total {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.7;
}

@media (min-width: 481px) {
  .modal-content {
    border-radius: 16px;
    margin: auto;
  }

  .modal {
    align-items: center;
  }
}
