@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Moirai+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap");

html,
main {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Ubuntu", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(120deg, #2980b9, #8e44ad);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.container {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 3%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.container--flow {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 24px auto 40px;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  align-items: start;
}

.container-view {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 3%;
}

.center {
  width: 400px;
  max-width: calc(100vw - 32px);
  background: white;
  border-radius: 10px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
  margin: auto;
}

.center h1 {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid silver;
}

.center h2 {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid silver;
  margin: 0;
}

.center form {
  padding: 0 40px;
  box-sizing: border-box;
}
form .txt_field {
  position: relative;
  border-bottom: 2px solid #adadad;
  margin: 30px 0;
}
.txt_field input {
  width: 100%;
  padding: 0 5px;
  height: 40px;
  font-size: 16px;
  border: none;
  background: none;
  outline: none;
  box-sizing: border-box;
  min-width: 0;
}

.txt_field input::placeholder {
  color: transparent;
  transition: color 0.2s ease;
}

.txt_field input:focus::placeholder {
  color: #a6a6a6;
}

.txt_field label {
  position: absolute;
  top: 50%;
  left: 5px;
  color: #adadad;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  transition: 0.5s;
}
.txt_field span::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #2691d9;
  transition: 0.5s;
}
.txt_field input:focus ~ label,
.txt_field input:not(:placeholder-shown) ~ label {
  top: -5px;
  color: #2691d9;
}
.txt_field input:focus ~ span::before,
.txt_field input:not(:placeholder-shown) ~ span::before {
  width: 100%;
}
.pass {
  margin: -5px 0 20px 5px;
  color: #a6a6a6;
  cursor: pointer;
}
.pass:hover {
  text-decoration: underline;
}
input[type="submit"] {
  width: 100%;
  height: 50px;
  border: 1px solid;
  background: #2691d9;
  border-radius: 25px;
  font-size: 18px;
  color: #e9f4fb;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
input[type="submit"]:hover {
  border-color: #2691d9;
  transition: 0.5s;
}

input[type="submit"].secondary-button {
  background: #eef4ff;
  border-color: #bfd7f2;
  color: #20537d;
}

input[type="submit"].danger-button {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b42318;
}

.signup_link {
  margin: 30px 0;
  text-align: center;
  font-size: 16px;
  color: #666666;
}
.signup_link a {
  color: #2691d9;
  text-decoration: none;
}
.signup_link a:hover {
  text-decoration: underline;
}

h1.heading {
  text-align: center;
  margin: 1rem;
  font-size: 80px;
  color: #ffffff;
  font-style: oblique;
}

.navigation {
  height: 55px;
  background: linear-gradient(45deg, #4199fe, #74b4fe);
}
.brand {
  position: absolute;
  float: left;
  line-height: 55px;
  text-transform: uppercase;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  vertical-align: middle;
  margin-right: 10px;
}

.brand a,
.brand a:visited {
  color: #ffffff;
  text-decoration: none;
}

.form-message {
  margin: 0 0 18px;
  color: #b42318;
  font-weight: 700;
}

.flow-card,
.participant-step {
  width: min(460px, 100%);
  max-width: calc(100vw - 32px);
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.flow-card__header,
.participant-step__header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid #e4ebf3;
}

.flow-card__header h2,
.participant-step__header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
  font-size: 24px;
  line-height: 1.2;
}

.flow-card__intro,
.participant-step__intro {
  margin: 10px 0 0;
  color: #5b7083;
  font-size: 15px;
  line-height: 1.5;
}

.flow-card__body,
.participant-step__body {
  padding: 24px 32px 32px;
  box-sizing: border-box;
}

.flow-card form.flow-form {
  padding: 0;
}

.flow-form .txt_field {
  margin: 0 0 22px;
}

.flow-field {
  margin-bottom: 22px;
}

.flow-label {
  display: block;
  margin-bottom: 8px;
  color: #38516a;
  font-size: 14px;
  font-weight: 700;
}

.flow-note {
  margin: 0;
  color: #6b7f92;
  font-size: 14px;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.select-field select {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d7e3f0;
  background: #f9fbfe;
  color: #243b53;
  font-size: 16px;
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
}

.select-field select:focus {
  border-color: #68aee7;
  outline: none;
  box-shadow: 0 0 0 4px rgba(38, 145, 217, 0.12);
}

.toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #d7e3f0;
  background: #f9fbfe;
  color: #243b53;
  cursor: pointer;
}

.toggle-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #2691d9;
}

.toggle-option__content {
  display: grid;
  gap: 4px;
}

.toggle-option__title {
  font-size: 16px;
  font-weight: 700;
}

.toggle-option__hint {
  color: #5b7083;
  font-size: 14px;
  line-height: 1.4;
}

.item-draft-summary {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
  border: 1px solid #dce8f4;
  color: #38516a;
  line-height: 1.5;
}

.item-draft-summary p {
  margin: 0;
}

.item-draft-summary p + p {
  margin-top: 8px;
}

.participant-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.participant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d7e3f0;
  background: #f9fbfe;
  color: #243b53;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.participant-option:hover {
  background: #f2f8ff;
  border-color: #b9d1ea;
  transform: translateY(-1px);
}

.participant-option:has(input:checked) {
  background: #e8f4ff;
  border-color: #68aee7;
  box-shadow: 0 6px 16px rgba(38, 145, 217, 0.12);
}

.participant-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2691d9;
}

.participant-option span {
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}

.flow-actions,
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.flow-actions input[type="submit"],
.form-actions input[type="submit"] {
  width: auto;
  flex: 1 1 0;
  margin: 0;
  min-height: 58px;
  height: auto;
  padding: 14px 18px;
  line-height: 1.2;
}

