/* ============================
   Ghost autocomplete (input)
   ============================ */

/* Wrapper dělá "input" pozadí + border */
.ghost-wrap{
  position: relative;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
}
.ghost-wrap:focus-within{
  border-color:#86b7fe;
  box-shadow:0 0 0 .25rem rgba(13,110,253,.25);
}

/* Ghost text (šedý doplněk) – pod textem inputu */
.ghost-text{
  position:absolute;
  inset:0;
  pointer-events:none;

  padding:.375rem .75rem;
  font-size:1rem;
  line-height:1.5;
  font-family:inherit;

  white-space:pre;
  overflow:hidden;

  z-index:1;
  color:#adb5bd;
  display:flex;
  align-items:center;
  border-radius:.375rem;
}
.ghost-text .typed{ color: transparent; }

/* Input je nad ghostem, bez vlastního borderu */
.ghost-input{
  position:relative;
  z-index:2;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}


/* ============================
   Autocomplete dropdown
   ============================ */
.ac-dd{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 6px);
  z-index: 1055;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  overflow: hidden;
}
.ac-item{
  padding: 10px 12px;
  cursor: pointer;
}
.ac-item:hover,
.ac-item.active{
  background: rgba(13,110,253,.08);
}
.ac-title{ font-weight: 600; }
.ac-meta{ font-size: .85rem; color: #6c757d; margin-top: 2px; }
.ac-hl{
  background: rgba(255,193,7,.25);
  border-radius: 6px;
  padding: 0 3px;
}


/* ============================
   FullCalendar UI
   ============================ */
.fc .fc-toolbar-title{ font-weight: 800; }

.fc .fc-button{
  border-radius: 12px;
  padding: .45rem .85rem;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.fc .fc-button-primary{
  background: #0d6efd;
  border-color: #0d6efd;
}
.fc .fc-button-primary:hover{ filter: brightness(0.95); }
.fc .fc-button-primary:not(:disabled).fc-button-active{
  background: #0b5ed7;
  border-color: #0b5ed7;
  box-shadow: 0 10px 22px rgba(13,110,253,.18);
}
.fc .fc-button-group > .fc-button{ margin: 0 .15rem; }
.fc .fc-today-button{ font-weight: 700; }

/* Označený den (Ctrl+V apod.) */
.fc .fc-daygrid-day.selected-day .fc-daygrid-day-number{
  background: rgba(13,110,253,.12);
  border: 1px solid rgba(13,110,253,.45);
  border-radius: 8px;
  padding: 2px 6px;
}

/* pryč s focus outline uvnitř FC */
.fc *:focus { outline: none !important; }

.fc .fc-event.selected-event{
  outline: 2px solid rgba(13,110,253,.8);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(13,110,253,.15);
  border-radius: 6px;
}

/* Default FC tečka pryč */
.fc .fc-daygrid-event-dot { display: none !important; }

/* Tvoje tečka */
.fc .tmpl-dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:6px;
  vertical-align:middle;
  border:2px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}

/* Čísla dnů čitelně */
.fc .fc-daygrid-day-number{
  color: #212529 !important;
  font-weight: 600;
}
body.neon .fc .fc-daygrid-day-number{
  color: rgba(255,255,255,.92) !important;
}

/* ============================
   FullCalendar: BARVY POVINNOSTÍ
   (classNames z API: duty-ok / duty-soon / duty-overdue / duty-done)
   ============================ */

.fc .fc-event.duty-ok,
.fc .fc-event.duty-soon,
.fc .fc-event.duty-overdue,
.fc .fc-event.duty-done{
  border-radius: 8px;
  padding: 2px 6px;
  border-width: 1px;
}

/* OK (zelená) */
.fc .fc-event.duty-ok{
  background: #198754;
  border-color: #198754;
  color: #fff;
}

/* Brzy (žlutá) */
.fc .fc-event.duty-soon{
  background: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

/* Po termínu (červená) */
.fc .fc-event.duty-overdue{
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

/* Vyřízeno (šedá) – musí přebít všechno ostatní */
.fc .fc-event.duty-done{
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
  opacity: .75;
  text-decoration: line-through;
}

/* ============================
   Dropdown v tabulce
   ============================ */
.table-responsive { overflow: visible !important; }
.table-responsive .dropdown-menu { z-index: 1055; }

/* Bootstrap text-muted fix (když ti to něco přebije) */
.text-muted, .form-text, .small { color: #6c757d !important; }
