:root {
  /* Apple Light Theme */
  --bg-color: #f5f5f7;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --text-main: #1d1d1f;
  --text-secondary: #86868b;
  --border-color: rgba(0, 0, 0, 0.1);
  --accent-color: #000000;
  --wt-btn-bg: #ffffff;
  --wt-btn-hover: #f0f0f2;
  --wt-header-bg: #e5e5ea;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  /* Apple Dark Theme */
  --bg-color: #000000;
  --bg-header: #1c1c1e;
  --bg-card: #1c1c1e;
  --text-main: #f5f5f7;
  --text-secondary: #a1a1a6;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: #ffffff;
  --wt-btn-bg: #2c2c2e;
  --wt-btn-hover: #3a3a3c;
  --wt-header-bg: #2c2c2e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wt-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  width: 250px;
}

.wt-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wt-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  color: var(--text-main);
  outline: none;
}

.wt-search button {
  background: transparent;
  border: none;
  padding: 0 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.wt-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 250px;
  justify-content: flex-end;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

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

/* Subheader */
.wt-subheader {
  background: var(--wt-header-bg);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.wt-breadcrumbs {
  font-size: 18px;
  font-weight: 500;
}

.wt-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.wt-breadcrumbs a:hover {
  text-decoration: underline;
}

.wt-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Main Workspace */
.wt-workspace {
  position: relative;
  min-height: calc(100vh - 56px);
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* WT Dashboard Grid */
.wt-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
}

.wt-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wt-category h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 4px;
}

/* WT Style Buttons - adapted to Apple monochrome */
.wt-btn {
  width: 100%;
  background: var(--wt-btn-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background-color 0.1s, color 0.1s;
  box-shadow: var(--shadow-sm);
}

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

.wt-btn:first-of-type {
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.wt-btn:last-of-type {
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

/* Inside Views */
.content-padding {
  padding: 32px;
}

.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.list-card {
  max-width: 1000px;
}

/* Rest of the original inner styles... */
h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.search-box-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
  font-size: 18px;
}

input[type="text"],
input[type="number"],
input[type="time"],
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-color);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.search-input-wrapper input {
  padding-left: 40px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Results */
.result-box {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.result-val {
  font-size: 16px;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.05);
}

/* Table */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
}

.premium-table th,
.premium-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.premium-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

/* Modal */
.modal-overlay {
  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;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.premium-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

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

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

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

.form-group input,
.form-group select {
  padding-left: 12px;
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

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

.mt-4 {
  margin-top: 16px;
}

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

.text-center {
  text-align: center;
}

/* Footer */
.wt-footer-credit {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Arrivals Report Styles */
.arrivals-reports-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.flight-accordion-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}

.flight-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.2s;
}

.flight-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
}

.flight-toggle .chevron {
  color: #D30026;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.flight-toggle.open .chevron {
  transform: rotate(180deg);
}

.flight-content {
  display: none;
  padding: 0 32px 32px 32px;
}

.flight-content.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

.flight-title {
  color: #D30026;
  /* Virgin Red */
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.btn-crew {
  background: #0a84ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.carousel-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.carousel-btn {
  flex: 1;
  background: var(--bg-color);
  border: none;
  color: var(--text-main);
  padding: 12px 0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-btn.active {
  background: #D30026;
  color: white;
}

.time-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.time-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.time-icon {
  background: #34c759;
  color: white;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.time-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 14px !important;
  font-family: inherit;
}

.time-label {
  position: absolute;
  right: 40px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  background: var(--bg-color);
  padding: 0 4px;
}

.stat-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.stat-input-wrapper input {
  padding: 14px 16px;
}

.btn-whatsapp {
  width: 100%;
  background: #34c759;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-whatsapp:hover {
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

/* Rush Tags Styles */
.rush-tag-card {
  max-width: none;
  width: 100%;
}

.ocr-drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: var(--bg-color);
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ocr-drop-zone:hover,
.ocr-drop-zone.dragover {
  border-color: #D30026;
  background: rgba(211, 0, 38, 0.02);
}

.ocr-drop-zone i {
  font-size: 32px;
  color: #D30026;
}

.ocr-drop-zone p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e5ea;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.step.active .step-circle {
  background: #D30026;
  color: white;
}

.step-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.step.active .step-label {
  color: var(--text-main);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e5e5ea;
  margin: 0 10px;
  margin-top: -24px;
  z-index: 1;
}

.step-title {
  color: #D30026;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.route-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.route-box {
  flex: 1;
}

.route-box label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.bold-input {
  font-size: 24px !important;
  font-weight: 700 !important;
  height: 60px;
}

.uppercase-input {
  text-transform: uppercase;
}

.route-arrow {
  color: #D30026;
  font-size: 24px;
  margin-top: 20px;
  /* Aligns with input */
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 12px;
}

.dest-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.dest-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dest-pill:hover {
  background: var(--bg-color);
  border-color: #d1d1d6;
}

.btn-next {
  width: 100%;
  background: #e5e5ea;
  color: var(--text-secondary);
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-next:hover {
  background: #d1d1d6;
  color: var(--text-main);
}

.airport-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.airport-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 100;
  margin-top: 4px;
}

.airport-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.airport-item:hover {
  border-color: #D30026;
  box-shadow: 0 4px 12px rgba(211, 0, 38, 0.1);
}

.airport-item.selected {
  border-color: #D30026;
  background: rgba(211, 0, 38, 0.05);
}

.airport-name {
  font-weight: 600;
  font-size: 15px;
}

.airport-code {
  font-weight: 700;
  color: #D30026;
  font-size: 18px;
  background: white;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(211, 0, 38, 0.2);
}

.review-box {
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
}

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

.review-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
}

.review-value {
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 900px) {
  .wt-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wt-dashboard {
    grid-template-columns: 1fr;
  }

  .wt-header {
    padding: 0 10px;
  }

  .wt-search {
    display: none;
  }
}