/* ====== ZÁKLAD ====== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #111;
}

h2, h3 {
  margin-top: 1.5rem;
}

button {
  cursor: pointer;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}


/* ====== HLAVNÍ HORNÍ LIŠTA ====== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
}

.logo-img {
  height: 40px;
}

.user-area {
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-button {
  background-color: #333;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.login-button:hover {
  background-color: #555;
}

/* ====== MENU ====== */
.user-menu {
  position: fixed;
  top: 70px; /* nebo 80px dle výšky top-bar */
  left: 0;
  right: 0;
  height: 40px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
  z-index: 999;

  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-inner {
  display: flex;
  justify-content: center;  /* ← přidat TOTO! */
  gap: 15px;
  max-width: 600px;
  margin: 0 auto; /* <<< tohle je klíčové! */
}



#content {
  position: absolute;
  top: 100px; /* 60 + 40 */
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 20px;
  background: #f9f9f9;
}

.content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.menu-tab {
  background: none;
  border: none;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  padding: 6px 12px;
}

.menu-tab:hover {
  color: #666;
}

.menu-tab:focus,
.menu-tab.active {
  color: dodgerblue;
}

/* ====== PŘIHLAŠOVACÍ MODAL ====== */
#loginModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ccc;
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  min-width: 300px;
}

#loginModal h3 {
  margin-top: 0;
}

#loginModal input {
  display: block;
  margin-bottom: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
}

#loginOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.login-error {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ====== FORMULÁŘ OSOBNOSTI ====== */
.osobnosti-form {
  margin-bottom: 1rem;
}

.osobnosti-form input {
  padding: 0.4rem 0.6rem;
  margin-right: 0.5rem;
  font-size: 1rem;
}

.osobnosti-form select {
  background: white;
  padding: 0.4rem 0.6rem;
  margin-right: 0.5rem;
  font-size: 1rem;
  color: gray;
}

.osobnosti-form button {
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
}

/* ====== KARTY OSOBNOSTÍ ====== */
.osobnost-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.osobnost-card:hover {
  background: #f0f0f0;
}

/* ====== DETAIL OSOBNOSTI A CITÁTY ====== */
.citaty-vypis {
  margin-top: 1rem;
}

.citat-box {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: 4px;
}

.citat-text {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 0.3rem 0;
}

.citat-zdroj {
  font-size: 0.85rem;
  color: #666;
}

/* ====== OBECNÉ ====== */
#content {
  padding: 20px;
}

.osobnost-ma-citat {
  background-color: #e6f4ea;
}

.nahodne-vysledky .citat-box {
  margin-bottom: 1em;
  padding: 0.7em;
  border: 1px solid #ddd;
  background: #f8f8f8;
  border-radius: 6px;
}

.kratke-pole {
  width: 100px;
  max-width: 100%;
}

.lightbox-status {
  cursor: pointer;
  padding: 4px 8px;
  background-color: #eee;
  border-radius: 4px;
  display: inline-block;
  user-select: none;
}


.lightbox-status:hover {
  color: #007bff;
}


.pridat-btn {
  background-color: #e0e0e0;
  border: 1px solid #bbb;
  padding: 4px 8px;
  margin-top: 5px;
  font-size: 0.9em;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.pridat-btn:hover {
  background-color: #c0c0c0;
}

.lightbox-seznam {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#lightboxStatus {
  cursor: pointer;
  padding: 0.3em 0.6em;
  border: 1px solid #888;
  border-radius: 5px;
  background: #f9f9f9;
  margin-left: 1em;
}

button {
  margin-right: 0.8em;
  padding: 0.4em 0.8em;
  border-radius: 5px;
  border: 1px solid #999;
  background-color: #eee;
  cursor: pointer;
}

button:hover {
  background-color: #ddeeff;
}


.lightbox-akce {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.lightbox-akce button {
  padding: 0.4em 0.8em;
  border-radius: 4px;
  background: #eee;
  border: 1px solid #999;
  cursor: pointer;
}

.lightbox-akce button:hover {
  background: #ddd;
}



.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 1.5em;
  border-radius: 6px;
  width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-content select, .modal-content input {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  font-size: 1rem;
}


.hlaska-box {
  position: fixed;
  bottom: 1em;
  right: 1em;
  z-index: 1000;
  background-color: #333;
  color: white;
  padding: 0.75em 1.2em;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 0.95em;
}
.hlaska-box.zobrazit {
  opacity: 1;
  pointer-events: auto;
}
.hlaska-box.ok {
  background-color: #28a745;
}
.hlaska-box.chyba {
  background-color: #dc3545;
}


.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-window {
  background: white;
  padding: 1.5em 2em;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.modal-buttons button {
  margin: 0 0.5em;
  padding: 0.5em 1em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.modal-buttons button:first-child {
  background-color: #28a745; color: white;
}
.modal-buttons button:last-child {
  background-color: #dc3545; color: white;
}

.modal-window h3 {
  margin-top: 0;
}

.modal-window label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
  font-size: 0.95rem;
}

.modal-window input,
.modal-window select {
  width: 100%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 0.3em;
  box-sizing: border-box;
}

.modal-buttons {
  margin-top: 1.5em;
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
}

.modal-buttons button {
  padding: 0.5em 1.2em;
  font-size: 0.95rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.modal-buttons .btn-save {
  background-color: #28a745;
  color: white;
}

.modal-buttons .btn-cancel {
  background-color: #ccc;
  color: black;
}

.modal-buttons button:hover {
  opacity: 0.9;
}

.citat-akce {
  margin-top: 0.5em;
  display: flex;
  gap: 10px;
}

.citat-akce button {
  padding: 4px 8px;
  font-size: 0.9em;
  border-radius: 4px;
}

