/* public/css/style.css */

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 450;
  letter-spacing: -0.01em;
}

/* ── Nav ───────────────────────────────────────────────────────── */
.nav-link {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.nav-active { color: #008000; background: rgba(0,128,0,0.08); }

/* Menu button verde */
nav button[onclick="toggleMenu()"] {
  background: #008000 !important;
  border-color: #006600 !important;
  color: #fff !important;
}

/* ── Form Fields ───────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.375rem;
}
.field-input {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.field-input:focus { border-color: #008000; box-shadow: 0 0 0 3px rgba(0,128,0,0.12); }
.field-input::placeholder { color: #4b5563; }
select.field-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  appearance: none;
}
input[type="date"].field-input,
input[type="datetime-local"].field-input { color-scheme: dark; }

/* ── Tip card ──────────────────────────────────────────────────── */
.tip-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tip-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ── Sidebar admin ─────────────────────────────────────────────── */
.sbt { color: #6b7280; }
.sbt:hover { background: rgba(255,255,255,0.04); color: #d1d5db; }

/* ── Skeleton ──────────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }


/* ── Nav ───────────────────────────────────────────────────────── */
.nav-link {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.nav-active { color: #a9f457; background: rgba(169,244,87,0.08); }

/* ── Form Fields ───────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.375rem;
}

.field-input {
  width: 100%;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: #a9f457;
  box-shadow: 0 0 0 3px rgba(169, 244, 87, 0.08);
}

.field-input::placeholder {
  color: #4b5563;
}

select.field-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  appearance: none;
}

input[type="date"].field-input,
input[type="datetime-local"].field-input {
  color-scheme: dark;
}

/* ── Tip card hover ────────────────────────────────────────────── */
.tip-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tip-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ── Sidebar admin tabs ────────────────────────────────────────── */
.sbt {
  color: #6b7280;
}
.sbt:hover {
  background: rgba(255,255,255,0.04);
  color: #d1d5db;
}

/* ── Animate pulse (skeleton) ──────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
