*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* start header section  */

/*  start upper header section (comapany name and logo with logout button) */
header{
    min-width: 100%;
}
.upperHeader{
    /* background-color: lightblue; */
    width: 100%;
    max-height: 65px;
    display: flex;
    justify-content: space-between;
    /* margin: 5px; */
}
.logo{
    display: flex;
    padding:1.5rem 1.5rem;
}
.fa-truck{
    font-size: 36px;
    aspect-ratio: 1;
    color: blue;
}
.companyName{
    font-size: 20px;
    padding-left: 1.2rem;
    font-weight: 500;
    margin-top: 1.8px;
}
.logutButton{
    color: red;
    padding-top: 0.8rem;
    padding:1.5rem 0.7rem;
}
#logoutBtn{
    background-color: rgb(239 68 68 );
    color: white;
    width: 6rem;
    height: 2.5rem;
    border-radius: 5px;
    border: 5px solid rgb(239 68 68);
    font-size: 1rem;
}
.fa-right-from-bracket{
    color: white;
    font-size: 14px;
}
/* end upper header section (comapany name and logo with logout button) */

/* start greeting section  */

.greeting{
    width: 100%;
    height: 4rem;
    background: linear-gradient(135deg, #000000 40%, #7c3aed 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}
.greetingUser{
    height: 2rem;
    padding-left: 2.4rem;
    font-size: 1.9rem;
    font-weight: 700;
    margin-top: 10px;
}
.activeSection{
    padding-left: 2.4rem;
    font-size: 1.9rem;
    font-weight: 700;
    text-decoration: underline;
}
/* end greeting section  */

/* end header section  */
/* start popup alert  */
/* .popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.popup.hidden {
  opacity: 0;
  pointer-events: none;
} */

/* .popup-content {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
  min-width: 250px;
  animation: popupFade 0.3s ease;
} */

/* @keyframes popupFade {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
} */

/* #popup-close {
  margin-top: 10px;
  background: #007bff;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#popup-close:hover {
  background: #0056b3;
} */

/* start of nav bar section  */

.navBar{
    width: 255px;
    max-width: 255px;
    height: 100%;
    max-height: 100vh;
    background-color: rgb(255, 255, 255);
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    
}

.sidebar{
    display: flex;
    flex-direction: column;

    margin-top: 1.3rem;
    padding-left: 1.5rem; 
}
.sidebar a{
    text-decoration: none;
    /* background-color: red; */
    width: 14rem;
    height: 3rem;
    color: rgb(55 65 81);
    font-size: 17px;
    font-weight: 400;
    margin: 4px 0;
    display: flex;
    align-items: center; 
    padding-left: 0.8rem;
    
}
.sidebar a:hover{
    background-color: rgba(88, 149, 248, 0.158);
}
.sidebar .logout{
    color: red;
}
.sidebar .logout:hover{
    background-color: rgba(248, 88, 88, 0.158);
}

.sidebar a.active {
  background-color: rgba(88, 149, 248, 0.158);
  border-right: 5px solid rgb(59 130 246);
}

.logout {
  width: 14rem;
  height: 3rem;
  text-decoration: none;
  color: rgb(243, 21, 21);
  font-size: 17px;
  font-weight: 400;
  margin-top: 20px;
  padding-left: 2rem;
  display: flex;
  align-items: center; 
  gap: 10px;
}

.logout:hover {
  background-color: rgba(241, 93, 93, 0.178);
}
.logout .active{
    background-color: rgba(209, 241, 93, 0.178);
    border-right: 5px solid rgb(243, 21, 21);
}

hr {
  border: 1px solid #ddd;
  margin-top: 20px;
}
.menu-btn {
    /* display: none; */
    visibility: hidden;
    font-size: 24px;
    color: rgb(255, 255, 255);
    background-color: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
}

  /* Content */
.content {
    margin-left: 250px; 
    padding: 20px;
}

  /* Mobile View */

/* end of navigation section  */

/* start of dashboard section   */
.container {
  height: 100vh;
  display: flex;
  width: 100%;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}
.summary{
    width: 100%;
    padding: 1rem;
}
.header{
    font-size: 1.3rem;
    /* text-decoration:underline dashed; */
}
.range{
    width: 100%;
    background-color: white;
    height: 15%;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 1.5rem;
}
.range .rangeHeader{
    margin-left:2.8rem;
    font-size: 1.2rem;
    font-weight: bold;
}
.range button{
    width: 6rem;
    height: 2rem;
    border: 1px solid black;
    background-color: transparent;
    margin-left: 3rem;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    cursor: pointer;
}
.range button.active{
    background: #007bff;
    color: white;
    border: none;
}
.overallSummary{
    width: 100%;
    height: 10%;
    background: linear-gradient(135deg, #dfedff 0%);
    margin: 1rem 0;
    border-radius: 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.overallSummary div{
    display: flex;
    font-size: bold;
}
.overallSummary div i{
    font-size: 2rem;
    font-weight: bold;
}
.overallSummary .Expired i{
    color: red;
}
.overallSummary .Expiring i{
    color: orange;
}
.overallSummary .totalDocs i{
    color: blue;
}
/* vechile summary area  */
/* start of summary section */
.vechileSummary{
    padding: 1rem;
    margin-top: 45px;
    /* position: absolute; */   
    margin-right: 1.9rem;
    width: 90%;
    min-height: 5rem;
    background-image: linear-gradient(rgb(255, 251, 235), rgb(255, 251, 235));
    border-radius: 1rem;
}
.header{
    font-size: 1.125rem;
    color: rgb(146, 64, 14);
    font-weight: 700;
}
.vechileSummary svg{
    font-size: 1.125rem;
}
.statement{
    color: rgb(120, 113, 108);
    font-weight: 400;
    font-size: 1rem;
    padding-top: 2.3rem;
}
.ExpiringList{
    border: none;
    width: 100%;
    min-height: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border-radius: 0.4rem;
    padding: 0.5rem;
    overflow-y: scroll;
}
.ExpiringList svg{
    cursor: pointer;
    font-size: 1.3rem;
}
.vechileNumber{
    font-size: 1rem;
}
.vechileExpiring{
    width: 100%;
}
.vechileExpiring{
    /* height: 2rem; */
    width: 100%;
    justify-content: space-between;
    /* margin-top: 0.5rem ; */
    margin-bottom: 0.5rem;
}
.expiringStatus{
    width: 5rem;
    min-height: 1.4rem;
    text-align: center;
    font-size: 0.75rem;
    text-align: center;
    border-radius: 1rem;
}
.expiringStatus p{
    text-align: center;
}

.expiringStatus.expiring {
    padding-top: 0.25rem;
    background-color: #ebc21d;
    color: #92400e;
}
        
.expiringStatus.expired{
    background-color: #fee2e2;
    color: #991b1b;
}
.ExpiringList p{
    height: fit-content;
    color: rgb(30, 41, 59);
    font-weight: 600;
    padding-left: 0.2rem;
}

.vehicle-header{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border:1px solid #ddd;
    justify-content: space-between;
}
.vehicle-docs{
    display:none;
    padding:15px;
    border-top:none;
}
.doc-item{
    background-color: white;
    border: 1px black solid;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.vehicle-docs.show{
    /* height: fit-content; */
    display:block;
}
.summary-chevron{
    cursor:pointer;
    transition:0.3s;
}

.summary-chevron.rotate{
    transform:rotate(180deg);
}
.empty-state{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;

    padding:40px 20px;

    border:1px dashed #d6d6d6;
    border-radius:12px;

    background:#fafafa;

    color:#666;
}

.empty-state i{
    font-size:28px;
    color:#d97706;
}

.empty-state p{
    margin:0;
    font-size:14px;
    font-weight:500;
}

/* responsive code from style.css  */


@media screen and (width>=768px){
    .popup-side{
        margin: 214px 0px 0px auto;
    }
}

@media (max-width: 768px) {
    
    .navBar {
      width: 0;
      top: 0;
      left: 0;
      height: 100%;
      border-right: 0px solid rgb(255, 255, 255);
      position: relative;
      z-index: 10;
    }
    .sidebar{
       width: 250px;   
       height: 919px;
       flex-shrink: 0;            
       background: #333;   
       color: white;
       position: fixed;             
       top: 0;
       left: 0;
       height: 100%;
       transition: transform 0.00000001s ease;
       z-index: 999;            
       transform: translateX(-100%);
       overflow-y: auto;
    }
   
    .sidebar.active {
      transform: translateX(0);
      background-color: white;
      width: 255px;
      height: 919px;
      max-height: 100vh;
      background-color: rgb(255, 255, 255);
      position: relative;
      display: flex;
      flex-direction: column;
      border-right: 1px solid #ddd;
      margin-top: 0;
    }
    hr{
        width: 0px;
        
    }
    .menu-btn {
        
      margin-bottom: 5px;
      position: absolute;
      bottom: 0;
      /* left: 1.2rem; */
      right: 0;
      cursor: pointer;
      z-index: 1000;
      visibility: visible;
    }
    .greeting{
        position: relative;
    }
    .content {
      margin-left: 0;
      padding-top: 60px;
    }
    .greetingUser{
        position: absolute;
        padding-left: 0px;
        /* top: 1.2rem;
        left: 1.2rem;
        bottom: 20px; */
        margin-left: 32px;
    }
    .companyName{
        margin-top: 2px;
    }
    .activeSection{
        padding-left: 0px;
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
    }
    .container{
        position: relative;
    }
    .main-content{
        position: absolute;
        left: 0;
        height: 100vh;
        
    }
    .grid-two-coloumn{
        position: absolute;
        left: 0;
    }
    .profileSection{
        width: 100%;
    }
    /* .header{
        h1{
            font-size: 2.3em;
        }
        p{
            font-size: 1.1rem;
        }
    } */

}
@media (max-width:578px) {
    .overallSummary{
        padding: 0 1rem;
        display: grid;
        height: 20%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}
@media (max-width:418px) {
    .Expired i{
        margin-top: 0.8rem;
    }
    .Expiring i{
        margin-top: 0.8rem;
    }
}
@media (max-width:398px) {
    .VehiclesAffected i{
        margin-top: 0.8rem;
    }

}
@media (max-width:380px) {
    .totalDocs i{
        margin-top: 0.8rem;
    }

}

@media (max-width:510px){
    .greetingUser{
        font-size: 1.5rem;
    }   
    .greetingUserName{
        margin-top: 5.5px;
    }
    .activeSection{
        font-size: 1.5rem;
    }
}

@media (max-width:461px){
    .btn-green{
        width: 180px;
    }
    .btn-blue{
        width: 180px;
    }
}

@media (max-width:396px){
    .greetingUser, .activeSection{
        font-size: 1.4rem;
    }
}
@media (max-width:360px){
    .greetingUser{
        font-size: 1.3rem;
    }

}


@media (max-width:332px){
    .greetingUserName{
        font-size: 18px;
    }

}
