
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --blue:#00001A;
}

html {
  font-size: 100%;
  font-size: 15px;
}

body {
  font-family: "Open Sans", serif;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #fff;
  color: #333;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

.mt-1{
  margin-top: 1rem;
}
.mt-2{
  margin-top: 2rem;
}
.my-1{
  margin: 1rem 0;
}
.my-2{
  margin: 2rem 0;
}
p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #007bff;
}
.t-c{
  text-align: center;
}
.relative{
  position: relative;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
  }
  .d-gr2{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .dgr-1 {
    flex: 1 1 100%; /* 100% width, full column */
  }
  
  .dgr-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .dgr-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
  
  .dgr-4 {
    flex: 1 1 25%; /* 25% width for each item */
  }
  .flex-row {
    flex-direction: row;
  }
  
  .flex-column {
    flex-direction: column;
  }
  
  .flex-row-reverse {
    flex-direction: row-reverse;
  }
  
  .flex-column-reverse {
    flex-direction: column-reverse;
  }
  .justify-center{
    justify-content: center;
  }
  .justify-start {
    justify-content: flex-start;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-around {
    justify-content: space-around;
  }
  .justify-evenly {
    justify-content: space-evenly;
  }
  .align-center{
    align-items: center;
  }
  .gap-10 {
    gap: 10px;
  }
  
  .gap-20 {
    gap: 20px;
  }
  header{
    background-color: var(--blue);
    width: 100%;
    height: 60px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  #logo{
    display: flex;
    align-items: center;
    width: 22%;
  }             
  #logo img{
    height: 50px;
  }
  .middle-bar{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #000033;
    width: 63%;
    height: 100%;
    padding: 0 2rem;
    gap: 20px ;
  }
  .searchbox{
    width: 100%;
    position: relative;
  }
  .searchicon{
    position: absolute;
    left: 1rem;
    top: 25%;
  }
  .searchbox input {
    width: 100%;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.159);;
    border-radius: 5px;
    outline: none;
    padding: 0 3rem;
    color: white;
}
  .middle-bar img{
    width: 20px;
  }
  .user {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 15%;
    padding: 1rem;
  }
  .user img{
    height: 35px;
    width: 30px;
    border-radius: 50%;
  }
  .user div{
    padding: 0 0.5rem;
  }
  .account-name{
    color: white;
    font-weight: 500;
    font-size: 15px;
    display: block;
    line-height: 1.3em;
  }
  .account-designation{
    color: rgba(255, 255, 255, 0.603);
    font-weight: 200;
    font-size: 13px;
    display: block;
    line-height: 1.3em;
  }
  .pointer{
    cursor: pointer;
  }
  main{
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
  }
  nav{
    background: #f4f4f4;
    width: calc(22% + 1rem);
    padding: 1rem;
  }
  nav ul li{
    display: flex;
    margin: .5rem 0;
  }
  .nav-item{
    display: flex;
    column-gap: 10px;
    align-items: center;
  }
  .nav-item  img{
    width: 18px;
  }
  .nav-item a{
    line-height: 2;
  }

  .content{
    width: calc(78% - 1rem);
    overflow-y: scroll;
    padding: 1rem;
  }

  .button{
    background-color: var(--blue);
    border: 0.5px solid var(--blue);
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
  }
  .button:hover{
    color: black;
    background: #f5f5f5;
  }
  .notification{
    position: fixed;
    right: -100%;
    z-index: 2;
    background-color:#f4f4f4;
    width: 30%;
    height: auto;
    padding: 2rem;
    top: 60px;
    transition: 0.35s ease-in-out;
  }
  .camera-frame{
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: none;
    position: relative;
  }
  #video{
    width: 100%;
    height: 90%;
  }
 #canvas{
   display:none;
 }

.loginform {
  width: 100%;
  height: 100%;
  background-image: url(../Images/banner.webp);
  color: white;
}
#loginform{
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border: 0.5px solid rgba(255, 255, 255, 0.747);
  background: #201a2d98;
}
#loginform button{
  width: 100%;
  padding: 10px;
  background-color: white;
  color: black;
}
#loginform button:hover{
  background-color: var(--blue);
  color: white;
}
#loginform input{
  width: 100%;
  background: transparent;
  padding: 10px;
  outline: none;
  border: 0.6px solid rgba(226, 226, 226, 0.479);
  margin-bottom: 20px;
  border-radius: 5px;
  transition: 0.25s linear;
  color: white;
}
#loginform input:focus{
  border: 0.5px solid rgb(236, 236, 236);
}
.rotatable{
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.rotatable tr td,.rotatable tr th{
  border: 1px solid black;
  padding: .5rem;
}
div#mytable_wrapper {
  width: 100%;
}

.d-gr2 div{
  padding: 1rem;
}
.d-gr2 div:nth-child(2){
  background-color: #b8fffb;
}
.t-r{
  text-align: right;
}
#rotaform, #overtime {
  display: grid;
}
#overtime div{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#rotaform input, #rotaform select, #rotaform button{
  margin: 10px 0;
  padding: 5px 10px;
}
#overtime input ,#overtime button{
  padding: 5px 10px;
  margin: 10px 0;
}
.card{
  padding: 1rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border-radius: 15px;
}
.card img{
  width: 150px;
  height: 150px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  height: auto;
  align-self: center;
}
.profil-pic{
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.form-grid{
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 10px;
}
.form-grid select,.form-grid input, .form-grid label, .form-grid button{
  width: 100%;
  padding: 5px 10px ;
}
.form-grid textarea{
  padding: 5px 10px ;
  row-gap: 50px;
}
#leaveform div{ 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

#leaveform input, #leaveform textarea{
  padding: 5px 10px;
  width: 100%;
  outline: none;
}


  @media screen and (max-width:768px) {
    .dgr-3{
      grid-template-columns: 1fr;
    }
    .loginform{
      background-position: top;
    }
    #loginform{
      width: 90%;
      
    }
    header{
      padding: 0 1rem;
    }
    #logo{
      width: 15%;
    }
    nav{
      width: 50%;
    }
    .user{
      display: none;
    }
    .middle-bar{
      background-color: transparent;
      padding: 0;
      width: 85%;
    }
    nav{
      position: absolute;
      top: 60px;
      position: fixed;
      left: -100%;
      height: calc(100vh - 60px);
      transition: 0.35s ease-in-out;
      z-index: 1;
    }
    .content{
      width: 100%;
      padding: 1rem;
    }
    .camera-frame{
      height: 60%;
    }
    #video{
      height: 100%;
      width: 100%;
    }
    #punch {
      display: block;
      width: 100%;
      padding: 15px;
  }
    .d-gr2{
      grid-template-columns: 1fr;
    }
    .notification{
      width: 80%;
    }
    div#mytable_wrapper {
      width: max-content;
  }
.form-grid{
    grid-template-columns: 1fr;

  }
  #leaveform div{ 
    grid-template-columns: 1fr;
  }
  }


