/* Obalový blok kalendáře */


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}


.nova-rezervace {
   max-width: 800px;
    margin: 0 auto;
    background-color: #c8f9f5;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Navigace mezi měsíci */
.calendar-nav {
   display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.calendar-nav button {
 background: none;
    border: none;
    color: #0d0d0d;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
   background-color: #1864f3;
}
.calendar-header {
  display: flex;
  justify-content: center;  /* vodorovné zarovnání na střed */
  align-items: center;      /* svislé zarovnání na střed */
}

.calendar-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #3a87ad;
  margin: 0;
  white-space: nowrap;
}
/* Hlavička dnů */

.calendar-header:first-of-type {
  display: flex;
  justify-content: center;   /* vycentruje vodorovně */
  align-items: center;       /* vycentruje svisle */
  height: 60px;              /* výška hlavičky (můžeš upravit) */
  margin-bottom: 10px;       /* mezera pod nadpisem */
}

/* Styl samotného textu */
.calendar-header:first-of-type h1 {
  font-size: 22px;
  font-weight: 700;
  color: #3a87ad;
  margin: 0;
  white-space: nowrap;       /* zabrání zalomení textu */
}

.calendar-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-title {
    position: absolute;
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.calendar-banner {
  box-shadow: 0 1px 1px rgba(0,0,0,0.15), 
              0 2px 2px rgba(0,0,0,0.15), 
              0 4px 4px rgba(0,0,0,0.15), 
              0 8px 8px rgba(0,0,0,0.15);
}

.calendar-header  {
  display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    padding: 12px 0;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    
}

.calendar-header .vikend {
   color: blue;
}

/* Grid kalendáře */
.calendar-grid {
  display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 24px;
   
   
}

  .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.5s;
    border: 2px solid transparent;
    background-color: #8cc4c7;
    color: #0d0d0d;

}
.calendar-day{
  box-shadow: 0 1px 1px rgba(0,0,0,0.15), 
              0 2px 2px rgba(0,0,0,0.15), 
              0 4px 4px rgba(0,0,0,0.15), 
              0 8px 8px rgba(0,0,0,0.15);
}

.calendar-day:hover:not(.past):not(.empty) {
    border-color: #094563;
    transform: scale(1.05);background-color: #0878db;
}


/* Hover efekt – jen lehké zvýraznění */
.calendar-day:hover:not(.minuly-den):not(.nerezervovatelny-den) {
  background-color: aqua; /* světle modré podbarvení */
  transform: scale(1.02);
}

/* 🔹 Rezervovatelné dny */
.rezervovatelny-den {
  background-color: rgb(26, 195, 195);       /* velmi světle zelené pozadí */
  border: 1px solid #062385;      /* zelený rámeček */
  color: #070808;
  font-weight: 600;
}

/* 🔹 Nerezervovatelné dny */
.nerezervovatelny-den {
  background-color: rgb(33, 226, 15);      /* světle šedá */
  border: 1px solid #4ac013;
}

.minuly-den {
  background-color: gray;      /* světle šedá */
  border: 1px solid gray;
  color: #999;
  pointer-events: none;       /* zakáže klikání */
  cursor: default;            /* kurzor ukáže, že se na to nejde kliknout */
  opacity: 0.6;               /* volitelné, aby bylo vizuálně odlišeno */
}
/* 🔹 Obsazené sloty */
.obsazeny-slot {
  background-color: #f8d7da;
  border: 1px solid #e53e3e;
  color: #721c24;
  cursor: not-allowed;
}

/* 🔹 Jednoduchý a hromadný slot */
.slot-jednoduchy {
  background-color: #007bff;
  border: 1px solid #0069d9;
  color: #fff;
}



.calendar-day {
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333;
  transition: transform 0.2s, background-color 0.2s;
}

.calendar-day:hover:not(.minuly-den):not(.nerezervovatelny-den) {
  transform: scale(1.05);
  background-color: #858685;
}


.slot-jednoduchy { background: #0c70f2; color: #fff; }
.slot-hromadny   { background: #2196f3; color: #fff; }
.obsazeny-slot   { background: #f44336; color: #fff; cursor: not-allowed; }

/* Rezervovatelné dny */
.rezervovatelny-den {
  background-color: lightskyblue;
  color: rgb(16, 16, 16);
}

/* Nerezervovatelné dny */
.nerezervovatelny-den {
  background-color: rgb(212, 215, 213);
  color: #090909;
  cursor: not-allowed;
}

/* Sloty dostupných časů */
#dostupne-casy {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
}

#dostupne-casy button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
  font-weight: bold;
}

#dostupne-casy button:hover:not(:disabled) {
  transform: scale(1.05);
}

.slot-jednoduchy {
  background-color: #4299e1;
  color: #fff;
}
.slot-hromadny {
  background-color: #48bb78;
  color: #fff;
}
.obsazeny-slot {
  background-color: #f56565;
  color: #fff;
  cursor: not-allowed;
}
/* Volné časy */
button.slot-jednoduchy {
  background-color: #007bff; /* modrá */
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}



/* Hover efekt */
button.slot-jednoduchy:hover {
  background-color: #0056b3;
}

button.slot-hromadny:hover {
  background-color: #1e7e34;
}

/* Obsazené časy */
button.obsazeny-slot {
  background-color: #d1cfcf; /* šedá */
  color: #0e0e0e;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: not-allowed;
  text-decoration: line-through; /* přeškrtnutý text, volitelné */
}
/* =========================================
   /*🔹 MODERNÍ STYL PLOVOUCÍHO FORMULÁŘE
========================================= */
#rezervacni-formular {
  position: fixed;
  bottom: 20px;
  right: 80px;
  width: 400px;
  background: #ffffff;
  border: 1px solid #f0f1f2;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
  overflow: hidden;
  transition: all 0.3s ease;
  
}
#rezervacni-formular {
  box-shadow: 0 1px 1px rgba(0,0,0,0.11), 
              0 2px 2px rgba(0,0,0,0.11), 
              0 4px 4px rgba(0,0,0,0.11), 
              0 8px 8px rgba(0,0,0,0.11), 
              0 16px 16px rgba(0,0,0,0.11), 
              0 32px 32px rgba(0,0,0,0.11);
}
#rezervacni-formular h3 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  text-align: center;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 10px;
}

