:root {
  --bg-color: antiquewhite;
  --input-color: white;
  --positive-color: darkseagreen;
  --negative-color: pink;
  --text-color: black;
  --subtle-text: #3C3D37;
  --select-color: ivory;
  --neutral-color: darksalmon;
  --omschrijving-color: ivory;
  --prive-bg: slategrey;
  --werk-bg: black;
}

[data-theme="dark"] {
  --bg-color: #181c14;
  --input-color: #3C3D37;
  --positive-color: cadetblue;
  --negative-color: indianred;
  --text-color: #ECDFCC;
  --subtle-text: #f2f2f2;
  --select-color: darkslategrey;
  --neutral-color: lightblue;
  --omschrijving-color: ivory;
  --prive-bg: rosybrown;
  --werk-bg: darkgray;
}


* {
  font-family: 'Courier New';
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    font-family:'Courier New';
    padding-top: 1em;
}

h2 {
  color: var(--subtle-text);
}

.formContainer {
    width: 800px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
}

input {
  text-align: center;
}

.inputForm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.divInput {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.twoInputs {
  display: flex;
  flex-direction: row;
}

.twoInputs .divInput:first-child {
  margin-right: 0.5em;
}

.formInputSmall {
  width: 100%;
  background-color: var(--input-color);
  border: none;
  height: 3.5em;
  margin-bottom: 0.5em;
  left: 1em;
  font-size: 1.2rem;
  text-indent: 20px;
  padding-top: 5px;
  color: var(--text-color);
  flex: 1;
}

.formInput {
    background-color: var(--input-color);
    border: none;
    height: 3.5em;
    margin-bottom: 0.5em;
    left: 1em;
    font-size: 1.2rem;
    width: 100%;
    text-indent: 20px;
    padding-top: 5px;
    color: var(--text-color);
    text-align: center;
}

.formInput:focus, .formInputSmall:focus{
    outline: 1px solid var(--text-color);
}

input:focus ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label {
  top: 8px;
  bottom: 10px;
  left: 1em;
  font-size: 10px;
  opacity: 1;
}

.floating-label {
  position: absolute;
  pointer-events: none;
  left: 1em;
  top: 18px;
  transition: 0.2s ease all;
  color: var(--subtle-text);
  font-size: 12px;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
  
.checkbox-group {
    display: flex;
    flex-direction: row;
    gap: .75rem;
    align-items: center;
    padding: 1rem;
    max-width: 60%;
    color: var(--text-color);
  }

.checkbox-darkMode {
  display: flex;
  flex-direction: row;
  gap: .75rem;
  align-items: center;
  max-width: 60%;
  color: var(--text-color);
  margin-bottom: 1em;
  align-self: end;
}

.checkboxesRow {
  display: flex;
  justify-content: space-between;
}

.submitBtn {
  padding: 1.5em;
  margin-top: 1em;
  background-color: var(--positive-color);
  border: none;
}

.emptyBtn {
  padding: 1.5em;
  margin-top: 1em;
  background-color: var(--negative-color);
  border: none;
}

input[type="file"] {
    display: none;
  }
  
.fileUpload {
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  border-color: var(--text-color);
}
  
.toggle {
    display: flex;
    min-width: 2rem;
    height: 1rem;
    border-radius: 25rem;
    padding: 0.25rem;
    transition: background 0.3s ease;
    background-color: #bababa; 
    position: relative;
  }
  
.toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: #444; 
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
.toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0.8rem;
    height:0.8rem;
    border-radius: 50%;
    background-color: var(--positive-color); 
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 61 45'%3E%3Cpath d='M48.7498 2.28142C51.3913 -0.359957 55.6739 -0.359921 58.3153 2.28153C60.7556 4.72181 60.9404 8.55699 58.8749 11.2134L58.8041 11.3044L58.3963 11.7663L27.5701 42.5925C25.1298 45.0327 21.2946 45.2175 18.6382 43.152L18.5472 43.0812L18.0853 42.6734L2.63175 27.2198C-0.00973761 24.5784 -0.00973773 20.2957 2.63175 17.6542C5.07203 15.2139 8.9072 15.0291 11.5636 17.0946L11.6546 17.1654L12.1164 17.5731L22.7871 28.2419L48.7498 2.28142C48.7498 2.28138 48.7497 2.28146 48.7498 2.28142Z'/%3E%3C/svg%3E") no-repeat center / 60%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 61 45'%3E%3Cpath d='M48.7498 2.28142C51.3913 -0.359957 55.6739 -0.359921 58.3153 2.28153C60.7556 4.72181 60.9404 8.55699 58.8749 11.2134L58.8041 11.3044L58.3963 11.7663L27.5701 42.5925C25.1298 45.0327 21.2946 45.2175 18.6382 43.152L18.5472 43.0812L18.0853 42.6734L2.63175 27.2198C-0.00973761 24.5784 -0.00973773 20.2957 2.63175 17.6542C5.07203 15.2139 8.9072 15.0291 11.5636 17.0946L11.6546 17.1654L12.1164 17.5731L22.7871 28.2419L48.7498 2.28142C48.7498 2.28138 48.7497 2.28146 48.7498 2.28142Z'/%3E%3C/svg%3E") no-repeat center / 60%;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  
.toggle:has(input[type="checkbox"]:checked) {
    background-color: var(--positive-color); 
  }
  
.toggle:has(input[type="checkbox"]:checked)::after {
    opacity: 1; 
    transform: translate(150%, -50%);
  }
  
.toggle:has(input[type="checkbox"]:checked)::before {
    background-color: #333;
    transform: translate(150%, -50%);
  }

  .up-in-toggle {
    display: flex;
    flex-direction: row;
    margin-bottom: 0.6em;
    column-gap: 0.5em;
    height: 3em;
 }
  .up-in-toggle input {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
    display: none;
 }
  .up-in-toggle input:checked + label {
    background: var(--negative-color);
    color: var(--subtle-text);
    font-weight: 500;
 }
  .up-in-toggle label {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: auto;
    background-color: lightgray;
    color: #3C3D37;
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 6px;
    transition: all 0.1s ease-in-out;
    border: none;
 }
  .up-in-toggle label:hover {
    cursor: pointer;
 }

 .fileUpload {
  display: flex;
  justify-content: center;
  color: var(--text-color);
 }

 /* SUCCESS MESSAGE */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9;
  height: 100vh;
  width: 100%
}

.success-icon {
  width: 50%;
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  top: calc( 12em / 2 - 50vh - 12em); /* placing exactly above the view port 12em - height of popup*/
  transition: top 0.5s ;
  transition-timing-function: cubic-bezier(0.18, 0.15, 0.31, 1.87);
}

.drop{
  top: 50%;
}

/* MENU */
/* Toggle Functionality */
#toggle {
  display: none;
}

