body {
    font-family:  Tahoma;
    font-size:12px;
    color:rgb(42, 42, 42);
}

.login {
    display: flex;
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
    width:30%;
    height:auto;
    border: 1px solid #c1c1c1;
    border-radius: 10px;
    background-color: #f1f1f1;
    padding:10px;
    align-items: center;
    justify-content: center;
}

.login_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width:70%;
    align-items: center;
    justify-content: center;
}

.login_input {
    width:70%;
    font-size:1.2em;
    text-align: center;
    border-color: rgb(0 193 129);
    border-radius: 5px;
    padding:5px;
}

.login_button {
    background-color: rgb(0 193 129);
    color:#fff;
    font-weight: 700;
}

/* KALENDARZ */
body {
    background: #ececec;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* centrowanie kartki */
.view-select-wrapper {
    display: flex;
    justify-content: center;
}


.view-select {
    top:0;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap:25%;
    background: #2f6f3a;
    color:#fff;
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 12px;
}

.monthly, .daily, .today {
    display: block;
    width: 5em;
    height: 5em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media(max-width:600px) {
  .monthly, .daily, .today {
    width:3em;
    height:3em;
  }
}

.monthly.on {
    background-image: url('/images/monthly_on.png');
}

.monthly.off {
    background-image: url('/images/monthly_off.png');
}

.monthly.off:hover {
    background-image: url('/images/monthly_on.png');
}

.daily.on {
    background-image: url('/images/daily_on.png');
}

.daily.off {
    background-image: url('/images/daily_off.png');
}

.daily.off:hover {
    background-image: url('/images/daily_on.png');
}

.today {
    background-image: url('/images/today_off.png');
}

.today:hover {
    background-image: url('/images/today_on.png');
}


.month-body {
    display: flex;
    flex-wrap: wrap;
    padding:5px;
    gap:5px;
}

.month-body .month-day {
    width: calc((100% - 6 * 5px) / 7);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.month-day {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 6 * 5px) / 7);
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    color:#c0c0c0;

    border-radius: 10px;
}

.reservations {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: flex-end; 
    justify-content: flex-start; 
    gap: 4px;
    width: auto;
    max-width: calc(100% - 4px);
    padding:5px;
}

.pill {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #004d4d;
}

@media (max-width: 600px) {

    .month-day .reservations {
        display: block; 
    }

    .month-day .reservations .pill {
        position: absolute;
        bottom: 3px;
        left: 3px;
        font-size: 9px;
        width: 15px;
        height: 15px;
    }
}

.pill.pill-past   { background-color: #e7e7e7; }
.pill.pill-today  { background-color: #007a7a; }
.pill.pill-future { background-color: #c4c4c4; }
.pill.pill-sunday { background-color: #f5a5a5; }
.pill.pill-sunday-past { background-color: #ffeaea; }

.month-day-can-select:hover {
  box-shadow: inset 0 0 0 1px #4a9142;
      background: linear-gradient(
        to bottom,
        #4a9142 0%,
        #4a9142 20%,
        #ffffff 20%,
        #ffffff 100%
    );
    color: #4a9142; /* przygaszone */
}

.month-day-can-select:hover .pill {
  background-color: #4a9142;
}

.month-day-past {
    box-shadow: inset 0 0 0 1px #e7e7e7;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #e7e7e7 0%,
        #e7e7e7 15%,
        #ffffff 15%,
        #ffffff 100%
    );
    color: #e7e7e7; /* przygaszone */
}

.month-day-today {
    box-shadow: inset 0 0 0 1px #007a7a, 0 0 5px rgba(0,122,122,0.3);
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #00cfcf 0%,
        #00cfcf 15%,
        #ffffff 15%,
        #ffffff 100%
    );
    color: #004d4d;
    font-weight: bold;
}

.month-day-future {
    box-shadow: inset 0 0 0 1px #d0d0d0;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #d0d0d0 0%,
        #d0d0d0 15%,
        #ffffff 15%,
        #ffffff 100%
    );
    color: #333; /* bardziej wyraźne niż past, ale neutralne */
}

.month-day-sunday {
    box-shadow: inset 0 0 0 1px #f5a5a5;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #ffe5e5 0%,
        #ffe5e5 15%,
        #ffffff 15%,
        #ffffff 100%
    );
    color: #c00;
    font-weight: bold;
}

.month-day-sunday-past {
    box-shadow: inset 0 0 0 1px #ffeaea;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #ffeaea 0%,
        #ffeaea 15%,
        #ffffff 15%,
        #ffffff 100%
    );
    color: rgb(237, 131, 131);
    font-weight: bold;
}

.month-day::before {
  content: attr(data-number);
  position: absolute;
  font-size: 1.6em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.month-day-empty {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 6 * 5px) / 7);
    aspect-ratio: 1 / 1;
}