/* Obsah formuláře */
#nova-rezervace-formular {
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Popisky */
#nova-rezervace-formular label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #4a5568;
}

/* Políčka */
#nova-rezervace-formular input,
#nova-rezervace-formular textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #1981f0;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
  background-color: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#nova-rezervace-formular input:focus,
#nova-rezervace-formular textarea:focus {
  border-color: #48bb78;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
  outline: none;
}

/* Tlačítka */
#nova-rezervace-formular button {
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

/* Potvrzení */
#nova-rezervace-formular button[type="submit"] {
  background-color: #48bb78;
  color: #fff;
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}
#nova-rezervace-formular button[type="submit"]:hover {
  background-color: #38a169;
  transform: translateY(-2px);
}

/* Zavření */
#nova-rezervace-formular #close-form-btn-bottom {
  background-color: #edf2f7;
  color: #2d3748;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#nova-rezervace-formular #close-form-btn-bottom:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

/* =========================================
   🔹 PLOVOUCÍ TLAČÍTKO
========================================= */
#rezervace-btn {
  position: fixed;
  bottom: 85px; /* nad zavřít */
  right: 20px;
  z-index: 9998;
  padding: 14px 22px;
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

#rezervace-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
  opacity: 0.95;
}

/* =========================================
   🔹 RESPONSIVNÍ ÚPRAVY
========================================= */
@media (max-width: 768px) {
  #rezervacni-formular {
    right: 5%;
    bottom: 20px;
    width: 90%;
    padding: 20px;
  }

  #rezervace-btn {
    bottom: 80px;
    right: 15px;
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  #rezervacni-formular {
    position: absolute;
    top: 10px;
    left: 2.5%;
    right: 2.5%;
    width: 75%;
    max-height: 90vh;
    padding: 15px;
  }

  #nova-rezervace-formular {
    max-height: calc(90vh - 40px);
  }

  #nova-rezervace-formular input,
  #nova-rezervace-formular textarea,
  #nova-rezervace-formular button {
    font-size: 13px;
    padding: 8px 10px;
  }

  #rezervace-btn {
    bottom: 70px;
    right: 10px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* =========================================
   🔹 KALENDÁŘ A ČASY
========================================= */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

@media (max-width: 768px) {
  #calendar { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  #calendar { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .calendar-day { font-size: 13px; padding: 6px; }
}

/* Sloty časů */
#dostupne-casy {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
}

#dostupne-casy button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

#dostupne-casy button:hover:not(:disabled) {
  transform: scale(1.05);
}


#rezervacni-formular h3 {
  margin-top: 0;
  font-size: 20px;
  color: #333;
}

/* Obsah formuláře */
#nova-rezervace-formular {
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Políčka */
#nova-rezervace-formular label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
}

#nova-rezervace-formular input,
#nova-rezervace-formular textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Tlačítka */
#nova-rezervace-formular button {
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Potvrzení */
#nova-rezervace-formular button[type="submit"] {
  background-color: #0073aa;
  color: #fff;
}

#nova-rezervace-formular button[type="submit"]:hover {
  background-color: #005f8a;
}

