/* =============================================================================
   AeryxHub — Global Styles
   Tailwind handles the heavy lifting. This file adds:
   - PT Sans + Amazon Ember Display font stack (Amazon-like feel)
   - Custom scrollbar
   - Focus-visible ring override
   - Utility classes not in Tailwind CDN
   - Smooth section transitions
============================================================================= */

/* ── PT Sans + Amazon Ember Display font stack ─────────────────────────────── */
/* PT Sans is loaded via Google Fonts in each HTML page's <head>.
   It closely mimics the proportions of Amazon's proprietary typeface. */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body, button, input, select, textarea {
  font-family: 'Amazon Ember Display', 'Amazon Ember', 'PT Sans', 'Inter', system-ui, sans-serif;
  font-size: 1rem;
}

/* Slightly larger base text for readability */
p, li, td, th, label, span, div {
  font-size: inherit;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a1628; }
::-webkit-scrollbar-thumb { background: #FF9900; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #FFB84D; }

/* ── Focus ring (accessibility) ────────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #FF9900;
  outline-offset: 2px;
}

/* ── Page fade-in ──────────────────────────────────────────────────────────── */
body {
  animation: fadeIn 0.25s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Alert variants ────────────────────────────────────────────────────────── */
.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-info {
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* ── Loading spinner ───────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

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

/* ── Team card hover lift ───────────────────────────────────────────────────── */
.team-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

/* ── Form input error state ────────────────────────────────────────────────── */
input.error,
textarea.error {
  border-color: #ef4444 !important;
}

/* ── Dashboard table ───────────────────────────────────────────────────────── */
.data-table th {
  background-color: #1e293b;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 0.75rem 1rem;
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #1e293b;
  font-size: 0.875rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ── Status badges ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending  { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.badge-active   { background: rgba(16,185,129,0.15);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.badge-rejected { background: rgba(239,68,68,0.15);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.badge-admin    { background: rgba(99,102,241,0.15);  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.badge-member   { background: rgba(148,163,184,0.1);  color: #cbd5e1; border: 1px solid rgba(148,163,184,0.2); }
