.inline {
  display: inline-flex;
  vertical-align: middle;
  color: white;
  text-decoration: red;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 0;
  flex-wrap: wrap;
}

body {
  background: #9099a1;
  max-width: 100%;
  height: auto;
}

header {
  width: 100%;
  height: auto;
  padding-bottom: 5px;
  display: inline-flex;
  background-color: #2d283e;
  position: -webkit-sticky; /* Pro prohlížeč Safari */
  position: relative;
  top: 0;
  z-index: 3;
}

footer {
  width: 100%;
  height: auto;
  background: #ece1c5;
  padding-top: 5px;
  text-align: center;
  margin-left: 0px;
  margin-right: 0;
  margin-top: 10px;
}

.footer-text {
  display: inline-flex;
  vertical-align: middle;
  font-weight: bold;
  color: rgb(0, 0, 0);
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 0;
  flex-wrap: wrap;
}

/* Stylovaní navigace */
nav ul {
  list-style-type: none;
  margin-top: 4%;
  padding: 0;
  position: relative;
  background-color: #2d283e;
}

nav li a {
  display: block;
  min-width: 220px;
  min-height: 50px;
  height: 100%;
  width: 100%;
  text-align: center;
  line-height: 60px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  font-size: 22px;
}

nav li a:hover,
.active {
  background-color: #28960f;
  border-radius: 25px;
}

nav li {
  float: left;
  padding: 0 15px 0 15px;
}

.nav-logo {
  min-width: 100px;
  width: 20%;
}

/* Formátování obsahu */
article {
  width: 70%;
  height: auto;
  margin: 2.5% 5% 2.5% 14%;
  min-height: 500px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
}

h1 {
  text-align: center;
  font-size: 45px;
  background-color: #2d283e;
  color: white;
}

/* Obrázky */
.logo {
  min-width: 100px;
  width: 250px;
  height: auto;
  vertical-align: middle;
  margin-left: 3%;
}

ol li {
  margin-bottom: 7px;
}

div {
  display: flex;
  flex-flow: wrap;
}

section {
  display: inline-block;
  margin: 10px 10px 10px 10px;
  padding: 5px 5px 5px 5px;
  text-align: center;
  width: 30%;
  min-width: 300px;
  height: auto;
}

.uvod {
  display: inline-block;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
  min-width: 300px;
  height: auto;
}

/* Registrace/Login */
/* Full-width input fields */
input[type='text'],
input[type='password'] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Set a style for all buttons */
button {
  background-color: #04aa6d;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

.fill-button {
  background-color: #04aa6d;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 35%;
  font-weight: bold;
}

.service-button {
  background-color: #2c3e50;
  color: white;
  border: 1px solid transparent;
  border-radius: 0.25em;
  border-color: #151e27;
  display: inline-block;
  line-height: 1.5;
  padding: 0.4em 0.65em;
  margin: 0.2em;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  width: 180px;
}

.service-button.active {
  background-color: #1a252f;
}

.groups-button {
  background: #2c3e50;
  color: white;
  border: 3px solid #4caf50;
  border-radius: 0.4em;
  display: inline-block;
  line-height: 1.5;
  padding: 0.4em 0.65em;
  margin: 0.3em;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  width: 180px;
}

.login {
  display: block;
  min-width: 150px;
  min-height: 50px;
  height: 100%;
  width: 100%;
  text-align: center;
  line-height: 20px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background-color: #28960f;
  font-size: 22px;
  margin-left: 5px;
}

.register {
  display: block;
  min-width: 150px;
  min-height: 50px;
  height: 100%;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background-color: #4a63cf;
  font-size: 22px;
  margin-left: 5px;
  margin-top: 8px;
}

.register:hover {
  opacity: 0.8;
  background-color: #4a63cf;
  border-radius: 0;
}

.logout {
  display: block;
  min-width: 150px;
  min-height: 50px;
  height: 100%;
  width: 100%;
  text-align: center;
  line-height: 20px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background-color: #2bab0d;
  font-size: 22px;
  margin-left: 10px;
}

.currentUser {
  display: block;
  min-width: 100px;
  min-height: 50px;
  height: 100%;
  width: 100%;
  text-align: center;
  line-height: 60px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  font-size: 32px;
  float: right;
  margin-left: 35px;
}
.currentUser::first-letter {
  text-transform: uppercase;
}

.currentUser:hover {
  border-radius: 0;
  background-color: #2d283e;
}

button:hover {
  opacity: 0.8;
}

.cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}

.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
  position: relative;
}

img.avatar {
  width: 25%;
  border-radius: 50%;
  margin-left: 40%;
}

.container {
  padding: 25px;
  margin-left: 20%;
  margin-right: 20%;
}

span.psw {
  float: right;
  padding-top: 16px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto;
  border: 1px solid #888;
  width: 70%;
}

.close {
  position: absolute;
  right: 25px;
  top: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

/* Zoom animace */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s;
}

@-webkit-keyframes animatezoom {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}