/* Zavření */
#nova-rezervace-formular #close-form-btn-bottom {
  background-color: #3578dc;
  color: #fff;
}

#nova-rezervace-formular #close-form-btn-bottom:hover {
  background-color: #23d8d5;
}

/* =========================================
   🔹 PLOVOUCÍ TLAČÍTKO
========================================= */
#rezervace-btn {
  position: fixed;
  bottom: 85px; /* posunuto výš nad zavřít */
  right: 20px;
  z-index: 9998;
  padding: 14px 18px;
  background-color: #48bb78;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.2s;
}

#rezervace-btn:hover {
  transform: scale(1.05);
  background-color: #38a169;
}

/* =========================================
   🔹 REZPONZIVNÍ ÚPRAVY
========================================= */

/* Tablety */
@media (max-width: 768px) {
  #rezervacni-formular {
    right: 5%;
    bottom: 20px;
    width: 90%;
    padding: 20px;
  }

  #nova-rezervace-formular input,
  #nova-rezervace-formular textarea {
    font-size: 14px;
    padding: 8px;
  }

  #rezervace-btn {
    bottom: 80px;
    right: 15px;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Zavírací tlačítko dole */
  .close-form.bottom-close {
    position: fixed;
    bottom: 15px;
    left: 5%;
    width: 90%;
    z-index: 10000;
  }

  .close-form.bottom-close button {
    width: 100%;
    font-size: 16px;
  }
}

/* Mobily */
@media (max-width: 480px) {
  #rezervacni-formular {
    position: absolute;
    top: 10px;
    left: 2.5%;
    right: 2.5%;
    width: 95%;
    max-height: 90vh;
    padding: 15px;
  }

  #nova-rezervace-formular {
    max-height: calc(90vh - 40px);
  }

  #rezervace-btn {
    bottom: 70px; /* prostor pro zavřít */
    right: 10px;
    padding: 10px 14px;
    font-size: 13px;
  }

  #nova-rezervace-formular input,
  #nova-rezervace-formular textarea,
  #nova-rezervace-formular button {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* =========================================
   🔹 KALENDÁŘ A ČASY
========================================= */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

@media (max-width: 768px) {
  #calendar { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  #calendar { grid-template-columns: repeat(7, 1fr); gap: 3px; }
  .calendar-day { font-size: 13px; padding: 6px; }
}

/* Sloty časů */
#dostupne-casy {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
}

#dostupne-casy button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

#dostupne-casy button:hover:not(:disabled) {
  transform: scale(1.05);
}
/*hláška plovoucí okno*/
/*------------------------------------------------------------*/
.plovouci-hlaska {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: slideDown 0.5s ease;
}



/* 🔹 Oprava viditelnosti názvů záložek */
.nav-tab-wrapper .nav-tab {
    color: #23282d !important; /* tmavý text */
    background: #f1f1f1;        /* světle šedé pozadí */
}

.nav-tab-wrapper .nav-tab:hover {
    background: #e5e5e5;
    color: #000 !important;
}

.nav-tab-wrapper .nav-tab.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #000 !important;
    font-weight: 600;
}
.bs-notification {
  position: fixed;           /* plovoucí, relativně k oknu */
  bottom: 20px;              /* 20px od spodní hrany */
  left: 50%;                 /* horizontálně vycentrováno */
  transform: translateX(-50%) translateY(20px); /* startovací posun pro animaci */
  background: #664ae3;
  color: #fff;
  padding: 10px 18px;        /* menší, kompaktní toast */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  max-width: 300px;          /* ne protahovat přes celou šířku */
  text-align: center;
  word-wrap: break-word;
}

.bs-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);  /* animace do finální pozice */
}



.bs-notification.success { background: #1940ec; }
.bs-notification.error   { background: rgb(8, 222, 55); }
.bs-notification.info    { background: #17a2b8; }


/*mobilní styl*/
.calendar-banner h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(16px, 5vw, 24px); /* min 16px, max 24px, uprostřed se přizpůsobuje šířce */
    line-height: 1;
}
/* Nadpis banneru – dynamicky se zmenší, aby se vešel celý */
.calendar-banner h2,
.banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;        /* jeden řádek */
    font-size: clamp(16px, 5vw, 28px); /* min 16px, max 28px podle šířky */
    line-height: 1.2;
    text-align: center;
    padding: 0 10px;            /* trochu prostoru proti okrajům */
    color: #fff;
}

/* Pro velmi úzké mobilní obrazovky (volitelné) */
@media (max-width: 360px) {
    .calendar-banner h2,
    .banner-title {
        font-size: calc(16px + 2vw); /* ještě lépe škáluje na min. šířce */
    }
}