.nav-container {
  /* max-width: 1000px;  kdybych to chtěl dát na střed */
  margin: 0 auto;
}
nav {
  float: right;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  float: left;
  position: relative;
  font-weight: bold;
}
nav ul li a,
nav ul li a:visited {
  display: block;
  padding: 0 20px;
  line-height: 55px;
  color: #fff;
  background: #262626;
  text-decoration: none;
}
nav ul li a {
  background: transparent;
  color: #fff;
}
nav ul li a:hover,
nav ul li a:visited:hover {
  background: #2581dc;
  color: #ffffff;
}
.navbar-dropdown li a {
  background: #2581dc;
}
nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after {
  padding-left: 4px;
  content: " \025BE";
}
nav ul li ul li {
  min-width: 190px;
}
nav ul li ul li a {
  padding: 15px;
  line-height: 20px;
}
.navbar-dropdown {
  position: absolute;
  display: none;
  z-index: 1;
  background: #fff;
  box-shadow: 0 0 35px 0 rgba(0, 0, 0, 0.25);
}
/* Mobile navigation */
.nav-mobile {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  height: 55px;
  width: 70px;
}

@media only screen and (max-width: 800px) {
  .nav-mobile {
    display: block;
  }
  nav {
    width: 100%;
    padding: 55px 0 15px;
  }
  nav ul {
    display: none;
  }
  nav ul li {
    float: none;
  }
  nav ul li a {
    padding: 15px;
    line-height: 20px;
    background: #262626;
  }
  nav ul li ul li a {
    padding-left: 30px;
  }
  .navbar-dropdown {
    position: static;
  }
  @media screen and (min-width: 800px) {
    .nav-list {
      display: block !important;
    }
  }
  #navbar-toggle {
    position: absolute;
    left: 18px;
    top: 15px;
    cursor: pointer;
    padding: 10px 35px 16px 0px;
  }
  #navbar-toggle span,
  #navbar-toggle span:before,
  #navbar-toggle span:after {
    cursor: pointer;
    border-radius: 1px;
    height: 3px;
    width: 30px;
    background: #ffffff;
    position: absolute;
    display: block;
    content: "";
    transition: all 300ms ease-in-out;
  }
  #navbar-toggle span:before {
    top: -10px;
  }
  #navbar-toggle span:after {
    bottom: -10px;
  }
  #navbar-toggle.active span {
    background-color: transparent;
  }
  #navbar-toggle.active span:before,
  #navbar-toggle.active span:after {
    top: 0;
  }
  #navbar-toggle.active span:before {
    transform: rotate(45deg);
  }
  #navbar-toggle.active span:after {
    transform: rotate(-45deg);
  }
}

.trips-vypis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 10% 3% 10%;
  width: 80%;
}

.child {
  padding: 20px;
  color: white;
  background-color: #7ba6cb;
  border-radius: 50px;
  font-size: 20px;
  min-width: 120px;
  text-align: center;
}

a#item.child {
  text-decoration: none;
}

a#item.child:hover {
  transform: scale(1.1);
}

/* TABULKY */
.styled-table {
  border-collapse: collapse;
  font-size: 0.9em;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 3%;
}

.table-container {
  min-width: 400px;
}
.styled-table thead tr {
  background-color: #2581dc;
  color: #ffffff;
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 12px 15px;
}
.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: white;
}
.styled-table tbody tr:nth-of-type(odd) {
  background-color: #bababa;
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #2581dc;
}

select {
  background-color: #0563af;
  color: white;
  padding: 6px;
  margin: 1%;
  width: 50;
  border: none;
  font-size: 16px;
  appearance: button;
  outline: none;
  border-radius: 50px;
}

select::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  text-align: center;
  font-size: 28px;
  line-height: 45px;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

td#empty {
  background-color: #666666;
}

/* GRAPHS */
.graf {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

/* MOBILY */
@media only screen and (max-width: 800px) {
  html,
  main {
    height: auto;
    min-height: calc(100vh - 55px);
  }

  body {
    background-attachment: scroll;
  }

  .center {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    background: white;
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: auto;
    box-sizing: border-box;
  }
  .container {
    width: calc(100% - 16px);
    margin: 16px auto 32px;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    align-items: start;
  }

  .container--flow {
    width: calc(100% - 16px);
    margin: 16px auto 32px;
    max-width: none;
  }

  .container-view {
    width: calc(100% - 16px);
  }

  .trips-vypis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin-bottom: 10%;
    width: 80%;
  }
  .graf {
    height: 300px;
  }
  h1.heading {
    text-align: center;
    margin: 1rem;
    font-size: 55px;
    color: #ffffff;
    font-style: oblique;
  }
  .styled-table {
    min-width: 350px;
    margin: auto;
  }

  .styled-table th,
  .styled-table td {
    padding: 4px 5px;
  }

  .table-container {
    overflow-x: auto;
    white-space: nowrap;
    margin: 0 auto 24px;
    width: auto;
    max-width: calc(100vw - 32px);
  }

  .center form {
    padding: 0 24px 24px;
  }

  .participant-step {
    width: 100%;
    max-width: 100%;
  }

  .flow-card__header,
  .participant-step__header {
    padding: 20px 20px 14px;
  }

  .flow-card__header h2,
  .participant-step__header h2 {
    font-size: 22px;
  }

  .flow-card__body,
  .participant-step__body {
    padding: 18px 20px 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-field,
  .flow-form .txt_field {
    margin-bottom: 18px;
  }

  .item-draft-summary {
    padding: 16px;
  }

  .participant-list {
    gap: 8px;
  }

  .participant-option {
    padding: 12px 14px;
  }

  .toggle-option {
    padding: 14px 16px;
  }

  .flow-actions,
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .flow-actions input[type="submit"],
  .form-actions input[type="submit"] {
    min-height: 62px;
  }
}
