/* General Styles */
:root{
    --primary-color:#2c3e50;
    --secondory-color:#EDE8F5;
    --secondory-color:#34495e;
    --secondory-color:hsl(213, 28%, 41%);
    /* --secondory-color:#7499c2; */
    --text-color:hsl(80, 50%, 60%); 
    --secondory-color:hsl(80, 50%, 39%);
  
  }
/* Body Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2); /* Soft gradient background */
  position: relative;
  overflow: hidden;
}

/* Add a pseudo-element for a decorative overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none; /* Ensure it doesn't block interactions */
  z-index: 1;
}

/* Main Container */
main {
  position: relative;
  z-index: 2; /* Ensure content is above the pseudo-element */
  /* max-width: 1200px; */
  /* max-width: fit-content; */
  width: 100%;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px); /* Blur effect for a frosted glass look */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}

/* Add a decorative pseudo-element for main */
main::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  border-radius: 20px;
  z-index: -1; /* Place it behind the main content */
}

/* Add another pseudo-element for a shadow effect */
main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  border-radius: 15px;
  z-index: -1; /* Place it behind the main content */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
    
    /* Sidebar (Left Navbar) */
    header {
      width: 250px;
      background-color: #2c3e50;
      background-color: var(--primary-color);
      /* background-color: red; */
      /* color: var(--secondory-color); */
      color: white;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--text-color);
  
  }
  
  header h1 {
      font-weight: bold;
      font-size: 1rem;
      margin-bottom: 2rem;
      margin-top: 2rem;

    }
    
    nav ul {
      list-style: none;
      padding: 0;
      width: 100%;
    }
    
    nav ul li {
      margin-bottom: 1rem;
    }
    
    nav ul li a {
      color: white;
      text-decoration: none;
      font-size: 1rem;
      display: block;
      padding: 0.5rem;
      border-radius: 5px;
      transition: background-color 0.3s;
    }
    
    nav ul li a:hover {
      background-color: var(--secondory-color);
    }
     
    /* Main Content */
    main {
      display: flex;
      flex-direction: row;
      flex: 1/2;
      padding: 2rem;
      margin: 1rem;
      border-radius: 10px;
      /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    }

  
  #hamburger {
    position: absolute;
    top: 1rem;
    left: 1rem;
    cursor: pointer;
    display: none;
  }
  
  
  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.item {
    width: 35px;
    color: rgb(176, 125, 125);
    background-color: white;
    height: 2px;
    margin-bottom: 0.4rem;
    
}

header {
    position: relative;
    /* width: 140vw;  */
    height: 100vh;
}

.burger {
    position: absolute;
    display: none;
    right: 6%;
    margin-top: 1rem;
    flex-direction: column;
    cursor: pointer;
}
header img{
  height: 60px;
  width: 60px;
  margin-top: -2rem;
  margin-bottom: -1rem;
  border-radius: 50%;
  border: 1px solid white;

}
@media (max-width: 768px) {
  /* General Styles */
  header{
    height: auto;
  }
  header nav{
    z-index: 10;
  }
  header img{
    margin-top: -20px;
  }
  table{
    margin-left: -1rem;;
  }
  body {
    flex-direction: column;
  }
#add-employee-form{
  width: 83vw;
}

  /* Header Styles */
  header {
    width: 100vw;
    padding: 1rem 0;
  }

  header h1 {
    margin-top: 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
  }

  /* Navigation Styles */
  header nav {
    position: absolute;
    top: 4rem; /* Adjust based on your design */
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    pointer-events: none; /* Prevents clicks when hidden */
  }

  header nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  nav ul li {
    width: 100%;
    margin: 1rem 0;
    margin-left: -5rem;
  }

  nav ul li a {
    margin-left: 3rem;
    text-align: left;
    width: auto; /* Makes sure it doesn't take full width */
    display: inline-block; /* Prevents full width expansion */
    padding: 10px 15px; /* Adds spacing */
  }

  /* Burger Menu Styles */
  .burger {
    display: flex;
  }

  /* Active Navigation Styles */
  header nav.active {
    margin-top: 2rem;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all; /* Allow interaction when visible */
  }
  .navbar-links{
    margin-top: 4rem;
  }

  /* Main Content Styles */
  main {
    width: 90vw;
    margin: 1rem 0;
  }
main h2{
  font-size: 0.6rem; 
}
  /* Table Styles */
   table {
    display: block;
    margin-left: -2.9rem;
    max-width: 150vw;
  }
  main{
    width: 100%;
  }

  /* Button Styles */
  button {
    margin-top: 0.4rem;
    font-size: 0.6rem;
  }
}

table{
  display: block;
  padding: 10px;
}

#add-employee-form button {
  padding: 0.8rem 1.5rem;
  /* background-color: var(--primary-color); */
  box-shadow: 2px 2px 5px rgb(137, 122, 122);
  outline: none;
  background-color: var(--secondory-color);
  color: rgb(246, 242, 242);
  border: 1px solid;
  border-radius: 5px;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  width: 90%;
  margin-left: 0.8rem; 
}

table button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#employee-list tr:hover {
  background-color: #edeaea;
  transition: background-color 0.3s ease;
}
#employee-list table {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#add-employee-form {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  padding: 10px;
}

header{
  position: static;
  bottom: 0;
}

/* popup screen css */
.popup-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-screen.active {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.popup-screen.active .popup-box {
  transform: scale(1);
}

.popup-box img {
  margin-bottom: 15px;
}

.popup-box p {
  margin-bottom: 20px;
  font-size: 18px;
}

.popup-box .btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.popup-box .btn:hover {
  background-color: #45a049;
}

.confirmation-popup .buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.confirmation-popup .confirm-btn {
  background-color: #f44336;
}

.confirmation-popup .confirm-btn:hover {
  background-color: #d32f2f;
}
