@import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed:400,500,700&display=swap");

body,
html {
  font-family: "Montserrat", sans-serif;
  background-color: rgb(255, 255, 255);
  user-select: none; /* supported by Chrome and Opera */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  padding: 0px;
  margin: 0px;
  color: rgb(41, 41, 41);
  /* max-width: 100%; */
  overflow-x: hidden;
  background: #fff;
}

.accessibility-toolbar {
  background-color: #f0f0f0;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.access-btn {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  margin: 0;
  padding: 6px 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.access-btn:hover {
  background-color: #e6e6e6;
  border-color: #adadad;
}

.access-btn .mdi {
  vertical-align: middle;
  margin-right: 4px;
}

/* High Contrast Theme */
html.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

html.high-contrast body,
html.high-contrast .page,
html.high-contrast .icon,
html.high-contrast .icon2,
html.high-contrast .cookie,
html.high-contrast .modal,
html.high-contrast .login,
html.high-contrast .title,
html.high-contrast .days
{
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

html.high-contrast a {
  color: #FFFF00 !important; /* Yellow for links */
}

html.high-contrast .button,
html.high-contrast button,
html.high-contrast .access-btn,
html.high-contrast .telephonebutton,
html.high-contrast .modalbutton {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #FFFF00 !important;
}

html.high-contrast input {
    background: #333 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}
html.high-contrast h1, html.high-contrast h2, html.high-contrast b {
    color: #fff !important;
}

html.high-contrast .red {
  color: #FF9999 !important;
}

html.high-contrast .desc, html.high-contrast .small {
  color: #ddd !important;
}

html.high-contrast .header, html.high-contrast [class*="select"] {
  color: #fff !important;
}

html.high-contrast img {
    filter: grayscale(80%) invert(1) contrast(120%) brightness(260%);
}

/* CALENDAR */

a {
  color: inherit;
}

* {
  box-sizing: border-box;
}

.container {
  width: 100%;
  display: grid;
  grid-template-rows: 3em 3em auto;
  position: absolute;
}

.title {
  background: #cbcbcb;
  text-align: left;
  display: block;
  place-content: center;
  color: #fff;
  position: fixed;
  top: 0;
  z-index: 900;
  width: 100%;
  height: 50px;
  padding: 5px;
  color: black;
  line-height: 2em;
}

.title a {
  text-decoration: none;
}

.days {
  background: #f3f2f1;
  display: grid;
  place-content: center;
  text-align: center;
  grid-template-columns: 3em 1px repeat(5, 1fr);
  position: fixed;
  top: 3em;
  z-index: 10;
  border-bottom: 2px solid #dadce0;
  height: 50px;
  top: 50px;
  width: 100%;
  z-index: 900;
}

.day {
  border-left: 1px solid #dadce0;
}

.content {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 3em 10px repeat(5, 1fr);
  grid-template-rows: repeat(31, 24px);
}

.time {
  grid-column: 1;
  text-align: right;
  align-self: end;
  font-size: 80%;
  position: relative;
  bottom: -1ex;
  color: #70757a;
  padding-right: 2px;
}

.col {
  border-right: 1px solid #7a97d1;
  grid-row: 1 / span 31;
  grid-column: span 1;
}

.filler-col {
  grid-row: 1/-1;
  grid-column: 2;
  border-right: 1px solid #dadce0;
}

.row {
  grid-column: 2/-1;
  height: 15px !important;
  padding: 1px;
  margin: 0px;
  border-bottom: 1px solid #dadce0;
}

.slot {
  border-radius: 5px;
  padding: 3px;
  margin-right: 10px;
  font-weight: normal;
  z-index: 50;
}

.event {
  font-family: "Roboto Condensed", sans-serif;
  border-radius: 5px;
  padding: 2px;
  margin-right: 10px;
  font-weight: bold;
  background-color: #0c1c79 !important;
  color: white;
  font-kerning: auto;
  font-size: 0.7em !important;
  line-height: 1.8em;
  text-decoration: none;
  overflow-x: hide;
  text-align: center;
  white-space: nowrap;
}

.eventnophone {
  border-radius: 5px;
  padding: 2px;
  margin-right: 10px;
  font-weight: bold;
  background-color: #ac0398 !important;
  color: white;
  font-size: 0.7em !important;
  text-align: center;
  text-decoration: none;
}

.eventnophone a,
.event a {
  text-decoration: none;
}

.adminadded {
  background-color: #d95700 !important;
}

.weekend {
  background-color: #f1f3f4;
}

.calendar1 {
  background-color: #ececec96;
  border-color: #0c1c79;
}

.calendar2 {
  background-color: #9bbbec9a;
  border-color: #81cdf2;
}

.slot1 {
  display: flexbox;
  width: 23%;
  margin-left: 1%;
  height: 90%;
  font-size: 0.8em;
  margin-top: -8px;
}

.slot2 {
  display: flexbox;
  margin-left: 25%;
  width: 24%;
  height: 90%;
  font-size: 0.8em;
  margin-top: -8px;

  /* background-color: #81cdf2; */
}

.slot3 {
  display: flexbox;
  margin-left: 50%;
  width: 24%;
  height: 90%;
  font-size: 0.8em;
  left: -6px;
  margin-top: -8px;

  /* background-color: #81b6f2; */
}

.slot4 {
  display: flexbox;
  margin-left: 75%;
  width: 23%;
  height: 90%;
  font-size: 0.8em;
  left: -6px;
  margin-top: -8px;

  /* background-color: #81b6f2; */
}

.current-time {
  grid-column: 7;
  grid-row: 14;
  background-color: #ff000058;
  height: 2px;
  position: relative;
  top: calc(50% - 1px);
  z-index: 60;
}

.circle {
  width: 12px;
  height: 12px;
  border: 1px solid #ea4335;
  border-radius: 50%;
  background: #ea4335;
  position: relative;
  top: -6px;
  left: -16px;
}

.current {
  font-weight: bold;
}

.que {
  display: none;
  margin-top: 10px;
  clear: both;
}

.ans {
  display: none;
  font-weight: bold;
  clear: both;
}

.show {
  display: block;
}

.icon {
  display: block;
  float: left;
  text-align: center;
  margin: 5px;
  font-size: 0.8em;
  /* text-decoration: none; */
  border: 1px solid #70757a;
  padding: 10px;
  border-radius: 10px;
  min-width: 100px;
}

.icon2 {
  display: block;
  float: left;
  text-align: center;
  margin: 5px;
  font-size: 0.8em;
  border: 1px solid #91989f;
  padding: 10px;
  border-radius: 10px;
  min-width: 100px;
  background-color: #e2e2e2;
}

.icon:hover {
  color: rgb(10, 86, 165);
  background-color: #e3f3ff8a;
}

.icon:focus,
.icon:active {
  color: rgb(10, 86, 165);
  background-color: #e3f3ff8a;
}

.icon2:hover {
  color: rgb(218, 58, 0);
  background-color: #ffe6958a;
}

.icon2:focus {
  color: rgb(218, 58, 0);
  background-color: #ffe6958a;
}

.dayofweek {
  font-size: 2em;
  font-weight: bold;
}

.slottime {
  font-size: 1.2em;
  font-weight: bold;
}

.normal {
  font-weight: normal !important;
  font-size: 0.8em;
}

.normal:hover {
  text-decoration: underline;
  color: rgb(0, 136, 255);
  transition: all 0.5s;
}

.tip {
  display: block;
  color: rgb(103, 103, 103);
  clear: both;
  font-size: 0.9em;
  padding-top: 10px;
}

.answer {
  float: left;
  width: 300px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: rgb(0, 53, 99);
}

.close {
  float: left;
  margin-top: 10px;
  margin-right: 12px;
  margin-bottom: 10px;
  color: rgb(184, 0, 0);
  padding: 2px;
  border: 1px solid rgb(85, 85, 85);
  border-radius: 5px;
  margin-top: 8px;
}
.close:hover {
  color: white;
  background-color: rgb(184, 0, 0);
}

.rt {
  float: right;
}

.telephone,
.pincode {
  margin-top: 10px;
  outline: 1px;
  width: 90%;
  max-width: 230px;
  height: 50px;
  border-radius: 5px;
  border: 1px solid lightgray;
  font-size: 33px;
  font-weight: bold;
  font-family: "Montserrat";
  padding-left: 15px;
  float: left;
}
.telephone:focus {
  border: 1px solid black;
}

.logininput {
  margin-top: 10px;
  outline: 1px;
  width: 235px;
  height: 50px;
  border-radius: 5px;
  border: 1px solid lightgray;
  font-size: 0.7em;
  font-weight: normal;
  font-family: "Montserrat";
  padding-left: 10px;
  float: left;
}

.logincode {
  margin-top: 10px;
  outline: 1px;
  width: 235px;
  height: 50px;
  border-radius: 5px;
  border: 1px solid lightgray;
  font-size: 1.2em;
  font-weight: bold;
  font-family: "Montserrat";
  padding-left: 10px;
  float: left;
}

input::placeholder {
  font-size: 0.4em;
  font-weight: normal;
}

.telephonebutton {
  background-color: #0e3dab;
  margin-top: 10px;
  outline: 1px;
  width: 50px;
  height: 50px;
  color: white;
  border-radius: 5px;
  border: 1px solid black;
  font-size: 28px;
  line-height: 1.6em;
  font-weight: bold;
  font-family: "Montserrat";
  padding-left: 9px;
  float: left;
  margin-left: 10px;
}

.codebutton {
  background-color: #c5c5c5;
  color: rgb(71, 71, 71);
  font-weight: normal;
  padding-left: 7px;
  text-align: center;
}

.success {
  font-size: 1.5em;
  color: #0e3dab;
  margin-top: 15px;
  margin-bottom: 15px;
}

.cookie {
  padding: 15px;
  width: 300px;
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.7em;
  border-radius: 10px;
  border: solid 1px #d7d7d7;
  background-color: rgba(255, 255, 255, 0.866);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

.button {
  display: block;
  float: right;
  border-radius: 5px;
  border: solid 1px #70757a;
  padding: 10px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 6px;
  margin-left: 6px;
}

.error {
  font-weight: bold;
  color: rgb(196, 0, 0);
}

.small {
  font-size: 0.9em;
  font-weight: normal;
}

.top {
  width: 46%;
  max-width: 320px;
  min-height: 160px;
  font-size: 0.7em;
}

@media only screen and (orientation: portrait) {
  .top {
    min-height: 220px;
  }
}

h1 {
  font-size: 1.5em;
  color: #003377;
  padding-top: 10px;
}
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: fixed;
  left: calc(50% - 21px);
  top: calc(50vh - 21px);
  border: 10px solid;
  border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.35)
    rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.page {
  padding: 20px;
  padding-top: 0px;
  clear: both;
}

.pages {
  margin-top: 50px;
  padding: 15px;
}

.login,
.modal {
  background-color: rgba(255, 255, 255, 0.855);
  display: none;
  position: fixed;
  text-align: center;
  left: calc(50% - 170px);
  top: 100px;
  padding: 20px;
  padding-top: 10px;
  border: 1px solid #c7c7c7;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  width: 340px;
  height: 240px;
  border-radius: 10px;
  z-index: 999;
}

#logininfo {
  display: block;
  position: fixed;
  text-align: center;
  left: calc(50% - 170px);
  top: 335px;
  padding: 20px;
  width: 340px;
  height: 50px;
  border-radius: 10px;
  font-size: 0.7em;
  z-index: 999;
}

.hide {
  display: none;
}

.menubutton {
  display: block;
  float: left;
  padding: 5px;
  border: 1px solid #777;
  margin: 5px;
  font-size: 0.9em;
  line-height: 1em;
  background-color: white;
  border-radius: 5px;
  margin-top: 2px;
}

.rt {
  float: right;
}

.user {
  display: block;
  width: 230px;
  float: left;
  padding: 5px;
}

.user:hover {
  background-color: #cfcfcf;
}

.icon50 {
  width: 50px;
}

.cl {
  clear: both;
  width: auto;
  display: block;
  padding: 5px;
  margin: 5px;
  height: 40px;
}

.cl:hover {
  background-color: #e9e9e9;
}

h2 {
  font-size: 1.3em;
}

.saveSchema {
  display: none;
  color: rgb(196, 0, 0);
}

#modal {
  display: none;
}

.modalbutton {
  background-color: #0e3dab;
  margin-top: 15px;
  width: 90%;
  height: 40px;
  color: white;
  border-radius: 5px;
  font-size: 1.5em;
  line-height: 0.9em;
  font-weight: bold;
  font-family: "Montserrat";
  padding: 9px;
  margin: 10px;
  text-align: center;
  clear: both;
  display: block;
}

.outofslots {
  background-color: rgb(159, 0, 0) !important;
}

.input {
  margin-top: 10px;
  outline: 1px;
  width: 90%;
  height: 50px;
  border-radius: 5px;
  border: 1px solid lightgray;
  font-size: 0.9em;
  font-weight: normal;
  font-family: "Montserrat";
  padding-left: 10px;
}

.header {
  width: 100%;
  max-width: 695px;
  font-size: 0.55em;
  padding: 20px;
  float: left;
}

#phonetip {
  display: block;
  padding-top: 30px;
  color: rgb(136, 136, 136);
}

