@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F7FAFF;
  color: #0D2B4E;
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ==== CRITICAL LOGO SIZING (guaranteed to work) ==== */
.infield-navbar-logo {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  display: block;
}

/* ==== BUTTONS ==== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1E88E5;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-size: 14px;
}
.btn-primary:hover { background: #1565C0; }

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0D2B4E;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-size: 14px;
}
.btn-navy:hover { background: #08203a; }

.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #4FC3F7;
  color: #0D2B4E;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-size: 14px;
}
.btn-teal:hover { background: #29B6F6; }

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2E7D32;
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.btn-success:hover { background: #1B5E20; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #DC2626;
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.btn-danger:hover { background: #B91C1C; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1E88E5;
  color: #1E88E5;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
}
.btn-outline:hover { background: #1E88E5; color: #fff; }

/* ==== CARDS ==== */
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(13, 43, 78, 0.06);
}

/* ==== INPUTS ==== */
.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: #0D2B4E;
  background: #fff;
  outline: none;
  transition: border 0.15s ease;
}
.input:focus {
  border-color: #1E88E5;
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}
.input::placeholder { color: #94a3b8; }

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0D2B4E;
  margin-bottom: 6px;
}

/* ==== BADGES ==== */
.badge-pending {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-approved {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-rejected {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-info {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* ==== PAGE THEMES ==== */
.page-navy { background: linear-gradient(135deg, #0D2B4E 0%, #08203a 100%); min-height: 100vh; }
.page-blue { background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%); min-height: 100vh; }
.page-teal { background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%); min-height: 100vh; }
.page-cream { background: #F7FAFF; min-height: 100vh; }
.page-white { background: #FFFFFF; min-height: 100vh; }

/* ==== SCROLLBAR ==== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(30, 136, 229, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(30, 136, 229, 0.5); }