/* =====================
   Globalne style
   ===================== */
body {
  background-color: #000713;
  color: #fff;
  font-family: system-ui, sans-serif;
  padding: 1rem;
  margin: 0;
}

h1, h2 {
  text-align: center;
}

/* =====================
   Formularz dodawania projektu
   ===================== */
form#add-project-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

form#add-project-form input,
form#add-project-form button {
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: none;
}

form#add-project-form input {
  min-width: 150px;
}

form#add-project-form button {
  background-color: #00dfff;
  color: #000713;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

form#add-project-form button:hover {
  background-color: #00ffa5;
}

/* =====================
   Grid kafelków
   ===================== */
/* Grid kafelków – maks. 4 w rzędzie */
#projects-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* dokładnie 4 w rzędzie */
  gap: 1rem;
}

/* Responsywność: poniżej 1200px – 3, poniżej 900px – 2, poniżej 600px – 1 */
@media (max-width: 1200px) {
  #projects-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #projects-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #projects-cards {
    grid-template-columns: 1fr;
  }
}


/* =====================
   Card projektu
   ===================== */
.project-card {
  background-color: #111a2b;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-card .last-work {
  font-size: 0.8rem;
  color: #aaa;
}

/* =====================
   Pasek postępu
   ===================== */
.progress-container {
  background-color: #222c3d;
  border-radius: 0.25rem;
  height: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 0.25rem;
  transition: width 0.3s, background-color 0.3s;
}

/* Kolory paska postępu – dynamiczne ustawiane w JS */
/* zielony: #28a745, żółto-zielony: #a3e635, żółty: #ffeb3b, pomarańczowy: #ff9800, czerwony: #f44336 */

/* =====================
   Label czasu
   ===================== */
.time-label {
  font-size: 0.8rem;
  text-align: right;
}

/* =====================
   Button [+]
   ===================== */
.project-card button.add-time {
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: bold;
  align-self: flex-end;
  transition: background 0.2s;
  background-color: #00dfff;
  color: #000713;
}

.project-card button.add-time:hover {
  background-color: #00ffa5;
}
.most-work-day {
font-size: 0.4rem;
    
}
}