/* base.css — Fox Tracker mobile-first, ultra-simple, narrow screen style */

/* Reset box-sizing for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #fff;
  color: #222;
  min-width: 0;
}

body {
  max-width: 400px;
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
}

header, footer {
  text-align: center;
  padding: 1em 0 0.5em 0;
}

h1 {
  font-size: 1.5em;
  margin: 0.2em 0 0.5em 0;
}

nav {
  font-size: 1em;
  margin-bottom: 1em;
}
nav a {
  color: #0077cc;
  text-decoration: none;
  padding: 0.5em 0.7em;
  display: inline-block;
}
nav a:hover {
  text-decoration: underline;
}

main {
  padding: 0.5em 0 1em 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  margin: 2em 0 1.5em 0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.2em 0.7em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
label {
  font-size: 1.08em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-bottom: 0.2em;
}
input, select, textarea, button {
  font-family: inherit;
  font-size: 1.15em;
  border-radius: 5px;
  border: 1.5px solid #b5c0cc;
  background: #f6faff;
  outline: none;
  margin: 0;
  width: 100%;
  min-height: 54px;
  padding: 1em 1em;
  transition: border 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #0077cc;
  background: #fff;
}
button {
  background: #0077cc;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
button:active {
  background: #005fa3;
}

#loginMsg, #registerMsg {
  color: #c00;
  margin-top: 0.5em;
  min-height: 1.5em;
}

ul {
  padding-left: 1.2em;
}

/* Fisher-Price style action buttons for dashboard */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin: 2em 0 1.5em 0;
  align-items: stretch;
}
.action-btn {
  display: block;
  text-align: center;
  font-size: 1.25em;
  font-weight: bold;
  border-radius: 2em;
  padding: 1.1em 0.5em;
  margin: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  outline: none;
  border: none;
  letter-spacing: 0.01em;
}
.action-btn.foxes    { background: #ffe066; color: #7a5c00; }
.action-btn.sightings{ background: #b2f2ff; color: #005c7a; }
.action-btn.family   { background: #ffd6e0; color: #a03a5d; }
.action-btn.manual   { background: #d3f9d8; color: #2b7a3d; }
.action-btn:active,
.action-btn:focus    { box-shadow: 0 0 0 3px #0077cc33; }
.action-btn:hover    { filter: brightness(0.97); }

/* Fisher-Price style fox sightings list */
.sightings-list-cards {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 1.5em 0;
}
.sighting-card {
  background: #fffbe6;
  border-radius: 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1em 1.1em;
  font-size: 1.08em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  border-left: 10px solid #ffe066;
}
.sighting-card.vixen { border-left-color: #ffb3d6; background: #fff0f6; }
.sighting-card.dog   { border-left-color: #a5d8ff; background: #e3fafc; }
.sighting-card.kit   { border-left-color: #ffe066; background: #fffbe6; }
.sighting-card.other { border-left-color: #d3f9d8; background: #f8f9fa; }
.sighting-card .sighting-icon {
  font-size: 1.5em;
  margin-right: 0.5em;
}
.sighting-card .sighting-time {
  font-weight: bold;
  color: #333;
}
.sighting-card .sighting-notes {
  color: #444;
  margin: 0.2em 0 0.1em 0;
}
.sighting-card .sighting-media a {
  color: #0077cc;
  text-decoration: underline;
  font-size: 0.98em;
}

@media (max-width: 400px) {
  body {
    padding: 0 2px;
  }
  h1 {
    font-size: 1.2em;
  }
  nav {
    font-size: 0.95em;
  }
  form {
    padding: 0.7em 0.2em;
    gap: 1em;
  }
  input[type="text"],
  input[type="password"],
  input[type="date"],
  input[type="file"],
  select, textarea, button {
    font-size: 1em;
    min-height: 48px;
    padding: 0.9em 0.7em;
  }
  button {
    padding: 0.9em 0;
    font-size: 1em;
  }
  .action-btn {
    font-size: 1.08em;
    padding: 1em 0.2em;
  }
  .sighting-card { font-size: 0.98em; padding: 0.8em 0.5em; }
}
