/* =============================================================
   🔥 TIME – CYBERPUNK NEON LOOK (Optimiert & Modular)
   Teil 1: Timer • Status • Badges • Tabelle • Buttons
============================================================= */

/* Timer-Anzeige */
#liveTimer {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
  color: var(--color-neon-yellow, #ffdb00);
  text-shadow: 0 0 12px var(--color-neon-yellow, #ffdb00),
               0 0 24px rgba(255, 211, 0, 0.6);
}

/* Timer-Status */
.timer-status {
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.timer-running {
  color: var(--color-neon-green, #00ff66);
  text-shadow: 0 0 8px var(--color-neon-green, #00ff66);
}
.timer-paused {
  color: var(--color-neon-yellow, #ffdb00);
  text-shadow: 0 0 8px var(--color-neon-yellow, #ffdb00);
}
.timer-stopped {
  color: var(--color-neon-red, #ff4d4d);
  text-shadow: 0 0 8px var(--color-neon-red, #ff4d4d);
}

/* Stunden-Badges */
.hours-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  min-width: 70px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.hours-ok {
  background: rgba(0, 255, 102, 0.2);
  color: var(--color-neon-green, #00ff66);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.55);
}
.hours-warning {
  background: rgba(255, 211, 0, 0.2);
  color: var(--color-neon-yellow, #ffdb00);
  box-shadow: 0 0 8px rgba(255, 211, 0, 0.55);
}
.hours-overtime {
  background: rgba(255, 77, 77, 0.2);
  color: var(--color-neon-red, #ff4d4d);
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.55);
}

/* Tabelle */
#timeTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  table-layout: fixed;
}
#timeTable th,
#timeTable td {
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid #333;
  color: var(--color-text-light, #eee);
  font-size: 0.95rem;
  word-wrap: break-word;
}
#timeTable th {
  background: var(--color-bg-panel, #1f1f2e);
  color: var(--color-neon-yellow, #ffdb00);
  text-shadow: 0 0 6px var(--color-neon-yellow, #ffdb00);
}
#timeTable tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
#timeTable tr:hover {
  background: #2a2a40;
  transition: background 0.2s ease;
}

/* Timer-Buttons */
#startTimerBtn,
#stopTimerBtn,
#resetTimerBtn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin: 0 6px;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#startTimerBtn {
  background: var(--color-neon-green, #00ff66);
  color: #000;
  box-shadow: 0 0 12px var(--color-neon-green, #00ff66);
}
#startTimerBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--color-neon-green, #00ff66);
}
#stopTimerBtn {
  background: var(--color-neon-yellow, #ffdb00);
  color: #000;
  box-shadow: 0 0 12px var(--color-neon-yellow, #ffdb00);
}
#stopTimerBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--color-neon-yellow, #ffdb00);
}
#resetTimerBtn {
  background: var(--color-neon-red, #ff4d4d);
  color: #000;
  box-shadow: 0 0 12px var(--color-neon-red, #ff4d4d);
}
#resetTimerBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--color-neon-red, #ff4d4d);
}

/* Delete Button */
#timeTable .deleteBtn {
  background: transparent;
  border: 1px solid var(--color-neon-red, #ff4d4d);
  color: var(--color-neon-red, #ff4d4d);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
#timeTable .deleteBtn:hover {
  background: var(--color-neon-red, #ff4d4d);
  color: #000;
  box-shadow: 0 0 14px var(--color-neon-red, #ff4d4d),
              0 0 28px rgba(255, 77, 77, 0.6);
}
/* =============================================================
   🔥 TIME – CYBERPUNK NEON LOOK (Optimiert & Modular)
   Teil 2: Formular • Modal • Responsive • Feinheiten
============================================================= */

/* Formular-Layout */
#timeForm.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

/* Eingabefelder */
#timeForm input,
#timeForm textarea,
#timeForm select {
  background: #1a1a2e;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 6px;
  color: var(--color-text-light, #eee);
  font-size: 0.95rem;
  width: 100%;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
#timeForm input:focus,
#timeForm textarea:focus,
#timeForm select:focus {
  border-color: var(--color-neon-yellow, #ffdb00);
  box-shadow: 0 0 6px var(--color-neon-yellow, #ffdb00);
  outline: none;
}

/* Beschreibung */
#workDescription {
  resize: vertical;
  min-height: 60px;
}

/* Modal für Bestätigung */
#confirmModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 10, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
#confirmModal.hidden {
  display: none;
}
#confirmModal .modal-content {
  background: #1e1e2e;
  padding: 24px 32px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px var(--color-neon-yellow, #ffdb00);
}
#confirmModal .modal-content p {
  color: var(--color-text-light, #eee);
  margin-bottom: 20px;
}
#confirmModal .modal-content button {
  margin: 0 10px;
  padding: 8px 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#confirmYes {
  background: var(--color-neon-red, #ff4d4d);
  color: #000;
  box-shadow: 0 0 10px var(--color-neon-red, #ff4d4d);
}
#confirmNo {
  background: #444;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  #timeForm.form-grid {
    grid-template-columns: 1fr;
  }
  #timeTable {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .hours-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

/* Globale Icon-Farbe */
i.fa-solid {
  color: #ffffff !important;
}

/* Platzhalterfarben */
::placeholder {
  color: #888;
  opacity: 0.6;
}
