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

body {
  display: flex;
  flex-direction: column; 
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;

}
/* .sidebar {
  
  width: 250px;
  background-color: #333;
  color: white;
  padding-top: 20px;
  left: -250px; 
  top: 0;
} */
.sidebar {
  position: absolute;
  top: 0;
  left: -250px; 
  width: 250px;
  min-height: 763px;
  height: auto;
  background-color: #2c3e50;
  color: white;
  transition: left 0.3s ease;
  padding: 20px;
  z-index: 100; 
  /* margin-top: 40px; */

}

.sidebar-header {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}


.sidebar-menu {
  list-style: none;
  /* overflow-y: auto;
  height: 100%;
  */
}

.sidebar-menu li {
  margin: 10px 0;
}

.sidebar-menu li a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: 18px;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
  
}

.sidebar-menu li a img {
  margin-right: 10px; /* Adjust space between icon and text */
  width: 20px; /* Adjust icon size */
  height: 20px; /* Adjust icon size */
}

.sidebar-menu li a:hover {
  background-color: #34495e;
}

/* 
.topbar.sidebar-open {
  transform: translateX(5px);  
  transition: transform 0.3s ease-in-out;
}

.footer.sidebar-open {
  transform: translateX(5px);  
  transition: transform 0.3s ease-in-out;
} */

 
/* Styles for submenus */

.has-submenu {
position: relative; 
}

.has-submenu > a {
  cursor: pointer;
  position: relative;
  display: block;
  padding: 10px 0;
}
.submenu {
  list-style: none;
  border-radius: 5px;
  background-color: #34495e;
  /* padding-left: 20px; */
  /* display: none; */
   /* Hide submenus by default */
  /* position: absolute; */
  /* right:0; */
  /* left: 200px;  */
  /* Position submenu to the right of the parent container */
  /* top: 0;  */
  /* Position it at the same level as the parent link */
  /* width: 200px; Set a fixed width for the submenu */
  /* background-color: #34495e;
  z-index: 110;
  overflow-x: auto;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); */
  /* max-height: none; No scrolling */
  /* pointer-events: auto; */

}
.submenu {
  display: none;
}

.submenu li a {
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.submenu li a:hover {
  background-color: #2c3e50;
}

/* Style the down arrow icon */
.arrow-icon {
  font-size: 18px; /* Adjust the size */
  color: #5a5a5a; /* Subtle color for the arrow */
  margin-left: 8px; /* Space between the text and the arrow */
  transition: transform 0.3s ease; /* Smooth transition for the rotation */
  vertical-align: middle; /* Align vertically with the text */
}
/* Rotate the arrow when the submenu is open */
.has-submenu.open .arrow-icon {
  transform: rotate(180deg); /* Flip the arrow when the submenu is open */
}

/* Optional: Add hover effect to the entire link */

.has-submenu > a:hover .arrow-icon {
  color: white; /* Change arrow color on hover */
}


/* Show the submenu when its parent is active */
.has-submenu.open .submenu {
  display: block;
}


/* Make sure submenu appears on hover */

/* Blinking animation */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
  }
  
  /* Apply blinking effect to all li elements */
  .sidebar-menu li img {
  transition: opacity 0.3s ease-in-out; /* Smooth transition for opacity */
  }
  
  /* When any li is hovered, apply blinking effect */
  .sidebar-menu li:hover img {
  animation: blink 1s infinite; /* Apply blinking effect */
  }
  

/* Content area */
.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-left: 0;
  padding: 20px;
  
}


 .topbar {
   display: flex;
 /* justify-content: space-between; */
  align-items: center;
  background-color: #34495e;
  color: white;
  padding: 15px 20px;
}
.topbar_left{
  width: 85%;   
  display:flex; 
  text-align: left;
}
.topbar_right{
  width: 15%;   

}


.toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  margin-right: 5px;
}

.company-info {
  display: flex;
  align-items: center; 
  width: 400;
  border-color: white;
  border: 5px;
}

/* .company-logo {
  margin-right: 10px; 
}  */
.company-logo {
  width: 40px;
  height:40px; 
  margin-left: 0px;
  margin-right: 10px; 
} 
.company-logo.hidden {
  display: none;
}

.topbar h1 {
  font-size: 22px;
}

/* Main content area */
.main-section {
  flex-grow: 1;
  padding: 30px;
  background-color: #ecf0f1;
  border-radius: 10px;
  overflow-x: hidden; /* Prevent horizontal overflow */
  overflow-y: auto; /* Allow vertical scrolling */
  /* margin-top: 0px;
  margin-left: 0px;
  margin-bottom: 0px;
  margin-right: 0px; */
}

