:root {
  --filip: #4da3ff;
  --anet: #ff82b2;
  --sami: #cfcfcf;
  --bg: #f7f9fc;
  --text: #2b2b2b;
  --primary: #5567dd;
  --border: #e0e0e0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  font-size: 2.4rem;
  color: var(--primary);
  margin: 20px 0;
}

#selected-person {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary);
}

#week-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 20px 10px;
}

#week-selector button {
  width: 100%;
  max-width: 300px;
  padding: 16px;
  font-size: 1.2rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

#week-selector button:hover {
  background-color: #4457b8;
}

#week-label {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

#grid button:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

#grid button[data-color="Filip"] {
  background-color: var(--filip);
  color: white;
}

#grid button[data-color="Anet"] {
  background-color: var(--anet);
  color: white;
}

#grid button[data-color="Sami"] {
  background-color: var(--sami);
  color: black;
}

.legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 30px auto;
}

.legend button {
  width: 100%;
  max-width: 300px;
  padding: 16px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  transition: transform 0.2s;
  color: white;
}

.legend button:hover {
  transform: scale(1.05);
}

button[onclick*="ulozitData"] {
  width: 100%;
  max-width: 300px;
  padding: 18px;
  font-size: 1.3rem;
  font-weight: bold;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  margin: 30px auto;
  display: block;
  transition: background-color 0.3s;
}

button[onclick*="ulozitData"]:hover {
  background-color: #4457b8;
}

/* Přidání trochu prostoru na spodku */
body::after {
  content: "";
  display: block;
  height: 50px;
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 20px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

#grid button {
  padding: 18px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid var(--border);
  background-color: white;
  cursor: pointer;
  transition: all 0.25s ease;
  color: white;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
    margin: 20px 10px;
  }

  #selected-person {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  #week-selector {
    flex-direction: column;
    gap: 0.8rem;
    margin: 15px 10px;
  }

  #week-selector button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
  }

/* GRID (Desktop) */
#grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 30px auto;

}

#grid button {
  width: 100%;
  max-width: 300px;
  padding: 16px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid var(--border);
  background-color: white;
  cursor: pointer;
  transition: all 0.25s ease;
  color: white;
}
  button[onclick*="ulozitData"] {
    width: 90%;
    padding: 16px;
    font-size: 1.2rem;
  }

  .legend {
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
  }

  .legend button {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
  }

  /* Úprava pro zobrazení dnů pod sebou (Neděle, Pondělí, atd.) */
  #grid button {
    width: 100%; /* Zajistí, že každé tlačítko zabere celý řádek */
    font-size: 1.2rem;
    padding: 18px;
  }

  /* Změna barvy textu pro dny na černou a tučnější */
  #week-label {
    color: #000000; /* Černá barva pro dny */
    font-weight: bold; /* Tučné písmo */
  }
}
		