:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #141414;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --accent-gold: #D4AF37;
  --accent-gold-light: #F4D03F;
  --accent-gold-dark: #9A7B0A;
  --accent-gold-dim: rgba(212, 175, 55, 0.2);
  --gold-metallic: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #D4AF37 50%, #FCF6BA 75%, #AA771C 100%);
  --gold-metallic-text: linear-gradient(135deg, #BF953F 0%, #FCF6BA 30%, #D4AF37 50%, #B38728 70%, #AA771C 100%);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --border-color: #2A2A2A;
  --success: #4CAF50;
  --danger: #E74C3C;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.date-heading {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7A5C0F 0%, #C9A227 20%, #8B6914 40%, #D4AF37 50%, #8B6914 60%, #C9A227 80%, #7A5C0F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.weather-display {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-btn,
.settings-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-btn:hover,
.settings-btn:hover {
  transform: scale(1.1);
}

.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
  overflow-x: hidden;
}

.page.active {
  display: block;
  overflow-x: hidden;
}

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

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon {
  color: var(--accent-gold);
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent-gold-dim);
  box-shadow: var(--shadow);
}

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

.card-title {
  font-size: 1rem;
  font-weight: 600;
  background: var(--gold-metallic-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg {
  stroke: var(--accent-gold);
}

.card-badge {
  background: var(--gold-metallic);
  color: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-action {
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.card-action:hover {
  color: var(--accent-gold);
}

.item-list {
  list-style: none;
}

.item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

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

.item:first-child {
  padding-top: 0;
}

.item-time {
  font-size: 0.875rem;
  color: var(--accent-gold);
  min-width: 70px;
  font-weight: 500;
}

.item-content {
  flex: 1;
}

.item-title {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.item-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.item-action {
  padding: 8px 16px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.item-action:hover {
  background: #E5C349;
  box-shadow: var(--shadow-gold);
}

.flight-activity {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.1) 0%, rgba(70, 130, 180, 0.05) 100%);
  border-radius: 8px;
  padding: 12px;
  margin: 4px 0;
  border-left: 3px solid #6495ED;
}

.activity-icon {
  margin-right: 8px;
}

.flight-icon {
  display: inline-block;
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.empty-state .icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
}

.checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: transparent;
}

.checkbox:hover {
  border-color: var(--accent-gold);
}

.checkbox.checked {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.checkbox.checked::after {
  content: '✓';
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: bold;
}

.delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: var(--transition);
  color: var(--text-muted);
  background: transparent;
  border: none;
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--accent-gold);
}

.nav-item .icon {
  font-size: 1.5rem;
}

.nav-item .label {
  font-size: 0.75rem;
  font-weight: 500;
}

.add-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7A5C0F 0%, #C9A227 20%, #8B6914 40%, #D4AF37 50%, #8B6914 60%, #C9A227 80%, #7A5C0F 100%);
  border: none;
  color: var(--bg-primary);
  font-size: 1.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(138, 105, 20, 0.5);
  margin-top: -20px;
}

.add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(138, 105, 20, 0.6);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-card-hover);
}

.modal-body {
  padding: 24px;
  padding-bottom: 40px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.add-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.add-option {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.add-option:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
}

.add-option .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--accent-gold);
}

.add-option .title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23A0A0A0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--gold-metallic);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  position: relative;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  padding-bottom: 100px;
}

.message {
  display: flex;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

.message.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.message.assistant .message-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-bottom-right-radius: 4px;
}

.approval-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}

.approval-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-gold);
  font-weight: 600;
}

