@import url(var.css);
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

body h1, h2, h3, h4, h5, h6{
  font-family: var(--h-fam);
}

body p, a{
  font-family: var(--n-fam);
}

.flex-row, .flex-col{
  display: flex;
}

.flex-col{
  flex-direction: column;
}
.flex-row{
  align-items: center;
}


.main-btns{
    padding: 15px 16px;
    text-align: center;
    font-family: var(--n-fam);
    border: 1px solid rgba(141, 141, 141, 0.445);
    text-decoration: none;
    color: var(--text);
    background-color: var(--pri-col);
    border-radius: 3px;
    cursor: pointer;
    max-width: 70%;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.main-btns.warning{
  background-color: var(--warning);
  color: #fff;
  width: 100px;

}

.main-btns .small-loader, .attendance-buttons .btn .small-loader{
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    animation: moveRound .5s infinite ease forwards;
}

@keyframes moveRound  {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

.main-btns:not(.warning):hover{
    background-color: var(--hover-col);
}

.smart-links{
    color: var(--pri-col);
    text-decoration: none;
    width: auto;
}

.smart-links:hover{
    text-decoration: underline;
}

.content-wrapper{
    width: 100%;
    height: 100vh;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: var(--n-fam);
    color: #fff;
}

.content-wrapper .bg-img{
    object-fit: cover;
    z-index: -2;
}

.content-wrapper .overlay, .content-wrapper .bg-img{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.content-wrapper .overlay{
    background-color: rgba(0,0,0,0.5);
    z-index: -1;
}

.content-wrapper .top{
    width: 100%;
    text-align: center;
    padding: 20px;
}

.content-wrapper .middle{
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.content-wrapper, .content-wrapper .middle, .content-wrapper .middle form, .content-wrapper .middle form .form-group{
    display: flex;
}

.content-wrapper .middle form{
    max-width: 100%;
    width: 600px;
    flex-direction: column;
    gap: 15px;
    padding: 30px 20px;
    border: 1px solid rgba(189, 189, 189, 0.418);
    border-radius: 10px;
    background-color: rgba(100, 100, 100, 0.144);
    backdrop-filter: blur(3px);
    font-family: var(--n-fam);
    color: #fff;
}

.middle form .form-group{
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.middle form .form-group .error{
    font-size: 13px;
    color: var(--error);
}

.middle form .form-group .inp-enc{
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid rgba(202, 202, 202, 0.418);
    border-radius: 5px;
}

.middle form .form-group .inp-enc input{
    width: 100%;
    padding: 13px;
    background: transparent;
    border: none;
    color: #fff;
}

.middle form .form-group .inp-enc input:focus{
    outline: none;
}

.middle form .form-group .inp-enc input::-webkit-input-placeholder{
    -webkit-appearance: none;
    color: #fff;
    font-family: var(--n-fam);
}

.middle form .form-group .inp-enc i{
    border-right: 1px solid rgba(187, 187, 187, 0.418);
    padding: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #fff;
}



/*statics and templeates START*/
.response-wrapper{
    width: 90%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: var(--n-fam);
    position: fixed;
    left: 50%;
    top: 2%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
}

.response-wrapper.active{
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.response-wrapper .closer{
    font-size: 30px;
    cursor: pointer;
}

.response-wrapper p{
    font-size: 15px;
}

.response-wrapper.success{
    background-color: var(--success);
}
.response-wrapper.error{
    background-color: var(--error);
}

/* HTML: <div class="loader"></div> */
.loader {
  height: 15px;
  aspect-ratio: 6;
  display: flex;
}
.loader:before,
.loader:after {
  content: "";
  flex: 1;
  padding-left: calc(100%/6);
  background: radial-gradient(closest-side at calc(100%/3) 50%,#000 90%,#0000) 0/75% 100% content-box;
  animation: l20 2s infinite;
}
.loader:after {
  --_s:-1;
}
@keyframes l20 {
    0%       {transform:scale(var(--_s,1)) translate(0)    rotate(0)}
    25%      {transform:scale(var(--_s,1)) translate(-25%) rotate(0)}
    50%      {transform:scale(var(--_s,1)) translate(-25%) rotate(1turn)}
    75%,100% {transform:scale(var(--_s,1)) translate(0)    rotate(1turn)}
}

/*statics and templeates END*/


/*dashboard header-side bar START*/

/*DASH HEADER START*/



/*nav*/

.navigation{
    width: 100%;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 10;
    /* box-shadow: 2px 2px 20px rgba(0,0,0,0.1); */
}

.navigation .logo{
    max-width: 30%;
}

.navigation .logo img{
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.left-top-menu-adm{
    display: flex;
    align-items: center;
    gap: 20px;
}

.left-menu-toggle{
    font-size: 30px;
    cursor: pointer;
}

.top-modal-opener{
    cursor: pointer;
    position: relative;
}

.top-modal-opener .top-profile-img{
    height: 40px;
    border-radius: 50%;
}

.top-modal-opener .top-modal{
    position: absolute;
    right: 0%;
    top: 120%;
    max-width: 320px;
    width: 300px;
    display: none;
    flex-direction: column;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.top-modal-opener .top-modal.active{
    display: flex;
}

.top-modal .top{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background-color: var(--pri-col);
    padding: 40px 20px;
}

.top-modal .top img{
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.top-modal .bottom{
    width: 100%;
    background-color: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-modal .bottom a{
    text-decoration: none;
    color: #fff;
    max-width: 45%;
    width: 100px;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.top-modal .bottom a:nth-child(1){
    background-color: var(--accent);
}

.top-modal .bottom a:nth-child(2){
    background-color: var(--accent);
}

.top-head-table-form{
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 10px 0;
  max-width: 100%;
  width: 500px;
}

.dash-sect{
  max-width: 100%;
  width: 1000px;
  height: auto;
  border-top: 2px solid var(--pri-col);
  margin-top: 30px;
  box-shadow: 1px 1px 3px 2px rgba(0,0,0,0.1);
}


/*DASH HEADER END*/


/*side bar*/


.dashboard-wrapper {
    width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  padding-top: 100px;
  background-color: #f5f5f5;
}

.dashboard-wrapper .page-header{
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 2px solid var(--pri-col);
    max-width: 90%;
    width: 300px;
}

/* === Sidebar === */
/* .sidebar {
  width: 250px;
  background-color: #f0f0f0;
  color: var(--text);
  flex-shrink: 0;
  position: fixed;
  top: 100px;
  left: 0;
  min-height: 100%;
  height: auto;
  z-index: 10;
  overflow-y: auto;
  font-family: var(--n-fam);
  transition: transform 0.3s ease-in-out;
} */

.sidebar {
  width: 250px;
  background-color: #f0f0f0;
  color: var(--text);
  flex-shrink: 0;
  position: fixed;
  top: 100px;
  left: 0;
  height: calc(100vh - 160px); /* viewport height minus header */
  overflow-y: auto; /* allow scrolling */
  z-index: 10;
  font-family: var(--n-fam);
  transition: transform 0.3s ease-in-out;
  border-right: 1px solid #d2d6de;
}


/* === Main Content === */
.main-dashboard-content {
  margin-left: 250px;
  height: auto;
  flex-grow: 1;
  padding: 30px 10px;
  background-color: #f5f5f5;
  width: calc(100vw - 250px);
}

/* === Toggle Button (hidden by default) === */
.left-menu-toggle {
  display: none;
}



.sidebar-header {
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid #d2d6de;
  font-size: 1.25rem;
  margin-bottom: 50px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  position: relative;
}

.sidebar-menu > li > a {
  display: flex;
  gap: 10px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s ease;
  align-items: center;
}

.sidebar-menu > li > a span{
    font-size: 13px;
}

.sidebar-menu > li > a i{
    font-size: 13px;
}

.sidebar-menu > li > a:hover {
  background-color: var(--accent-dark);
  color: #fff;
}

.sidebar-menu i {
  margin-right: 8px;
}

.treeview-menu {
  max-height: 0;
  overflow: hidden;
  background-color: #e2e2e2;
  transition: max-height 0.3s ease;
}

.treeview.open .treeview-menu {
  max-height: 500px;
}

.treeview-menu li a {
  display: block;
  padding: 10px 32px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s;
  font-size: 13px;
}

.treeview-menu li a.active{
  background-color: var(--accent-dark);
  color: #fff;
}

.active-link.active{
  background-color: var(--accent-dark);
  color: #fff;
}

.treeview-menu li a:hover {
  background-color: var(--accent-dark);
  color: #fff;
}

/* Active arrow rotation */
.treeview.open .toggle-arrow {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.toggle-arrow {
  transition: transform 0.3s ease;
}

/*dashboard header-side bar END*/


/*******DASHBOARD STYLING START*/

/*DATE FILTER*/

.date-filter{
  max-width: 100%;
  width: 500px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-filter input{
  max-width: 45%;
}


/*EXPORTING*/

.exporting{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: 20px;
}

.exporting h4{
  margin-right: 10px;
}

/*EXPORTING*/
.small-btns{
  max-width: 50%;
  gap: 10px;
  flex-wrap: wrap;
}
.small-btns button{
  max-width: 45%;
  width: 100px;
  padding: 10px;
  border: none;
  cursor: pointer;
  background-color: var(--pri-col);
  color: var(--text);
}


.dash-sect .sect-header{
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  gap: 20px;
}

.dash-sect .sect-header i{
  font-size: 35px;
}

.dash-sect .sect-body{
  padding: 10px;
  width: 100%;
}

.dash-sect .data-cards-home{
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.dash-sect .data-cards-home .data-card{
  max-width: 45%;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 1px 2px 6px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all .3s ease;
}

.dash-sect .data-cards-home .data-card:hover{
  box-shadow: 1px 2px 6px 3px rgba(0,0,0,0.15);
}

.data-card .top{
  width: 100%;
  gap: 10px;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
}

.data-card .top .left{
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100px;
  gap: 10px;
}

.data-card .top .main-dat{
  font-size: 35px;
}

.dash-sect .data-cards-home .data-card .top i{
  font-size: 50px;
}


.data-card .bottom{
  width: 100%;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  background-color: var(--pri-col);
  padding: 10px;
  transition: all .3s ease-in-out;
  text-align: center;
}

.data-card .bottom:hover{
  background-color: var(--accent-dark);
  color: #fff;
}




/*CHARTS START*/
.chart-container{
  margin: 30px 0;
}
.chart-container.full{
  width: 100%;
}

.chart-container.half{
  display: flex;
  align-items: center;
  flex: 1 1 350px;
  gap: 20px;
}

.chart-container .charts{
  box-shadow: 1px 2px 5px rgba(0,0,0,0.1);
  border-top:  2px solid var(--pri-col);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-container .charts .chart-area{
  width: 100%;
  padding: 10px;
}

.chart-container .charts h3{
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.chart-container.half .charts canvas{
  width: 100%;
}

/*CHARTS END*/

/*******DASHBOARD STYLING END*/


/*FOOTER START*/

footer{
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    font-family: var(--n-fam);
    border-top: 1px solid #d2d6de;
}

footer a{
    text-decoration: none;
    color: var(--text);
}

footer a:hover{
    color: var(--pri-col);
}

/*FOOTER END*/


/* === FORMS === */

.form-wrapper{
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.forms{
    width: 100%;
    padding: 40px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
}

.forms h3, .forms h4{
    margin-bottom: 10px;
}

.form-group-wrapper{
    gap: 10px;
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.forms .form-group, .form-sections, .form-group-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.forms .form-group, .form-group-wrapper{
    gap: 5px;
}

.form-sections{
    gap: 20px;
}

.forms .form-group label{
    font-family: var(--n-fam);
    max-width: 95%;
    word-break: break-all;
}

.forms .form-group .error{
    color: #ff0000;
    font-size: 12px;
}

.forms .char-count{
    width: 100%;
    display: flex;
    align-items: center;
}

.extendable-radios {
    width: 100%;
    max-height: 90px; /* Collapsed state */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: max-height 0.4s ease-in-out, padding 0.3s;
}

.extendable-radios.extended {
    max-height: 600px; 
    padding-bottom: 25px;
    overflow-y: auto;
    border: 1px solid var(--accent);
}


.extendable-radios label{
    margin-bottom: 30px;
}

.extendable-radios ul{
    padding: 0 20px;
    font-family: var(--n-fam);
    font-size: 13px;
}

.disappearring-fields.show-hide{
    display: none;
}

.forms .form-group .checks {
    margin: 10px 0;
    padding: 10px 0;
}

.forms hr{
    width: 90%;
    margin: 30px 0;
    height: 1px;
    border: none;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05);
}

.forms a{
    text-decoration: none;
    color: var(--primary);
    font-family: var(--n-fam);
    margin: 10px 0;
    font-size: 14px;
}
.forms a:hover{
    text-decoration: underline;
}

.forms .form-group span label{
    cursor: pointer;
}

.form-group input[type='email'], input[type='text'], input[type='number'], input[type='password'], input[type='tel'], input[type='datetime-local'], input[type='date'], select, textarea{
    width: 90%;
    padding: 13px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
}


.form-group select{
    cursor: pointer;
}

.form-group input:focus, select:focus, textarea:focus{
    outline: none;
}

.form-group textarea{
    resize: none;
    height: 100px;
}

.row-btns{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}



/* ********************* MODALS START ********************** */

.modal{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.445);
  z-index: 100;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease-in;
  overflow-y: scroll;
}
.modal::-webkit-scrollbar{
    -webkit-appearance: none;
    width: 3px;
    background-color: #fff;
}

.modal::-webkit-scrollbar-thumb{
    appearance: none;
    background-color: var(--accent);
    border-radius: 10px;
}

.modal.active{
    opacity: 1;
    visibility: visible;
}

.modal .modal-content{
  max-width: 100%;
  width: 800px;
  background-color: #fff;
  border-top: 2px solid var(--accent);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.modal .modal-content .modal-header{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  gap: 10px;
}

.modal-header .modal-close{
    font-size: 17px;
    cursor: pointer;
}

.modal .modal-content .modal-body{
  padding: 20px 10px;
  overflow-y: scroll;
  max-height: 700px;
}


/* ********************* MODALS END ********************** */




/***** ====== ********* employees *****=======************/

.attendance-section {
    font-family: var(--n-fam);
    color: var(--text);
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin: 20px auto;
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-display {
    font-family: var(--h-fam);
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.late-marker {
  color: var(--error);
}


.gps-status {
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 0.5rem;
    color: var(--text);
    width: 90%;
    background-color: var(--warning);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(167, 167, 167, 0.493);
    color: #fff;
}
.gps-status.active{
  background-color: var(--success);
}

.main-user{
  gap: 10px;
}

.e-meta-data{
  font-size: 13px;
  color: #3b3b3b;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.attendance-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: color .3s, background 0.3s, transform 0.2s;
    color: #fff;
    font-family: var(--n-fam);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled{
  opacity: 0.8;
  filter: grayscale(100%);
}

.clock-in {
    background: var(--success);
    color: var(--text);
}

.clock-in:hover {
    filter:sepia(30%);
    transform: translateY(-2px);
}

.clock-out {
    background: var(--error);
}

.clock-out:hover {
    filter:sepia(30%);
    transform: translateY(-2px);
}

.activity-log {
    background: #f9f9f9;
    border-radius: 0.6rem;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.activity-log h4 {
    font-family: var(--h-fam);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.activity-log ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.activity-log li {
    background: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}




.other-employees{
  width: 100%;
  padding: 20px 10px;
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}

.other-employees .employee-card{
  max-width: 100%;
  width: 300px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 5px;
  padding: 20px 10px;
  background-color: #fff;
  gap: 10px;
}



.e_status{
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 10px;
}

.e_status h5{
  font-size: 16px;
}

.e_status.active{
  color: var(--success);
}

.other-employees .employee-card .attendance-buttons{
  width: 100%;
  margin-top: 30px;
}

.other-employees .employee-card .attendance-buttons .btn{
  padding: 10px 15px;
  flex: 1 1 200px;
}

.no-data-home{
  padding: 10px;
}
/***** ====== ********* employees *****=======************/




/* === Responsive === */
@media (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-100%);
    height: calc(100vh - 100px); 
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-dashboard-content {
    margin-left: 0;
    width: 100%;
  }

  .left-menu-toggle {
    display: block;
    color: var(--text);
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
  }
  .data-card .top i{
    display: none;
  }
  .data-card .top{
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  
  .chart-container{
    flex-wrap: wrap;
  }

  .dash-sect .data-cards-home{
    justify-content: center;
  }
}