/* GLOBAL THEME – Parachute Loft Tracker
   Brand colors:
   - Primary: #3CB4E5
   - Black:   #000000
   - Grey:    #BBBBBB
*/

/* ===== BASE ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #F5F5F5;
  background: radial-gradient(circle at top left, #3CB4E5 0, #1A6F8D 40%, #000000 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.small {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ===== APP SHELL ===== */

.app-header {
  width: 100%;
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links a {
  margin-left: 18px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.app-main {
  padding: 20px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  max-width: 1400px;
  margin: 10px auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.page-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

.page-actions {
  display: flex;
  gap: 8px;
}

/* ===== CARDS ===== */

.card {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 16px auto;
  width: 95%;
  max-width: 1400px;
  backdrop-filter: blur(14px);
  color: white;
  box-shadow: 0 22px 40px rgba(0,0,0,0.45);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

/* Small stat cards for dashboard */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.stat-card {
  background: radial-gradient(circle at top left, rgba(60,180,229,0.35), rgba(0,0,0,0.7));
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.16);
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 4px;
}

.stat-footnote {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 2px;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  line-height: 1.3;
}

.btn-primary {
  background: #3CB4E5;
  color: #000;
}

.btn-primary:hover {
  background: #32A2CE;
}

.btn-secondary {
  background: #BBBBBB;
  color: #000;
}

.btn-secondary:hover {
  background: #a1a1a1;
}

.btn-danger {
  background: #D33A3A;
  color: #fff;
}

.btn-small {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ===== TABLES ===== */

.table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  font-size: 0.88rem;
}

.table th,
.table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.table th {
  background: rgba(255,255,255,0.10);
  font-weight: 600;
  text-align: left;
}

.table tr:hover td {
  background: rgba(255,255,255,0.06);
}

/* ===== FORMS ===== */

form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #f5f5f5;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: #BBBBBB;
}

textarea {
  min-height: 70px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-row > label {
  flex: 1 1 150px;
}

/* Rig type checkbox group */
.rig-type-group {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.rig-type-option {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Messages */
.error {
  background: rgba(211,58,58,0.2);
  border: 1px solid #D33A3A;
  color: #ffeaea;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.success {
  background: rgba(60,180,120,0.2);
  border: 1px solid #3CB47A;
  color: #e9fff2;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* Tags / chips */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid rgba(255,255,255,0.5);
}

.tag-back {
  background: rgba(60,180,229,0.25);
}

.tag-seat {
  background: rgba(60,229,180,0.25);
}

.tag-chest {
  background: rgba(229,180,60,0.25);
}

/* Filters / toolbar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.filters label {
  font-size: 0.8rem;
}

.filters select,
.filters input[type="date"] {
  min-width: 160px;
}

/* Footer small */
.app-footer {
  max-width: 1400px;
  margin: 10px auto 20px;
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 12px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ============================
   Landing Page Link Visibility Fix
   ============================ */

/* General link color on landing page */
body.landing-body a {
    color: #3cb4e5;        /* bright Hoodoo blue */
    font-weight: 600;
    text-decoration: none;
}

/* Hover makes links lighter / more visible */
body.landing-body a:hover {
    color: #67d2ff;        /* lighter teal */
    text-decoration: underline;
}

/* Make CTA links white when needed */
.landing-nav a,
.landing-hero-actions a.button,
.landing-hero-actions .btn-primary,
.landing-hero-actions .btn-secondary {
    color: #ffffff !important;
}

/* Header nav links specifically */
.landing-nav a {
    color: #000000 !important;  /* black or dark gray for visibility */
}

.landing-nav a:hover {
    background: rgba(60, 180, 229, 0.15);
    color: #000000 !important;
}

/* ============================================
   Landing Page High-Contrast Link Styling
   ============================================ */

body.landing-body a {
    color: #3cb4e5 !important;     /* Bright Hoodoo blue */
    font-weight: 600;
    text-decoration: underline;
}

body.landing-body a:hover {
    color: #74d7ff !important;
}

/* Make CTA buttons clean & white */
body.landing-body .button,
body.landing-body .btn-primary {
    color: #ffffff !important;
    background-color: #3cb4e5 !important;
}

body.landing-body .button:hover,
body.landing-body .btn-primary:hover {
    background-color: #2a90bf !important;
}

/* Header navigation */
.landing-nav a {
    color: #000000 !important;      /* clean readable dark text */
    font-weight: 600;
}

.landing-nav a:hover {
    background: rgba(60, 180, 229, 0.2);
    color: #000000 !important;
}

/* Links inside cards (the dark gradient ones) */
.card a {
    color: #ffffff !important;      /* white text inside dark cards */
    text-decoration: underline !important;
}

.card a:hover {
    color: #e0e0e0 !important;
}