.approval-content {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.approval-actions {
  display: flex;
  gap: 12px;
}

.btn-approve {
  flex: 1;
  padding: 12px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-approve:hover {
  opacity: 0.9;
}

.btn-decline {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.quick-filters {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-family);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.quick-filter-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.quick-filter-btn:active {
  transform: scale(0.95);
}

.quick-filter-btn .filter-icon {
  font-size: 1rem;
}

.chat-input-container {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  z-index: 50;
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-metallic);
  border: none;
  color: var(--bg-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

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

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.calendar-view-toggle {
  display: flex;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 4px;
}

.view-toggle-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 500;
}

.view-toggle-btn.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  min-height: 400px;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: auto;
}

.calendar-day-header {
  text-align: center;
  padding: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid transparent;
  min-width: 0;
  min-height: 60px;
}

.calendar-day:hover {
  border-color: var(--accent-gold);
  transition: border-color 0.15s ease;
}

.calendar-day.today {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.calendar-day.other-month {
  opacity: 0.3;
}

.day-number {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.day-events {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.day-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.event-item:hover {
  background: var(--bg-card-hover);
}

.event-time {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.event-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.event-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.event-detail-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

.detail-row span:last-child,
.detail-row a {
  flex: 1;
  color: var(--text-primary);
}

.detail-description {
  align-items: flex-start;
}

.detail-description span:last-child {
  color: var(--text-secondary);
  line-height: 1.5;
}

.event-link {
  color: var(--accent-gold) !important;
  text-decoration: none;
  font-weight: 500;
}

.event-link:hover {
  text-decoration: underline;
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.wealth-summary {
  text-align: center;
  padding: 32px 0;
}

.net-worth-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.net-worth-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.net-worth-change {
  font-size: 1rem;
  margin-top: 8px;
}

.net-worth-change.positive {
  color: var(--success);
}

.net-worth-change.negative {
  color: var(--danger);
}

.asset-breakdown {
  margin-top: 24px;
}

.asset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.asset-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.asset-name {
  font-weight: 500;
  color: var(--text-primary);
}

.asset-allocation {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.asset-value {
  text-align: right;
}

.asset-amount {
  font-weight: 600;
  color: var(--text-primary);
}

.asset-change {
  font-size: 0.8125rem;
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.settings-item:hover {
  background: var(--bg-card-hover);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.settings-item-text {
  font-weight: 500;
}

.settings-item-arrow {
  color: var(--text-muted);
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--border-color);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: var(--accent-gold);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: var(--transition);
}

.toggle-switch.active::after {
  left: 26px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

@media (max-width: 480px) {
  .main-content {
    padding: 16px 12px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-day {
    padding: 4px;
    min-height: 50px;
    border-radius: 8px;
  }

  .calendar-day-header {
    padding: 8px 4px;
    font-size: 0.65rem;
  }

  .day-number {
    font-size: 0.8rem;
  }

  .calendar-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .calendar-nav-btn {
    width: 36px;
    height: 36px;
  }

  .section-title {
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  .app-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .main-content {
    padding: 32px 48px;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .card {
    margin-bottom: 0;
  }

  .modal {
    border-radius: 24px;
    margin: auto;
    max-height: 80vh;
  }

  .chat-container {
    height: calc(100vh - 200px);
  }

  .calendar-day {
    min-height: 100px;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 24px 48px;
  }

  .greeting {
    font-size: 1.75rem;
  }

  .bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
  }

  .nav-item {
    padding: 12px 24px;
  }

  .add-btn {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin-top: -24px;
  }
}

/* Attendees Input Styles */
.attendees-container {
  position: relative;
}

.attendees-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.attendee-chip {
  display: inline-flex;
  align-items: center;
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid var(--accent-gold);
}

.chip-remove {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chip-remove:hover {
  opacity: 1;
}

.contacts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
  box-shadow: var(--shadow);
}

.contact-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
}

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

.contact-item:hover {
  background: var(--bg-card-hover);
}

.contact-name {
  font-weight: 500;
  color: var(--text-primary);
}

.contact-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* To-Do List Styles */
.todo-card {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .todo-card {
    grid-column: span 1;
  }
}

.todo-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.todo-input {
  flex: 1;
}

.todo-add-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--gold-metallic);
  color: #000;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.todo-add-btn:hover {
  transform: scale(1.05);
}

.todo-list {
  overflow: hidden;
}

.todo-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.todo-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 12px 0;
  background: var(--bg-card);
  transition: transform 0.3s ease;
  z-index: 1;
}

.todo-title {
  flex: 1;
  color: var(--text-primary);
}

.todo-title.completed {
  text-decoration: line-through;
  opacity: 0.5;
}

.swipe-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
}

.delete-action {
  background: var(--danger);
  cursor: pointer;
}

.todo-item.swiped .delete-action {
  opacity: 1;
}
