@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }


  a{
    text-decoration: none;
    color: #202020;
  }

  li{
    list-style-type: none;
  }

  body{
    margin: 0 auto;
    background: #fff;
    background: linear-gradient(to right, #ced6e0, #ffffff);
    min-height: 100vh;
    background-image: url(../media/wavy2.svg);
    background-size: cover;
    background-position: bottom center;
  }
  
  .btn-login {
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    padding: 0.75rem 1rem;
  }
  

  .box{
    margin: 8% auto;
    width: 50vw;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
  }

  .alert-danger{
    width: 22vw !important;
    position: absolute;
    bottom: 0;
    right: 0;
  }
  
    .logo{
      display: block;
      width: 20vw;
      margin: 0 auto;
    }


  .logo{
    display: block;
    width: 300px;
    margin: 0 auto;
  }

  .login-logo{
    width: 310px;
    height: 85px;
    background-image: url(../media/logo.png);
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 auto;
  }


  .login-page{
    padding: 2%;
    height: 98vh;
    background-image: url(../media/wavy.svg);
    background-size: cover;
    background-position: bottom center;
  }


  .choose{
    padding: 10px;
    text-align: center;
    width: 40vw;
    margin: 7% auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
  }

  .choice{
    width: 200px;
    height: 200px;
    line-height: 200px;
    color: #fff;
    background-color: #009473;
    border-radius: 10px;
    margin: 0 auto;
    cursor: pointer;
    font-size: 22px;
  }

  .choice:hover{
    background-color: #015c48;
  }

  .choice>h2{
    padding-top: 30%;
  }

  .form-floating > .bi-calendar-date + .datepicker_input + label {
    padding-left: 3.5rem;
    z-index: 3;
  }

  .close{
    position: absolute;
    left: 5%;
    top: 10%;
    font-size: 35px;
    cursor: pointer;
    text-decoration: none;
    line-height: 35px;
  }

  .user{
    position: absolute;
    padding: 10px;
    right: 10px;
    top: 10px;
    border-radius: 10px;
    display: flex;
    line-height: 33px;
    gap: 10px;
  }


  .nadpis{
    margin: 2% auto;
  }
  
  .overview-box{
    width: 50vw;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    border: 2px solid #009473;
    border-radius: 10px;
    background-color: #fff;
    max-height: 50vh;
  }

  .back-overview{
    margin: 0 auto;
    display: block;
  }

  /* .user-box{
    border-radius: 10px;
    display: none;
    position: absolute;
    right: 10px;
    width: 10vw;
    top: 60px;
    padding: 10px;
    border: 2px solid #009473;
    text-align: center;
    background-color: rgb(249, 249, 249);
  } */


  .success{
    width: 30vw;
    text-align: center;
    background-color: #fff;
    padding: 10px;
    margin: 2% auto;
  }

  .success-animation { margin:20px auto;}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position:relative;
    top: 5px;
    right: 5px;
   margin: 0 auto;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: #fff;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
 
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.user{
  position: absolute;
  left: 10px;
  top: 1px;
}

.logout{
  position: absolute;
  right: 10px;
  top: 10px;
}

.right-corner{
  position: absolute;
  display: flex;
  right: 10px;
  top: 10px;
  gap: 20px;
}

.time-picker {
  display: flex;
  justify-content: center;
  flex-direction: column;
  transition: all 0.4s ease;
  height: 0;
  overflow: hidden;
}
.time-picker .set-time {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}
.time-picker .label {
  width: 60px;
  margin: 0 5px;
  text-align: center;
  line-height: 34px;
  display: inline-style;
}
.time-picker .label a {
  display: block;
  border: 1px solid #DDDDDD;
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
  border-radius: 3px;
}
.time-picker .label a:hover, .time-picker .label a:active {
  background-color: red;
  color: #FFFFFF;
}
.time-picker .label .set {
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  line-height: 34px;
  font-size: 20px;
  font-weight: bold;
  border: transparent;
}
.time-picker #submitTime {
  text-align: center;
  line-height: 34px;
  border: 1px solid #DDDDDD;
  width: 128px;
  margin: auto;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
}

.time-picker.open {
  border: 1px solid #DDDDDD;
  padding: 15px;
  transition: all 0.5s ease;
  height: auto;
  background-color: #FCFCFC;
}

.err-message{
  background-color: tomato;
  width: 200Px;
  margin: 1% auto;
  padding: 10px;
  color: white;
  border-radius: 10px;
  text-align: center;
}

#work_record ul{
  padding-left: 0;
}

#work_record li{
  background-color: tomato;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
}

.new-record-box{
  display: flex;
  justify-content: center;
  text-align: center;
}

.add-record{
  margin-bottom: 20%;
}

.close:hover{
  background-color: #202020;
  color: #fff;
  text-align: center;
  line-height: 35px;
  border-radius: 20%;
}

.filter-box{
  width: 300px !important;
  margin-left: 25% !important;
}

.filter-box3{
  margin-left: 15% !important;
  margin-top: 4% !important;
  width: 300px !important;
}

.box-2{
  margin-top: 4% !important;
}

.form-select{
  margin-bottom: 1.5em !important;
}

.export-box{
  margin-top: 1em !important;
  margin-left: 25% !important;
}

.filters{
  display: flex !important;
  margin-left: 25% !important;
  gap: 10px !important;
}

.filters > .filter-box{
  margin: 5% 0px 0px 0px !important;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}

.users{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  width: 70vw;
  margin: 2% auto;
  gap: 10px;
}

.username{
  background-color: #009473;
  color: #fff;
  padding: 5px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.username:hover{
  background-color: #00644f;
}

.user-box{
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.user-record{
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #202020;
  width: 50vw;
  margin: 0 auto;
}

.user-box h4{
  text-align: center;
}

.admin-overview{
  padding-top: 10% !important;
}

.chart{
  background-color: #fffffff1;
  border: 1px solid #00644f;
  border-radius: 10px;
  height: 50vh;
  width: 70%;
  margin: 0 auto;
}

#userChart{
  width: 90%;
  margin: 0 auto;
}

  @media only screen and (max-width: 900px) {

    .chart{
      display: none;
    }

    .filters{
      margin-left: 0 !important;
    }

    .close{
      width: 40px;
      height: 40px;
    }

    .filter-box, .export-box{
      margin-left: 10px !important;
    }

    .users{
      display: grid;
      grid-template-columns: 1fr 1fr;
      width: 100vw;
      margin: 0 auto;
      gap: 10px;
    }

    .user-box, .user-record{
      width: 98% !important;
      margin: 0 auto;
    }

    .user-record{
      overflow: auto;
    }

    header{
      display: grid;
    }

    .close{
      position: relative;
    }

    .choose{
      display: grid;
      grid-template-columns: 1fr;
      background: none;
      width: 100%;
    }

    .user{
      position: relative;
      float: right;
    }

    .overview-box{
      min-width: 100vw;
    }

    .overview-box table{
      overflow: auto;
    }

    .alert-danger{
      width: 100vw !important;
      position: absolute;
      bottom: 0;
      right: 0;
    }

    .box{
      width: 90vw !important;
    }

  }