.icontitle {
  font-size: 1.3em;
  font-weight: bold;
}

.desc {
  padding-top: 10px;
  font-size: 0.9em;
  color: rgb(147, 147, 147);
  font-weight: normal;
}

.red {
  color: rgb(159, 0, 0);
}

.redbg {
  background-color: rgb(159, 0, 0);
}

.invert {
  filter: invert(100%) contrast(200%) !important;
  -webkit-filter: invert(100%) contrast(200%) !important;
}

.invert .image {
  filter: invert(100%) !important;
}

.invert input {
  border: 1px solid black;
}

.invert .desc,
.invert .small {
  color: black !important;
}

.inverticon {
  float: right;
  text-align: center;
  margin: 10px;
  margin-left: 0px;
  font-size: 0.8em;
}

.inverticon a {
  text-decoration: none;
}

.access {
  display: inline-block;
  color: rgb(0, 0, 0);
  padding: 5px;
  border: 1px solid rgb(0, 0, 0);
  border-radius: 5px;
  margin: 5px;
  text-align: center;
  font-size: 1.5em;
  line-height: 1.5em;
  width: 2em;
  height: 2em;
}
.access:hover {
  color: white !important;
  background-color: rgb(0, 0, 0);
}

.declaration,
.declatation a {
  display: block;
  clear: both;
  margin-top: 25px;
  padding-left: 20px;
  color: rgb(0, 12, 146);
  text-decoration: none;
  font-size: 0.8em;
}

