* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", serif;
  height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Left Section: Sidebar + Titles */
.navbar .child-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1; /* Takes equal space */
}

/* Center Logo */
.navbar .logo-container {
  display: flex;
  justify-content: center;
  flex: 1; /* Ensures center alignment */
}

.navbar .logo-container img {
  width: 90px; /* Adjust logo size */
  height: auto;
  position: relative;
    top: 30px;
}

/* Right Section: User Icon */
.navbar .user-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1; /* Takes equal space */
}

/* Sidebar Button */
.navbar button {
  font-size: 15px;
  padding: 5px 10px;
  background-color: white;
  border: none;
  cursor: pointer;
}
.sidebar-btn img{
  width: 25px;
  height: auto;
}

/* User Icon */
.navbar .user-container img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}


/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -270px; /* Hidden initially */
  width: 270px;
  height: 100%;
  background: white;
  box-shadow: 9px 0px 9px 0px rgba(172, 62, 109, 0.3);
  transition: left 0.3s ease-in-out;
  border-radius: 0px 50px 50px 0px;
  padding: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

/* Show sidebar when active */
.sidebar.active {
  left: 0;
}

/* Sidebar Close Button - Moved to Right */
.sidebar .close-btn {
  font-size: 24px;
  color: black;
  border: none;
  background: none;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
}

/* Sidebar Grid Layout */
.sidebar-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 22px;
}

/* Sidebar Boxes */
.sidebar-item {
  background: rgba(93, 93, 92, 1);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.sidebar-item:hover {
  background: #333;
}

/* Sidebar Icons */
.sidebar-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

/* Filter Section */
.filter-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 20px;
  
}

/* Filter Box */
.filter-box {
  display: flex;
  flex-direction: column;

}

.filter-box label {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
 
}

/* Dropdown & Input */
.filter-box select,
.filter-box input {
  width: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  text-align: left;
  outline: none;
}

select{
  color: rgba(93, 93, 92, 1);
}
select option hr{
  color: rgba(93, 93, 92, 1);
}
select option {
margin: 5px 0;
color: rgba(93, 93, 92, 1);
}

/* Search Input */
.filter-box input {
  padding-right: 30px;
}

/* Search Icon */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container i {
  position: absolute;
  right: 10px;
  color: #888;
  font-size: 14px;
}
.search-container::after {
  content: "\f002"; /* FontAwesome search icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  color: #888;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
      width: 250px;
  }
  
  .filter-container {
      flex-direction: column;
      gap: 10px;
      padding: 10px;
  }

  .filter-box select,
  .filter-box input {
      width: 100%;
  }
}



/* Layout: Two Columns */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Chart Box */
.chart-container {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 20px;
  /* height: 400px; Increased height */
}

/* Chart Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

/* Dropdown */
.dropdown {
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 5px;
}

select {
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
}

/* Chart Size */
#chart1,#chart2 ,#chart3,#chart4{
  max-width: 100%;
  height: 350px !important; /* Increased height */
}

/* #chart5 {
height: 500px; /* Reduce height of the chart container */


#dualStackedBarChart {
max-height: 500px !important; /* Reduce canvas height */
}

/* Legends */
.legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  margin-top: 5px;
}

/* Legend Colors */
.green { color: #4caf50; }
.orange { color: #ff9800; }
.red { color: #f44336; }
.blue { color: #2196f3; }
.yellow { color: #ffeb3b; }
.gray { color: #555; }

/* Responsive */
@media (max-width: 768px) {
  .dashboard-container {
      grid-template-columns: 1fr;
  }
}


#vennChart {
  width: 500px !important;
  height: 250px !important;
  margin: 10px 15px !important;
}

/* Legend Box Under Chart */
.legend-box {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 0 10px;
  font-size: 14px;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 5px;
}

.green { background-color: rgba(181, 211, 158, 1); }
.blue { background-color: rgba(191, 215, 234, 1); }
.white { border: 1px solid #000; background-color: white; }


        /* Legend box (Bottom-right corner) */
        .custom-legend {
          
          background: white;
          border: 1px solid #ccc;
          border-radius: 5px;
          padding: 5px 15px;
          display: flex;
          align-items: center;
          box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
      }

      .legend-item {
          display: flex;
          align-items: center;
          margin-right: 10px;
      }

      .legend-marker {
          width: 12px;
          height: 12px;
          display: inline-block;
          margin-right: 5px;
          border-radius: 3px;
      }

      .positive-performance { background: rgba(46, 139, 87, 1); } /* Sea Green */
      .negative-performance { background: rgba(220, 20, 60, 1); } /* Cr

           /* Legend Styling */
           .custom-legend {
            display: flex;
            justify-content: center;
            margin-top: 10px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            margin-right: 15px;
            font-size: 14px;
            font-weight: bold;
        }

        .legend-marker {
            width: 14px;
            height: 14px;
            display: inline-block;
            margin-right: 5px;
            border-radius: 3px;
        }

        .working-hours-color { background: rgba(173, 216, 230, 1); } /* Light Blue */
        .overtime-color { background: rgba(220, 20, 60, 1); } /* Red */

        #dualStackedBarChart {
          width: 100% !important;
          height: 100% !important;
      }
      .full-width{
        width: 100% !important;
        height: 100% !important;
      }