@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --latam-red: #e31837;
  --latam-red-hover: #c2132d;
  --latam-indigo: #0a192f;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:
    0 4px 6px -1px rgba(15, 23, 42, 0.1),
    0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --border-radius: 8px;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  background: var(--latam-indigo);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.header h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

.header h1 span {
  color: var(--latam-red);
}

.main-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.btn {
  min-height: 38px;
  padding: 0.625rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  color: #ffffff;
  background: var(--latam-red);
  box-shadow: 0 2px 4px rgba(227, 24, 55, 0.2);
}

.btn-primary:hover {
  background: var(--latam-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(227, 24, 55, 0.26);
}

.btn-secondary {
  color: var(--text-secondary);
  background: #ffffff;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  color: var(--latam-red);
  border-color: rgba(227, 24, 55, 0.35);
  background: #fff5f7;
}

.btn:focus-visible {
  outline: 3px solid rgba(227, 24, 55, 0.18);
  outline-offset: 2px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.spin-icon {
  animation: spin 0.9s linear infinite;
}

.summary-pill {
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
}

.summary-pill strong {
  color: var(--latam-indigo);
  font-weight: 700;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