#qr {
  width: 200px;
  float: right;
  text-align: center;
}

@media only screen and (orientation: portrait) {
  #qr {
    display: none;
  }
}

#time {
  font-family: monospace;
}

.depticon {
  padding-bottom: 4px;
}

.todaycol {
  display: block;
  float: left;
  margin: 10px;
  margin-left: 40px;
}

.pos {
  display: block;
  clear: both;
  border-top: 1px solid gray;
  width: 300px;
  height: 35px;
  padding: 2px;
}

.slothour {
  width: 50px;
  margin-right: 10px;
  float: left;
  width: 50px;
  text-align: right;
}

.slottoday {
  background-color: #0c1c79;
  color: white;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  display: block;
  width: 70px;
  margin-left: 5px;
  height: 25px;
  font-size: 1em;
  line-height: 1.4em;
  float: left;
  margin-top: 1px;
}

.nophone {
  background-color: #ac0398 !important;
}

/* Day badge styles for available slots */
.day-card {
  position: relative;
}

.day-badge {
  position: absolute;
  bottom: 7px;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7em;
  padding: 2px 9px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 2;
  min-width: 60px;
  text-align: center;
  font-weight: normal;
}

.day-badge.available {
  background-color: #0a940e;
  color: rgb(188, 246, 189);
}