#toggle:checked ~ .toggle-container .button-toggle:before {
  transform: translateY(-50%) rotate(45deg) scale(1);
}
#toggle:checked ~ .toggle-container .button-toggle:after {
  transform: translateY(-50%) rotate(-45deg) scale(1);
}
#toggle:checked ~ .nav {
  margin-bottom: 100px;
  pointer-events: auto;
  transform: translate(50px, 50px);
}
#toggle:checked ~ .nav .nav-item {
  color: var(--positive-color);
  letter-spacing: 0;
  height: 40px;
  line-height: 40px;
  margin-top: 0;
  opacity: 1;
  transform: scaleY(1);
  transition: 0.5s, opacity 0.1s;
}
#toggle:checked ~ .nav .nav-item:nth-child(1) {
  transition-delay: 0.15s;
}
#toggle:checked ~ .nav .nav-item:nth-child(1):before {
  transition-delay: 0.15s;
}
#toggle:checked ~ .nav .nav-item:nth-child(2) {
  transition-delay: 0.1s;
}
#toggle:checked ~ .nav .nav-item:nth-child(2):before {
  transition-delay: 0.1s;
}
#toggle:checked ~ .nav .nav-item:nth-child(3) {
  transition-delay: 0.05s;
}
#toggle:checked ~ .nav .nav-item:nth-child(3):before {
  transition-delay: 0.05s;
}
#toggle:checked ~ .nav .nav-item:nth-child(4) {
  transition-delay: 0s;
}
#toggle:checked ~ .nav .nav-item:nth-child(4):before {
  transition-delay: 0s;
}
#toggle:checked ~ .nav .nav-item:before {
  opacity: 0;
}
#toggle:checked ~ .dummy-content {
  padding-top: 30px;
}
#toggle:checked ~ .dummy-content:before {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Toggle Button */
.button-toggle {
  position: absolute;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 25px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-radius: 100%;
  transition: 0.6s;
}
.button-toggle:hover {
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.1), inset 0 0 0 20px rgba(0, 0, 0, 0.1);
}
.button-toggle:before, .button-toggle:after {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--positive-color);
  border-radius: 5px;
  transition: 0.5s;
}
.button-toggle:before {
  transform: translateY(-50%) rotate(45deg) scale(0);
}
.button-toggle:after {
  transform: translateY(50%) rotate(-45deg) scale(0);
}