.calendar-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}


/* kartka - NIE full width */

.day-card {
    width: 100%;              /* KLUCZOWE */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #ddd;
}


@media (min-width: 601px) {
    .day-card {
        width: 50%;
    }

    .view-select {
        width: 50%;
    }
}

/* nagłówek */
.day-header {
    background: #2f6f3a;
    color: white;
    text-align: center;
    padding: 12px;
    display: flex;
    flex-direction: row;
}

.day-minus, .day-plus {
    width:10%;
    font-size:2em;
    font-weight: 700;
    text-align: center;
    color:#fff;
    text-decoration: none;
}

.day-minus:hover, .day-plus:hover {
    cursor: pointer;
    color:#d3d3d3;
}

.day-current {
    width:80%;
}

.day-date {
    font-size: 18px;
    font-weight: bold;
}

.day-name {
    font-size: 13px;
    opacity: 0.9;
}

/* ciało */
.day-body {
    display: block;
}



/* slot */
.slot {
    display: flex;              /* ZMIANA z grid → flex */
    border-bottom: 1px solid #eee;
    min-height: 42px;
    color:#465d4a;
}

/* naprzemienne tło */
.slot.alt {
    background: #f6f6f6;
}

/* godziny – SZTYWNA kolumna */
.time {
    width: 65px;               /* KLUCZOWE */
    min-width: 65px;
    border-right: 1px solid #e0e0e0;
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

/* pole */
.content {
    flex: 1;
    padding: 12px 10px;
    justify-content: center;
    cursor: pointer;
}

.content a {
    text-decoration: none;
    font-weight: 700;
    color:rgb(42, 42, 42);
}

.content a:hover {
    color:rgb(185, 28, 28);
}

/* hover */
.content:hover {
    background: #e6f2e8;
}

.content.booked {
    background: #ebbbbb;
}

.content.booked:hover {
    cursor:default;
    background-color: #ebbbbb;
}

.content.yourbooking {
    background: #d9e6f2;
    box-shadow: inset 0 0 10px 5px rgba(163, 192, 217, 0.5); 
}

.content.yourbooking a {
    text-decoration: none;
    font-weight: 700;
    color:rgb(42, 42, 42);
}

.content.yourbooking a:hover {
    color:rgb(185, 28, 28);
}

.content.yourbooking:hover {
    background: #d9e6f2;
}

.description {
    color: #555;
    font-size: 0.9em;
}

.instructor {
    color: #555;
    font-size: 1.2em;
    font-weight: 700;
}

.slot-available {
    display: inline-flex;
    align-items: center; /* centrowanie pionowe tekstu */
    height: 20px;      /* np. dopasowane do rodzica */
    line-height: 20px; /* centrowanie tekstu */
    margin:5px;
    padding: 4px 10px;
    background-color: #e6f5ea;  /* delikatna, jasna zieleń */
    color: #2a7a2a;             /* ciemniejsza zieleń na tekst */
    border: 1px solid #a3d4a3;  /* delikatne obramowanie */
    border-radius: 6px;          /* lekko zaokrąglone rogi */
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.slot-available:hover {
    background-color: #d0efd0;   /* trochę ciemniejsza zieleń przy hover */
    transform: translateY(-1px); /* subtelny efekt „podniesienia” */
}

.slot-available2 {
    display: inline-flex;
    align-items: center; /* centrowanie pionowe tekstu */
    height: 20px;      /* np. dopasowane do rodzica */
    line-height: 20px; /* centrowanie tekstu */
    margin:5px;
    padding: 4px 10px;
    background-color: #e6f0ff;  /* delikatny, jasny niebieski */
    color: #2a5aa0;             /* ciemniejszy niebieski na tekst */
    border: 1px solid #a3c2f0;  /* delikatne obramowanie */
    border-radius: 6px;          /* lekko zaokrąglone rogi */
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.slot-available2:hover {
    background-color: #d0e2ff;   /* trochę ciemniejszy niebieski przy hover */
    transform: translateY(-1px); /* subtelny efekt „podniesienia” */
}

.modal {
  display: none;               /* ukryty na start */
  position: fixed;             /* przyklejony do okna */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5); 
  backdrop-filter: blur(5px);  
  z-index: 10; 
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal2 {
  display: none;               /* ukryty na start */
  position: fixed;             /* przyklejony do okna */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);   
  z-index: 12;               /* ponad modalem 1 */
  align-items: center; 
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* Modal treść */
.modal .modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 50%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
  align-items: center;
}

.modal2 .modal2-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 50%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
  align-items: center;
}

/* Responsywność */
@media (max-width: 600px) {
  .modal {
    align-items: flex-start;  /* zamiast center */
    padding-top: 1rem;        /* opcjonalnie odrobina odstępu od góry */
  }

  .modal2 {
    align-items: flex-start;  /* zamiast center */
    padding-top: 1rem;        /* opcjonalnie odrobina odstępu od góry */
  }

  .modal .modal-content {
    width: 90%;
    padding: 15px;
  }

    .modal2 .modal2-content {
    width: 90%;
    padding: 15px;
  }

  .view-select {
    width:90%;
    padding:15px;
  }
}

/* Kiedy modal jest aktywny */
.modal.active {
  display: flex;              /* pokazuje modal i włącza centrowanie */
}

.modal2.active {
    display:flex;
}

.modal form,
.modal2 form {
    width:100%;
}

.modal input,
.modal2 input {
    width: 90%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fafafa; /* jasny szary input */
    color: #333;
    font-size: 16px;
    transition: border 0.2s, box-shadow 0.2s;
}

.modal input:focus,
.modal2 input:focus {
    border-color: #999;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
    outline: none;
}

.modal button,
.modal2 button {
    width: 50%;
    padding: 12px 0;
    background-color: #e0e0e0; /* jasnoszary przycisk */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.modal button:hover,
.modal2 button:hover {
    background-color: #d0d0d0; /* ciut ciemniejszy na hover */
    transform: translateY(-1px);
    cursor: pointer;
}

.modal button:active,
.modal2 button:active {
    background-color: #c0c0c0;
    transform: translateY(0);
}

.reservation-title, .cancellation-title {
font-size:1.4em;
letter-spacing: 0.5px;
font-weight: 700;
margin-bottom: 20px;
}

.reservation-error {
font-size:1.1em;
color: #a82424;
font-weight: 700;
margin-bottom: 20px;
}

.reservation-confirm {
font-size:1.4em;
color: #36a824;
font-weight: 700;
}

.cancellation-date {
font-size:1.2em;
font-weight: 700;
}

.radio {
  display: inline-block;
  margin: 4px;
}

.radio input {
  display: none;
}

.radio span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9em;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: var(--bg, #f5f5f5);
  color: var(--color, #333);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.radio span:hover {
  background: #e8e8e8;
  border-color: #999;
}

/* zablokowany input – zmienia wygląd spana obok */
.radio input:disabled + span {
    background: #e0e0e0;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.8;
}

@media (hover: none) and (pointer: coarse) {
  .radio input:disabled + span::after {
    content: "Nieaktywne z powodu innych rezerwacji";
    display: block;
    font-size: 0.75em;
    color: #916262;
    margin-top: 2px;
  }
}

/* WYBRANY */
.radio input:checked + span {
  background: #2e7d32;       /* zielony – możesz zmienić */
  color: #fff;
  border-color: #2e7d32;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* focus (dostępność) */
.radio input:focus + span {
  outline: 2px solid #66bb6a;
  outline-offset: 2px;
}

.autocomplete {
  position: relative;
  text-align: left;
  width: 90%;
}

.autocomplete input {
  width: 100%;
}

.dropdown {
  position: static;
  top: calc(100% - 10px);
  text-align: left;
  left: 0;
  width: auto;
  padding-left: 5px;
  padding-right: 5px;
  background: white;
}

.dropdown_client_plus {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 12px;
  margin: 2px 0;

  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;

  transition: all 0.15s ease;
}

.dropdown_client_plus:hover {
  cursor: pointer;
  background: #f5f7f9;
  border-color: #d0d7de;
}

.add {
  font-weight: bold;
  color: #36a824;
}

.dropdown_add_new_client {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* tekst wyśrodkowany */
  width:50%;
  margin-left:5px;
  
  padding: 10px 12px;

  background: #f9f9f9;       /* delikatnie szare tło, odróżniające od białego */
  border: 1px dashed #ccc;   /* lekko przerywana ramka */
  border-radius: 6px;

  color: #555;                /* lekko ciemniejszy tekst */
  font-weight: 500;           /* subtelne wyróżnienie */
  cursor: pointer;            /* wskazuje kliknięcie */

  transition: all 0.15s ease;
}

.dropdown_add_new_client:hover {
  background: #f0f0f0;       /* efekt hover dla lepszej interakcji */
  border-color: #999;         
}

.dropdown_no_results {
  display: flex;
  align-items: center;
  justify-content: left;   /* tekst wyśrodkowany */
  
  padding: 10px 12px;
  margin: 2px 0;

  background: #fff;           /* neutralne tło jak dropdown */
  border: 1px solid #f0f0f0; /* subtelna ramka, ledwie widoczna */
  border-radius: 6px;

  color: #aaa;                /* stonowany, informacyjny tekst */
  font-style: italic;         /* opcjonalnie lekko odróżniające się */
  
  cursor: default;            /* nieklikalne */
}

.selected_clients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start; /* ustawia elementy od lewej */
  align-items: flex-start;     /* wyrównuje elementy do góry */
}

.client-tag {
  display: inline-flex;   /* 🔥 zamiast block */
  align-items: center;
  gap: 6px;
  margin: 3px;

  width: auto;            /* upewnij się */
  max-width: 100%;

  background: #f1f8f0;
  border: 1px solid #b7e3b0;
  color: #2e7d32;

  padding: 5px 10px;
  border-radius: 20px;

  font-size: 13px;
}

.client-tag:hover {
  background: #e6f7e4;
}

.client-tag .remove {
  font-weight: bold;
  font-size:1.2em;
  cursor: pointer;
  color: #2e7d32;
  opacity: 0.6;
  transition: all 0.15s;
}

.client-tag .remove:hover {
  opacity: 1;
  color: #c62828;
}

.client-tag:active {
  transform: scale(0.97);
}

.selected_clients_header {
  display: flex;
  align-items: center;
  margin: 10px 0 6px 0;
  font-weight: 600;
  color: #2e7d32;
  font-size: 14px;
  gap: 8px;
}

.selected_clients_header span {
  white-space: nowrap;
}

.action-tags {
  display: flex;
  margin-top:5px;
  gap: 6px;
  flex-wrap: wrap; /* na mobile mogą się zawijać */
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 4px 8px;
  font-size: 0.9em;

  border-radius: 999px; /* pill */
  border: 1px solid #ddd;

  background: #f5f5f5;
  color: #333;

  cursor: pointer;
  transition: all 0.15s ease;
}

/* hover */
.tag:hover {
  background: #e8e8e8;
}

/* warianty kolorystyczne (subtelne) */
.tag.cancel {
  background: #fff0f0;
  border-color: #f0c0c0;
}

.tag.add {
  background: #f0fff5;
  border-color: #bfe5c8;
  font-weight: 300;
}

.tag.edit {
  background: #f0f7ff;
  border-color: #c5d9f5;
}

.manage-title {
    text-align: left;
    width:100%;
    font-size: 1.2em;
    font-weight: 700;
    margin-top:20px;
    margin-bottom:20px;
    color:#004d4d;
}

.manage-title .description {
    display: inline-block;
    font-size: 0.8em;
    font-weight:lighter;
}