.container {
  /* margin-top: 0px;
  margin-left: 0px;
  margin-bottom: 0px;
  margin-right: 0px; */


  /* flex-grow: 1; */
  /* display: grid; */

  /* display: flex;
  justify-content: space-between;
  flex-wrap: wrap; */
  /* gap: 10px; */
 
 
 /* grid-template-columns: 1fr 1fr 1fr 1fr;  /* 3 equal columns */
 /* grid-template-rows: auto; /* Rows will automatically adjust based on content */

  /* gap: 20px;   */ 
  padding: 30px;
  width: 100%;
  background-color: #ecf0f1;
  border-radius: 10px;
  overflow-x: hidden; /* Prevent horizontal overflow */
  overflow-y: auto; /* Allow vertical scrolling */
}
/* .container > div {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */
.div-row-1{
  width: 350px;
  height: 100px;
}

.div-row-2{
  width: 350px;
  height: auto;
}

.div-row-3{
  width: 350px;
  height: auto;
}
.footer p {
  margin-top: 5px;
  margin-bottom: 0px;
  color: white;
}

.footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 5px 0;
  width: 100%;
  /* margin-left: 20px; */
  min-width: 20px;
  max-height: 80px;
}

.footer a {
  color: rgb(123, 171, 213);
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}



/* Sidebar toggle for mobile */
@media (max-width: 1024px) {
  /* For tablets and medium screens, switch to 3 columns */
  /* .container {
    grid-template-columns: 1fr 1fr 1fr;
  } */
}
@media (max-width: 768px) {
  /* For smaller screens, switch to 2 columns */
  /* .container {
    grid-template-columns: 1fr 1fr;
  } */


  .sidebar {
    left: -250px;
  }

  .content {
    margin-left: 0;
  }

  .topbar {
    justify-content: space-between;
  }

  .toggle-btn {
    display: block;
  }
}


@media (max-width: 480px) {
  /* For very small screens (phones), switch to 1 column */
  /* .container {
    grid-template-columns: 1fr;
  } */

  .main-section {
    padding: 2px;
  }
  .container {
    padding: 2px;
  }
  
  /* .topbar.sidebar-open {
    transform: translateX(-80px);  
    transition: transform 0.3s ease-in-out;
  }
  
  .footer.sidebar-open {
    transform: translateX(-80px);  
    transition: transform 0.3s ease-in-out;
  }
  .topbar_left .sidebar-open {
    background-color: #34495e;
    width: auto;
  } */
/*  
  .sidebar {
    left: -190px;
    width:190px;
    
  } */
   
  .footer p{
    font-size: 8px;
  }
  .sidebar {
    left: -250px;
    /* width:190px; */
    
  }

  .content {
    margin-left: 0;
  }
 
  .topbar {
    display: flex;
    flex-direction: column;  
    margin-left: 2px;
    padding: 5px 10px;
 
    
  }
  .topbar_left {
    display: flex;
    /* justify-content: space-between; */
    width: 100%;
    justify-content: flex-start; 
    text-align: left;
 

  }
  .topbar_right {
    display: flex;
    /* justify-content: space-between; */
    width: 100%;
    justify-content: flex-start; 
    text-align: left;
}
.topbar_right span,.topbar_right strong{
  font-size: 10px;
}
.topbar h3{
  font-size: 17px;
  margin-right: 0px;
}
.user-info {
  flex-direction: row;
  justify-content: space-between;
}
.datetime {
  font-size: 12px;
}
.company-logo {
  width: 30px;
  height: 30px;
}

  .toggle-btn {
    display: block;
  }



 




/* 
 .topbar_left{
   width: 80%;   
   display:flex; 
   text-align: left;
 }
 .topbar_right{
   width: 20%;   
 
 }
 
 .toggle-btn {
   font-size: 30px;
   margin-right: 0px;
 } */



  .submenu {
    display: none;  /* Hidden by default */
  }
  .has-submenu.active .submenu {
    display: block; /* Show the submenu when the parent has 'active' class */
  }

  .submenu li a {
    pointer-events: auto; /* Ensure the links are clickable */
  }


  
}



/* When sidebar is visible */
.sidebar.open {
  left: 0; /* Bring the sidebar on screen */
}
.topbar.sidebar-open{
  margin-left: 250px;

}
.footer.sidebar-open{
  margin-left: 270px;
}