@keyframes animatezoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Register styling */
input[type='text'],
input[type='password'],
input[type='email'] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  display: inline-block;
  border: none;
  background: #f1f1f1;
}

input[type='text']:focus,
input[type='password']:focus,
input[type='email']:focus {
  background-color: #ddd;
  outline: none;
}

.registerbtn {
  background-color: #04aa6d;
  color: white;
  padding: 16px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

.registerbtn:hover {
  opacity: 1;
}

.textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 16px;
  resize: none;
}

.back {
  margin-top: 15px;
}

.outside {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0px;
  left: 0px;
}

/* Styling notifikací */
.toast {
  font-size: 20px;
  font-weight: bold;
}

.toast-message {
  color: #000;
}

.toast-title {
  color: red;
}

/* Styling FullCalendar objektu */
.fc {
  max-width: 1100px;
  margin: 0 auto;
  width: 70%;
}
.fc-button {
  width: 20%;
}
.fc-today-button {
  width: 40%;
}
.fc-direction-ltr .fc-daygrid-event.fc-event-start,
.fc-direction-rtl .fc-daygrid-event.fc-event-end {
  margin-top: 30px;
}

.fc-event.recurring {
  background-color: lightblue;
  color: #000;
}

.fc-event.group-member-event {
  background-color: #d1a515 !important;
  border-color: #999999 !important;
  opacity: 1;
}

.fc .fc-toolbar-title {
  font-size: 1.5em;
  margin: 0px;
}

.fc-daygrid-event {
  background-color: #3788d8;
  border-color: #3788d8;
  color: white;
}

.fc .fc-daygrid-more-link {
  margin-top: 50%;
}

.event-tooltip {
  position: absolute;
  background: rgb(26, 37, 47);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 17px;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.holiday-cell {
  background-color: #ef767a;
}

.highlighted-cell {
  background-color: #536579 !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #3acf18;
}

input:focus + .slider {
  box-shadow: 0 0 1px #3acf18;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Styling skupiny */
/* Obal skupiny */
.group {
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 15px;
  margin: 10px;
  min-height: 150px;
  background: #2c3e50;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.group:hover {
  background-color: #2d283e;
}

/* Header skupiny */
.group h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #28960f;
}

/* Blok uživatele */
.user {
  font-weight: bold;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #000000;
  border-radius: 6px;
  background: linear-gradient(120deg, #f0f0f0, #2d283e); /* Subtle gradient */
  cursor: grab;
  transition:
    box-shadow 0.2s ease,
    background-color 0.3s ease;
}

.currentUserInGroup {
  border: 4px solid #4caf50;
}

.group-actions {
  position: absolute;
}

.action-button {
  background-color: #2c3e50;
  color: #04aa6d;
  border: none;
  padding: 1px;
  margin-top: 0;
  font-size: 18px;
}

#user-dropdown {
  width: 200px;
  padding: 10px;
  font-size: 18px;
  border: 2px solid #333;
  border-radius: 5px;
  background-color: #2c3e50;
  color: #ffffff;
  outline: none;
}

#user-dropdown:focus {
  border-color: #28960f;
  box-shadow: 0 0 5px #28960f;
}

#user-dropdown option {
  background-color: #2c3e50;
  color: #ffffff;
}

/* Styling legendy barev */
.legend {
  list-style: none;
}
.legend li {
  float: left;
  margin-right: 10px;
}
.legend span {
  border: 1px solid #ccc;
  float: left;
  width: 12px;
  height: 12px;
  margin: 2px;
}

.legend .taken {
  background-color: #536579;
}
.legend .hday {
  background-color: #ef767a;
}
.legend .your-event {
  background-color: #3788d8;
}
.legend .your-event-recurring {
  background-color: lightblue;
}
.legend .colleague-event {
  background-color: #d1a515;
}

/* Responzivita */

@media screen and (max-width: 1024px) {
  nav li a {
    min-width: 100px;
    min-height: 50px;
    height: 100%;
    width: 100%;
  }
}
@media screen and (max-width: 1400px) {
  .logo {
    min-width: 100px;
    width: 90%;
    height: auto;
    vertical-align: middle;
    margin-left: 3%;
  }
}

@media (max-width: 768px) {
  .fill-button {
    width: 100%;
  }
}

/* Login responzivita */
@media screen and (max-width: 300px) {
  span.psw {
    display: block;
    float: none;
  }
  .cancelbtn {
    width: 100%;
  }
}

/* Styling FullCalendar objektu - responzivita */

@media (max-width: 768px) {
  .fc {
    font-size: 14px;
    width: 330px;
  }

  .fc-event {
    font-size: 12px;
  }

  .fc-header-toolbar {
    flex-direction: column;
    align-items: center;
  }

  .fc-toolbar-chunk {
    margin-bottom: 5px;
  }

  .fc .fc-daygrid-day {
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .fc {
    font-size: 13px;
  }
}

/* Responzivita skupin a jejich uživatelů */
@media (max-width: 600px) {
  .group {
    margin: 5px;
    padding: 10px;
  }
  .user {
    font-size: 0.9em;
  }
}
