* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4f8;
  color: #1a202c;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  text-align: center;
  padding: 24px 16px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 4px;
}

#ura {
  font-size: 2.2rem;
  font-weight: 300;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* Zaposleni grid */
.zaposleni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.zaposleni-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.zaposleni-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border-color: #4299e1;
}

.zaposleni-btn:active {
  transform: translateY(0);
}

.zaposleni-btn.prisoten {
  border-color: #48bb78;
  background: #f0fff4;
}

.zaposleni-btn.prisoten::after {
  content: '● Prisoten';
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #38a169;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zaposleni-btn.odsoten::after {
  content: '○ Odsoten';
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #a0aec0;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Evidenca */
.evidenca-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidenca-zapis {
  background: white;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  font-size: 0.95rem;
}

.evidenca-zapis .tip-pill {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 70px;
  text-align: center;
}

.tip-pill.PRIHOD {
  background: #c6f6d5;
  color: #276749;
}

.tip-pill.ODHOD {
  background: #fed7d7;
  color: #9b2c2c;
}

.evidenca-zapis .ev-ime {
  font-weight: 600;
  flex: 1;
}

.evidenca-zapis .ev-cas {
  color: #718096;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.evidenca-prazno {
  color: #a0aec0;
  text-align: center;
  padding: 24px;
  font-style: italic;
}

/* Dialog / Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(3px);
}

.overlay.hidden {
  display: none;
}

.dialog {
  background: white;
  border-radius: 20px;
  padding: 36px 40px;
  min-width: 320px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popIn 0.18s ease;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.tip-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tip-badge.PRIHOD {
  background: #c6f6d5;
  color: #276749;
}

.tip-badge.ODHOD {
  background: #fed7d7;
  color: #9b2c2c;
}

.dialog h2 {
  font-size: 1.6rem;
  color: #1a202c;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.dialog-cas {
  font-size: 1.4rem;
  font-weight: 300;
  color: #4a5568;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.dialog-vprasanje {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 28px;
}

.dialog-gumbi {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-potrdi, .btn-preklic {
  padding: 13px 32px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-potrdi {
  background: #2c5282;
  color: white;
}

.btn-potrdi:hover {
  background: #1a365d;
  transform: translateY(-1px);
}

.btn-preklic {
  background: #edf2f7;
  color: #4a5568;
}

.btn-preklic:hover {
  background: #e2e8f0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d3748;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 200;
  transition: opacity 0.3s ease;
}

.toast.hidden {
  display: none;
}

.toast.prihod { background: #276749; }
.toast.odhod  { background: #9b2c2c; }

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 8px;
}
.admin-link, .moj-cas-link {
  font-size: 0.8rem;
  color: #a0aec0;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.15s;
}
.admin-link:hover, .moj-cas-link:hover { color: #4a5568; }
.moj-cas-link { color: #4299e1; }
.moj-cas-link:hover { color: #2c5282; }
.footer-sep { color: #cbd5e0; }

@media (max-width: 480px) {
  header h1 { font-size: 1.5rem; }
  #ura { font-size: 1.8rem; }
  .zaposleni-grid { grid-template-columns: 1fr 1fr; }
  .dialog { padding: 28px 24px; }
}