/* Menu */
.menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav {
  display: inline-block;
  margin: 25px 25px 20px;
  pointer-events: none;
  transition: 0.5s;
}

.nav-item {
  position: relative;
  display: inline-block;
  float: left;
  clear: both;
  color: transparent;
  font-size: 14px;
  letter-spacing: -6.2px;
  height: 7px;
  line-height: 7px;
  white-space: nowrap;
  transform: scaleY(0.2);
  transition: 0.5s, opacity 1s;
  text-decoration: none;
}
.nav-item:nth-child(1) {
  transition-delay: 0s;
}
.nav-item:nth-child(1):before {
  transition-delay: 0s;
}
.nav-item:nth-child(2) {
  transition-delay: 0.05s;
}
.nav-item:nth-child(2):before {
  transition-delay: 0.05s;
}
.nav-item:nth-child(3) {
  transition-delay: 0.1s;
}
.nav-item:nth-child(3):before {
  transition-delay: 0.1s;
}
.nav-item:nth-child(4) {
  transition-delay: 0.15s;
}
.nav-item:nth-child(4):before {
  transition-delay: 0.15s;
}
.nav-item:nth-child(1) {
  letter-spacing: -8px;
}
.nav-item:nth-child(2) {
  letter-spacing: -7px;
}
.nav-item:nth-child(n+4) {
  letter-spacing: -8px;
  margin-top: -7px;
  opacity: 0;
}
.nav-item:before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  width: 2em;
  height: 2px;
  background-color: var(--positive-color);
  transform: translateY(-50%) scaleY(5);
  transition: 0.5s;
}

/* dashboard styling */
h1 {
  color: var(--text-color);
}

form {
  display: flex;
  flex-direction: column;
  padding-bottom: 1em;
  width: 500px;
  text-align: center;
}

.form-div {
  background-color: var(--neutral-color);
  width: 100%;
  border-radius: 1em;
}

.inside-form-div {
  display: none;
}

.form-div h2 {
  font-size: 16px;
  text-align: center;
}

label {
  color: var(--subtle-text);
}

.filters {
  display: block;
  text-align: center;
  padding: 1em;
}

.cards {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  align-content: center;
}

.card {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  flex-direction: column;
  width: 100%;
  gap: 0.5em;
  align-items: center;
  padding: 1em;
  margin: 0.5em;
  justify-content: center;
  background-color: azure;
  border-radius: 1em;
}

.cardTitle {
  font-weight: bolder;
}

.table {
  width: 100%;
}

.dashboardRow, .dashboardRowWork {
  display: flex;
  flex-wrap: wrap;
  padding: 2em 1.5em 1.5em 1.5em;
  margin: 0.2em;
  border-radius: 1em;
  height: 120px;
  align-items: center;
  justify-content:space-between;
  line-height: 1.8;
  position: relative;
  color: var(--bg-color)  !important;
}

.dashboardRow {
  background-color: var(--prive-bg);
}

.dateRow {
  font-weight: bolder;
}

.icon {
  position: absolute;
  top: 0.5em;
  width: 30px;
}

.train {
  filter: invert(96%) sepia(100%) saturate(12%) hue-rotate(237deg) brightness(103%) contrast(103%);
  left: 0.5em;
}

.car {
  right: 0.5em;
  filter: invert(96%) sepia(100%) saturate(12%) hue-rotate(237deg) brightness(103%) contrast(103%);
}

.omschrijvingRow {
  width: 100%;
  display: block;
  text-align: left;
  padding: 1em;
  color: var(--bg-color);
}

.dashboardRowWork {
  background-color: var(--werk-bg);
}

.beginstandRow, .eindstandRow {
  font-size: 0.8em;
}

.dashboardKm {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.filterBtn1 {
  padding: 0.5em 1em 0.5em 1em;
  margin-top: 1em;
  background-color: var(--select-color);
  border: none;
}

.filterBtn2 {
  padding: 0.5em 1em 0.5em 1em;
  margin-top: 1em;
  background-color: var(--positive-color);
  border: none;
}

  /* Responsive styling */
  @media (max-width: 768px) {

    form {
      width: 100%;
    }

    .filters {
      padding: 0.2em;
    }

    h1 {
      margin: 0.1em;
    }
}
  