/* Reset default styles */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: hidden; /* Prevent vertical overflow */
}


* {
  margin: 0;
  padding: 4px;
  box-sizing: border-box;
  text-decoration: none !important;
  font-family: Arial, sans-serif;
}



/* Main container */
.main_container {
  display: flex;
  padding: 0 !important;
  height: 100vh;
  overflow: hidden; /* Add this line */
}

/* Main content area */
/* Main content area */
.main {
  flex: 1; 

  background-color: white;
  font-family: Arial, sans-serif;
  width: 100%;
  height: 100% !important;
  overflow-y: auto;

  /* Remove this line */
  overflow-x: hidden; /* Add this line */
}

/* Sidebar */
.sidebar {
  background-color: #f9f9f9;

  color: rgb(252, 185, 0);
  max-height: 100% !important;
  width: 270px; /* Adjust width as needed */
  transition: all 0.5s;
  

  position: relative;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle box shadow */
  border-radius: 0px; /* Rounded corners */
}

/* Top section of the sidebar */
.top_section {
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

/* Logo styling */
.logo {
  font-size: 1.5rem;
  margin-left: 20px;
  font-weight: bold;
  color: black; /* Dark gray text color */
}

/* Sidebar links */
.link {
  display: flex;
  background-color: #f9f9f9;
  color: black;
  padding: 10px 15px;
  gap: 15px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 10px;

  background: rgb(255, 225, 115); /* Darker orange gradient */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(5px); /* Move the link to the right on hover */
  border-bottom: 3px solid #ececec; /* Add bottom border for separation */
}

/* Sidebar link hover effect */
.link:hover {
  background: rgb(255, 225, 115); /* Darker orange gradient */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(5px); /* Move the link to the right on hover */
}

/* Active link styling */
.active {
  background: rgb(255, 235, 145); /* Darker orange gradient */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(5px); /* Move the link to the right on hover */
}

/* Icon and link text styling */
.icon,
.link_text {
  font-size: 1.2rem;
}

/* Bottom section of the sidebar */
.bottom_section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background-color: #f9f9f9;
  color: black;
  text-align: center;
  font-weight: bold;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px; /* Rounded bottom corners */
}

/* Media queries for responsive design */

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .logo {
    font-size: 1.5rem;
    margin-left: 20px;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .logo {
    font-size: 2rem;
    margin-left: 20px;
  }
}

/* Slide-in Animation */
@keyframes slideIn {
  from {
    transform: translateX(-250px);
  }
  to {
    transform: translateX(0);
  }
}

.sidebar {
  animation: slideIn 0.3s forwards; /* Play the animation */
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.link {
  animation: fadeIn 0.3s forwards; /* Play the animation */
}

/* Hover Effects */
.link:hover {
  background-color: rgb(255, 225, 115);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Expand/Collapse Animation */
@keyframes expandSidebar {
  from {
    width: 80px;
  }
  to {
    width: 250px;
  }
}

.sidebar.active {
  animation: expandSidebar 0.3s forwards; /* Play the animation */
}

/* Icon Scale Animation */
@keyframes scaleIcon {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}

.icon:hover {
  animation: scaleIcon 0.3s forwards; /* Play the animation */
}

/* Menu Item Expand Animation */
@keyframes slideInSubmenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link:hover .submenu {
  display: block;
  animation: slideInSubmenu 0.3s forwards; /* Play the animation */
}

.table-container {
  max-width: 100%;
  overflow-x: auto; 
  
/*height: 95%;*/
max-height: 700px;
  padding-top: 20px;
}


