/* Aurigny Roblox Check-in - Redesigned */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --aurigny-blue: #153152;
  --aurigny-yellow: #FFD100;
  --aurigny-red: #C8102E;
  --aurigny-green: #10B981;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--aurigny-blue) 0%, #0A1929 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--aurigny-yellow);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--aurigny-blue);
}

.hero-small {
  position: relative;
  height: 250px;
  background: url('boarding-pass-bg.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 49, 82, 0.92) 0%, rgba(10, 25, 41, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.main-container {
  max-width: 600px;
  margin: -60px auto 3rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

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

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--aurigny-blue);
}

.checkin-card h2 {
  color: var(--aurigny-blue);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 1px;
}

input:focus {
  outline: none;
  border-color: var(--aurigny-yellow);
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.1);
}

.btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--aurigny-yellow);
  color: var(--aurigny-blue);
}

.btn-primary:hover:not(:disabled) {
  background: #E6BC00;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#resultArea {
  margin-top: 2rem;
  animation: fadeIn 0.3s;
}

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

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

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--aurigny-green);
}

.booking-found h3 {
  color: var(--aurigny-green);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-details {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row.highlight {
  background: var(--white);
  margin: 0.5rem -0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  border: none;
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-value {
  font-weight: 700;
  color: var(--aurigny-blue);
}

.boarding-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.booking-not-found {
  text-align: center;
}

.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--aurigny-red);
}

.booking-not-found h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.booking-not-found p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.booking-not-found a {
  color: var(--aurigny-blue);
  font-weight: 600;
}

.booking-error {
  padding: 1rem;
  background: #FEE2E2;
  border-radius: 8px;
  color: #991B1B;
}

.info-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  text-align: left;
}

.info-icon {
  flex-shrink: 0;
  color: #3B82F6;
}

.info-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 49, 82, 0.3);
  border-top-color: var(--aurigny-blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}
