/* =========================================
   STYLIZACJA WYDARZEŃ (POPRAWKA: ZWIJANIE TEKSTU + BRAK OBRAMOWAŃ)
   ========================================= */

/* Główny link wydarzenia - CZYŚCIMY TŁO I RAMKI */
a.fc-event {
  font-size: 11px;
  min-height: 18px;
  height: auto !important; /* WAŻNE: Pozwala wydarzeniu rosnąć */
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border: none !important; /* Usuwa białe obramowanie */
  background-color: transparent !important; /* Usuwa białe tło spod spodu */
  margin-bottom: 2px;
  text-decoration: none;
}

/* Wnętrze wydarzenia */
.fc-event-main {
  width: 100%;
  padding: 0 !important; /* Reset paddingu, my go damy niżej */
  margin: 0 !important;
  color: inherit;
}

/* Nasz kolorowy kontener */
.fc-evt-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* WAŻNE: Wyrównanie do góry przy wielu liniach */
  width: 100%;
  min-height: 100%;
  
  /* Stylizacja tekstu */
  color: white !important;
  padding: 2px 4px;
  border-radius: 4px;
  
  /* Obsługa wielu linii tekstu */
  white-space: normal !important; /* Pozwól na zawijanie */
  overflow: visible !important;   /* Pokaż cały tekst */
  line-height: 1.3;               /* Odstęp między liniami */
}

/* Lewa strona (Badge + Czas + Tytuł) */
.fc-evt-left {
  display: flex; /* Zostawiamy flex, ale zmieniamy zachowanie */
  flex-wrap: wrap; /* Jeśli trzeba, elementy mogą spaść niżej */
  align-items: center;
  width: 100%; 
}

/* Oznaczenie grupy (G-, W-, M-) */
.fc-evt-badge {
  font-weight: 800;
  margin-right: 3px;
  font-size: 10px;
  opacity: 0.9;
  white-space: nowrap; /* Badge zawsze w całości */
}

/* Godzina */
.fc-evt-time {
  font-size: 10px;
  margin-right: 4px;
  opacity: 0.9;
  font-weight: 400;
  white-space: nowrap; /* Godzina zawsze w całości */
}

/* Tytuł wydarzenia */
.fc-evt-title {
  font-weight: 600;
  /* Usuwamy text-overflow: ellipsis i nowrap */
  white-space: normal; 
  word-wrap: break-word; /* Łamanie długich słów */
}

/* Gwiazdka powtarzania */
.fc-evt-icon {
  font-size: 12px;
  margin-left: 2px;
  margin-top: 2px; /* Drobna korekta przy wielu liniach */
}

/* Ukrycie domyślnej kropki FullCalendar (ważne dla czystości) */
.fc-daygrid-event-dot {
  display: none !important;
}

/* Efekt najechania */
a.fc-event:hover {
  transform: scale(1.02);
  z-index: 100 !important;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 15px;
}

/* =========================================
   2. STYLIZACJA INTERFEJSU (BEZ ZMIAN)
   ========================================= */

/* Listy i kategorie */
#category-filter .list-group-item {
  display: flex;
  align-items: center;
}

#category-filter .list-group-item .badge {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

div#text-filtr-category {
  margin-top: 40px;
  margin-bottom: 10px;
}

.list-group {
  width: 100%;
  border-radius: 0;
}

/* Logo i Header */
img.logoHader {
  margin-top: -12px;
  height: 50px;
}

span.logo-txt {
  color: #2e6de7 !important;
  font-family: Ubuntu;
  font-weight: 500;
}

/* Przyciski */
button#btn-new-event,
button.fc-prev-button.fc-button.fc-button-primary,
button.fc-next-button.fc-button.fc-button-primary,
button.fc-today-button.fc-button.fc-button-primary,
button.fc-dayGridMonth-button.fc-button.fc-button-primary.fc-button-active,
button.fc-timeGridWeek-button.fc-button.fc-button-primary,
button.fc-timeGridDay-button.fc-button.fc-button-primary,
button.fc-listMonth-button.fc-button.fc-button-primary {
  background: #525ce5 !important;
}

button#btn-new-event {
    margin-top: 17px;
}

.fc-button-group .fc-button-primary {
  background-color: #525ce5 !important;
}

/* Dropdowny */
div#event_select_chosen {
  width: 100% !important;
}

.dropdown-menu {
  display: none;
}

.dropdown-menu.show {
  display: block;
  position: absolute;
  z-index: 1050;
}

/* Select2 (Stylizacja wyszukiwarki/selecta) */
.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  border: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  display: flex;
  align-items: center;
}

.select2-container--default .select2-results__option {
  display: flex;
  align-items: center;
}

span#select2-event-select-container {
  width: 240px;
}

span.select2-selection.select2-selection--single {
  background: none !important;
}

.searchSelect2 {
  margin-top: -11px;
  width: 25%;
}

li.select2-results__option.select2-results__message {
  color: #525ce5;
  font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #494949;
  margin-left: 25px;
}

span.select2-selection__placeholder:hover {
  color: #525ce5 !important;
  transition: 0.5s;
}

svg#iconSelect2 {
  position: absolute;
  margin-top: 5px;
  margin-left: 1px;
}

/* Okno podglądu (Modal/Top Zone) */
div#topDateZone {
  min-height: 165px;
  width: 100%;
  padding: 20px;
  padding-bottom: 30px;
}

div#startDate {
  border: 1px solid #ffffff49;
  position: relative;
  float: left;
  padding: 10px 29px;
  text-align: center;
}

p#view-event-startDate {
  color: #ffffff;
  font-size: 37px;
  font-weight: 500;
  margin-bottom: 0;
  margin-top: 0;
}

