/* static/css/custom.css - Poging 2: Meer richting Fitbit-stijl */

/* Importeer Google Font */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
  --fitbit-blue: #00B0B9;
  --light-grey-bg: #f7f7f7; /* Nog lichtere achtergrond */
  --card-bg: #ffffff;
  --text-color: #4A4A4A; /* Iets zachter zwart */
  --heading-color: #1d1d1d; /* Donkerder voor koppen */
  --border-color: #e8e8e8; /* Subtiele randkleur */
  --shadow-color: rgba(0, 0, 0, 0.06);
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--light-grey-bg);
  color: var(--text-color);
  margin: 0; /* Verwijder standaard marge */
  padding: 0; /* Verwijder standaard padding */
}

.navbar-placeholder { /* Voeg een placeholder toe bovenaan voor een toekomstige navbar */
  height: 60px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px var(--shadow-color);
  margin-bottom: 30px;
  /* Hier zou je logo/navigatie kunnen komen */
  display: flex;
  align-items: center;
  padding: 0 30px;
  color: var(--fitbit-blue);
  font-size: 1.5em;
  font-weight: bold;
}
.navbar-placeholder::before {
    content: "FamDash"; /* Tijdelijke titel */
}
.progress-bar { /* Doel de Bootstrap progress bar zelf */
    display: flex; /* Maak het een flex container */
    justify-content: center; /* Centreer inhoud horizontaal */
    align-items: center; /* Centreer inhoud verticaal */
    color: white; /* Zet tekstkleur hier */
    font-weight: bold;
    font-size: 0.8em; /* Zet font-size hier */
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); /* Schaduw blijft nuttig */
    overflow: hidden; /* Voorkom dat tekst buiten de balk loopt bij 0% */
}

.container {
  max-width: 1200px; /* Iets breder */
  margin: 0 auto 40px auto; /* Centreren, ruimte onderaan */
  padding: 0 15px; /* Padding aan zijkanten voor kleinere schermen */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700; /* Vettere koppen */
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--fitbit-blue); /* Titel in accentkleur */
}

h2 {
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 2px solid var(--fitbit-blue); /* Accentlijn onder H2 */
    padding-bottom: 10px;
    color: var(--heading-color);
}

hr {
    display: none; /* Verberg de standaard <hr> elementen, we gebruiken spacing/borders */
}

/* Kaart Stijl (voor plots en user data) */
.card {
  background-color: var(--card-bg);
  border-radius: 12px; /* Meer afgerond */
  border: none; /* Geen standaard rand */
  box-shadow: 0 4px 12px var(--shadow-color); /* Iets meer schaduw */
  margin-bottom: 30px;
  padding: 25px;
  overflow: hidden; /* Zorgt dat inhoud binnen de afronding blijft */
}

.plot-container h3, .user-card h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.2em;
  color: var(--heading-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.user-card h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--fitbit-blue); /* Subkoppen in accentkleur */
    text-transform: uppercase; /* Hoofdletters */
    letter-spacing: 0.5px;
}

.user-card ul {
    list-style: none;
    padding-left: 0;
}
.user-card li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color); /* Gestippelde lijn tussen items */
    font-size: 0.95em;
}
.user-card li:last-child {
    border-bottom: none; /* Geen lijn bij laatste item */
}

.goal {
  font-weight: normal; /* Normaal gewicht */
  color: var(--text-color);
  font-size: 0.9em;
  margin-left: 5px;
  display: inline-block; /* Zorgt dat het netjes naast de naam staat */
  background-color: #e7f7f8; /* Lichte achtergrond voor doel */
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #b3e0e3;
}

/* Datum Formulier Stijl */
#date-form {
  display: flex;
  flex-wrap: wrap; /* Zorgt voor wrapping op kleinere schermen */
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: var(--card-bg); /* Wit, net als kaarten */
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-color);
  margin-bottom: 30px;
}

#date-form label {
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0;
}

#date-form input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95em;
}

/* Knop Stijlen */
.btn { /* Algemene knop reset/basis */
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background-color: var(--fitbit-blue);
    color: white;
}
.btn-primary:hover {
    background-color: #008f96; /* Donkerder blauw */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn-outline-secondary:hover {
    background-color: var(--light-grey-bg);
    color: var(--heading-color);
    border-color: #ccc;
}

.error-message {
  color: #e74c3c; /* Duidelijker rood */
  font-weight: bold;
  background-color: #fdd; /* Lichte rode achtergrond */
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e74c3c;
}

.no-data {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Responsive aanpassingen (voorbeeld) */
@media (max-width: 768px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
  .card { padding: 15px; }
  #date-form { flex-direction: column; align-items: stretch; }
  #date-form input[type="date"], #date-form button { width: 100%; }
  .navbar-placeholder { padding: 0 15px; font-size: 1.2em; }
}