.day-badge.no-slots {
  background-color: #ff1100;
  color: rgb(236, 189, 189);
}

.day-badge.day-off {
  background-color: #ff9800;
  color: white;
}

.day-badge.error {
  background-color: #9e9e9e;
  color: white;
}

.day-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.day-disabled .icon {
  pointer-events: none;
}

/* Adjustment for clickable days */
.day-card.clickable:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* High contrast adjustments for badges */
html.high-contrast .day-badge.available {
  background-color: #00FF00 !important;
  color: #000 !important;
  border: 1px solid #fff !important;
}

html.high-contrast .day-badge.no-slots,
html.high-contrast .day-badge.day-off,
html.high-contrast .day-badge.error {
  background-color: #FF0000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

.day-date {
  display: block;
  font-size: 1em;
  color: #000000;
  font-weight: normal;
}

html.high-contrast .day-date {
  color: #fff !important;
}

/* Separator tygodnia - lewa ramka dla poniedziałków */
/* .icon.monday {
  border-left: 4px solid #4e6a80;
  position: relative;
}

.icon.friday {
  border-right: 4px solid #4e6a80;
  position: relative;
} */


.icon.monday::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, #8a959e, #cdd2d6);
  border-radius: 2px 0 0 2px;
}

/* Styl dla trybu wysokiego kontrastu */
/* html.high-contrast .icon.monday {
  border-left: 4px solid #FFFF00 !important;
} */

/* html.high-contrast .icon.monday::before {
  background: #FFFF00 !important;
} */