@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #042932 url(/img/background.jpg);
  background-size: cover;
  background-position: top;
}

body {
  font-family: sans-serif;
  margin: auto 0;
  background: rgba(255, 255, 255, 0.25);
  color: #333;
  height: 100%;
}

body.login-body {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #042932;
}

header {
  text-align: center;
  background-color: #ffffffdb;
  padding: 25px;
}

.menu {
  display: inline-flex;

  gap: 20px;
}

a {
  position: relative;
  font-size: 1rem;
  text-decoration: none;
  color: #ff4734;
  transition: color 0.3s ease;
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1rem;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

footer a::after {
  background: rgba(255, 255, 255, 0.3);
}

a:hover {
  color: #042932;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

footer a:hover {
  color: #7196a0;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.web-content {
  width: 60%;
  margin: auto;
  border-bottom-right-radius: 15px;
  padding: 0 8px 8px;
  background: #ffffff61;
  border-bottom-left-radius: 15px;
}

.login-content {
  background: #0000002b;
  font-family: 'Sansation', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
}

.login-form {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 100px 65px;
  width: 300px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  text-align: center;

}

.login-form h2 {
  margin-bottom: 30px;
  color: #042932;
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  color: #042932;
  outline: none;
  transition: border 0.3s ease;
  box-sizing: border-box;
}

.login-form input:focus {
  border-color: #042932;
}

.login-form button,
#passwordChangeForm button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
  color: #042932;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#passwordChangeForm button {
  width: 350px;
  display: none;
}

.login-form button::before,
#passwordChangeForm button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(0, 0, 0, 0.07);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.login-form button:hover::before,
#passwordChangeForm button:hover::before {
  left: 125%;
}

.login-form button:hover,
#passwordChangeForm button:hover {
  background: #042932;
  color: white;
  border-color: #042932;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.login-form .error {
  color: #f00;
  position: absolute;
  top: 40px;
  width: 100%;
  display: block;

  left: 0;
}

.controls,
.article-header {
  display: flex;
  gap: 1em;
  justify-content: center;
  align-items: center;
  padding: 1em;

  flex-wrap: wrap;
  background: #042932d8;
}

.article-content {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background-color: #ffffffc9;
  min-height: 400px;
  padding: 20px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: #04293285;
  margin: 0 auto;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.day,
.summary {
  background-color: #ffffffc9;
  padding: 10px;
  min-height: 100px;
  cursor: pointer;
  position: relative;
  font-size: 33px;
  font-family: "Sansation", sans-serif;
}

.header {
  font-weight: bold;
  background-color: #e6e3e1;
  text-align: center;
  padding: 20px 0 10px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2.5rem;
  color: #042932;
  margin-bottom: 10px;
}

h1 a {
  font-size: 2.5rem;
  color: #042932;
}

.article-header h2 {
  color: rgba(255, 255, 255, 0.9);
}

.day:hover {
  background-color: #f0ece9;
}

.day.empty {
  background-color: #ffffff73;
}

.day.empty:hover {
  background-color: #ffffff73;
  cursor: not-allowed;
}

.summary {
  background-color: #faf8f6;
  font-size: 0.9em;
  color: #555;
  cursor: auto;
}

.today {
  background-color: #ffd5c4 !important;
}

.today:hover {
  background-color: #ffc4ad !important;
}

.weekend {
  background-color: #fd7c7cbb;
}

.weekend:hover {
  background-color: #fd7c7cbb;
  cursor: not-allowed;
}

.calendar-footer {
  background: #042932d8;
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.calendar-footer strong {
  color: #c6c6c6;
}

.smallText {
  font-size: .7rem;
}
table {
  font-family: 'Sansation', sans-serif;
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #042932;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

table thead {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

table th, table td {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
}

table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

table tbody tr:last-child td {
  border-bottom: none;
}

table th:not(:last-child),
table td:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}


select,
button,
input[type="time"] {
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-style: normal;

  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

select.reverse-color,
button.reverse-color,
input[type="time"].reverse-color {
  background: #042932f7;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.41);
  padding: 0;
  font-weight: 400;
  font-size: 16px;
  width: 70px;
  text-align: center;
  height: 29px;
}

select::before,
button::before,
input[type="time"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

select.reverse-color::before,
button.reverse-color::before,
input[type="time"].reverse-color::before {
  background: rgba(0, 0, 0, 0.1);
}

select:hover::before,
button:hover::before,
input[type="time"]:hover::before {
  left: 125%;
}

select:hover,
button:hover,
input[type="time"]:hover {
  color: #042932;
  background: rgba(255, 255, 255, 0.9);
  border-color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

select.reverse-color:hover,
button.reverse-color:hover,
input[type="time"].reverse-color:hover {
  background: rgba(213, 211, 211, 0.9);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.64);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sansation', sans-serif;
  font-size: 0.9rem;
  color: #042932;
  margin: 10px 0;
  padding-left: 40px;
}
.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0);
  backdrop-filter: blur(3px);
}
/* Vlastní "fajfka" */
.checkbox-wrapper input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid #042932;
    border-top-width: medium;
    border-right-width: medium;
    border-bottom-width: medium;
    border-left-width: medium;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  left: 5px;
  top: 1px;
  transition: transform 0.2s ease;
}

/* Hover efekt */
.checkbox-wrapper input[type="checkbox"]:hover {
  box-shadow: 0 0 10px rgba(4, 41, 50, 0.3);
}

/* Zaškrtnutý checkbox */
.checkbox-wrapper input[type="checkbox"]:checked {
  background: rgba(4, 41, 50, 0.2);
  border-color: #042932;
  box-shadow: 0 0 12px rgba(4, 41, 50, 0.5);
}

/* Viditelná fajfka */
.checkbox-wrapper input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

.article-content form {
  position: relative;
}

#passwordChangeForm input {
  width: 350px;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  color: #042932;
  outline: none;
  transition: border 0.3s ease;
  box-sizing: border-box;
}

#passwordChangeForm input:focus {
  border-color: #042932;
}

#passwordRequirements {
  position: absolute;
  top: 0;
  left: 400px;
  width: 400px;
}


.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal {
  background: white;
  padding: 70px 20px;
  border-radius: 8px;
  width: 500px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -200px;
  margin-left: -250px;
}

.modal-header {
  background: #042932;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  box-sizing: border-box;
}

.modal-close-button {
  position: absolute;
  top: 2px;
  right: 3px;
  cursor: pointer;
  padding: 2px 6px;
}

.modal h2 {
  margin-top: 0;
  font-size: 1em;
  color: #fff;
}

.modal-header-row {
  font-weight: bold;
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.3em;
}

.modal-row {
  display: flex;
  gap: 0.5em;
  align-items: center;
  margin-bottom: 0.5em;
}

.modal-row input[type="text"],
.modal-row select {
  flex: 1;
  margin-left: 40px;
  text-align: left;
  padding-left: 20px;
}

.modal-row .remove {
  color: red;
  cursor: pointer;
}

.add-row {
  color: green;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

.modal #breaksSection {
  display: none;
  margin-top: 50px;
}

.modal #addDetail {
  display: inline-block;
}

footer {
  background: #042932f0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #c6c6c6;
  text-align: center;
  padding: 15px 0;
  font-family: "Sansation", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}

footer span {
  font-size: .8rem;
}

@media (max-width: 768px) {
  .calendar {
    display: block;
  }

  .day,
  .summary {
    display: block;
    width: 100%;
    border-bottom: 1px solid #ddd;
    min-height: auto;
  }

  .header {
    display: none;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }
}