p#view-event-startMonth {
  margin-top: 0;
  margin-bottom: 0;
  color: white;
}

p#view-event-startDay {
  color: white;
  margin-bottom: 0;
}

p#view-event-title {
  color: white;
}

div#view-event-title-Div {
  margin-left: 150px;
  position: relative;
  border-bottom: 1px solid #ffffff40;
}

div#view-event-endDateDiv {
  position: relative;
  float: left;
  margin-left: 20px;
  margin-top: 12px;
}

p#view-event-endDate,
p#view-event-time {
  color: white;
  font-size: 1em;
  margin-bottom: 5px;
}

img.iconView {
  width: 20px;
  margin-right: 7px;
}

div#view-event-TimeDiv {
  position: relative;
  float: left;
  margin-left: 20px;
  margin-top: 12px;
}

p#view-event-place {
  position: relative;
  float: left;
}

p#view-event-address,
p#view-event-city {
  position: relative;
  float: left;
  margin-left: 7px;
}

p#view-event-contact {
  position: relative;
  float: right;
}

#map {
  height: 400px;
  width: 100%;
}

/* Wydarzenia zewnętrzne (Drag & Drop) */
.external-event.fc-event {
  height: 20px;
  width: 48%;
  position: relative;
  float: left;
  margin-right: 5px !important;
  border-radius: 5px !important;
  padding: 0px 0 0 15px !important;
  font-size: 11px;
}

.external-event.fc-event:hover {
  cursor: move;
}

div#rowDrop {
  margin-bottom: 20px;
  position: relative;
  float: left;
}

/* Switche (Przełączniki) */
.form-check-input.event-group-switch {
  width: 3rem;
  height: 1.5rem;
  margin-right: 15px;
  margin-bottom: 5px;
}

.form-check-input.event-group-switch::before {
  width: 1rem;
  height: 1.5rem;
  margin-top: 0;
}

.form-check-input.event-group-switch:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-check.form-switch {
  position: relative;
  float: left;
  margin-right: 20px;
}

/* Filtry i układ */
div#category-filter {
  margin-top: 110px !important;
  position: relative;
  clear: both;
}

.list-group-item.d-flex.justify-content-between.align-items-center {
  height: 33px;
}

/* Poprawki do siatki kalendarza */
.fc-daygrid-body.fc-daygrid-body-unbalanced.fc-daygrid-body-natural {
  max-height: 400px;
}

.fc-timegrid-event-harness-inset .fc-timegrid-event, 
.fc-timegrid-event.fc-event-mirror, 
.fc-timegrid-more-link {
  box-shadow: unset !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background-color: #fc931d !important;
}

/* Inne elementy */
i.mdi.mdi-logout {
  font-size: 20px;
}

img#current-lang-img {
  margin-top: -5px;
}

/* =========================================
   3. POGODA (Weather)
   ========================================= */
div#weatherDiv {
  display: flex;
  justify-content: left;
  margin-top: -10px;
  margin-left: 1%;
  margin-bottom: 5px;
  width: auto;
}

.weatherDay {
  font-size: smaller;
}

img.iconWeather {
  width: 30px;
  margin-left: 5px;
  margin-right: 5px;
}

span.weatherSpan {
  font-size: 12px;
}

.separatorWeather {
  margin-left: 15px;
  margin-right: 15px;
}

span.weatherTemp {
  font-size: 14px;
}

/* =========================================
   4. SZABAT (Sabbath Date)
   ========================================= */
div#sabbathDiv {
  display: flex;
  justify-content: center;
}

.sabat-data {
  font-size: 16px;
  margin-top: -2px;
  color: #03A9F4;
}

.sabat-tekst {
  margin-right: 10px;
  font-size: 14px;
}

.noti-icon i {
  font-size: 27px;
  color: unset;
}

i#sabbathClick {
  font-size: 22px;
}

/* =========================================
   5. RWD (Tablet / Mobile)
   ========================================= */

/* Tablet */
@media (max-width: 1090px) {
  .searchSelect2 {
    width: 75%;
    margin-bottom: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  div#weatherDiv {
    display: none;
  }
  
  button.btn.btn-sm.px-3.font-size-16.d-lg-none.header-item {
    display: none;
  }
  
  div#rowDrop {
    display: none;
  }
  
  .searchSelect2 {
    width: 90%;
    margin-left: 5%;
    margin-right: 5px;
    margin-bottom: 10px;
  }
  
  .dropdown-menu.dropdown-menu-lg.dropdown-menu-end.p-0.show {
    width: 99%;
  }
  
  div#categoryDiv {
    display: none;
  }
  
  #map {
    width: 110%;
    margin-left: -17px;
  }
}
/* =========================================
   POPRAWKA: USUNIĘCIE BIAŁEJ OBWÓDKI (Fix dla wydarzeń z godziną)
   ========================================= */

/* To jest kluczowe - wydarzenia z godziną mają domyślnie border, który trzeba usunąć */
.fc-daygrid-dot-event {
    border: none !important;
    background-color: transparent !important; /* Usuwa białe tło spod spodu */
    padding: 0 !important; /* Usuwa wewnętrzne odstępy kontenera */
}

/* Upewniamy się, że po najechaniu też nie ma obwódki */
.fc-daygrid-dot-event:hover {
    background-color: transparent !important;
}

/* Resetujemy marginesy wewnątrz, żeby nasz kolorowy box wypełniał całość */
.fc-daygrid-event-harness {
    margin-bottom: 2px; /* Odstęp między kafelkami */
}

/* Jeśli nadal widzisz cieniutką linię, to może być outline focusa po kliknięciu */
a.fc-event:focus, a.fc-event:active {
    outline: none !important;
    box-shadow: none !important; /* Lub Twój cień, jeśli chcesz go zachować */
} 