/* top.php */
/* Basic styles for navigation */
.header-top {
    background-color: #ffffff;
    padding: 10px 0;
  }
  .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .logo img {
    width: 110px;
  }
  .menu {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
  }
  #nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }
  
  #nav li {
    position: relative;
    margin: 0 5px;
  }
  
  #nav li a {
    color: #2d3748;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
  }
  
  #nav li a:hover {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
  }
  
  /* Dropdown styles */
  .dropdown {
    position: relative;
  }
  
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 0;
    z-index: 101;
  }
  
  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  .dropdown-content a {
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  .dropdown-content a:hover {
    background: #f7fafc;
    color: #4299e1;
    transform: translateX(5px);
  }
  
  /* Mobile menu toggle */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    z-index: 100;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2d3748;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  /* Active state for menu toggle */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Responsive styles */
  @media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
  
    .menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 300px;
      height: 100vh;
      background: white;
      padding: 80px 20px 20px;
      transition: all 0.4s ease;
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
      z-index: 99;
    }
  
    .menu.show {
      right: 0;
    }
  
    #nav {
      flex-direction: column;
      align-items: flex-start;
    }
  
    #nav li {
      width: 100%;
      min-width: 200px;
      margin: 5px 0;
    }
  
    #nav li a {
      padding: 15px;
      width: 100%;
    }
  
    .dropdown-content {
      position: static;
      transform: none;
      box-shadow: none;
      opacity: 1;
      visibility: visible;
      display: none;
      max-width: 200px;
      padding-left: 120px;
    }
  
    .dropdown:hover .dropdown-content {
      display: block;
    }
  
    .dropdown-content a {
      padding: 10px 15px;
      min-width: 170px
    }
  }
  /* end top.php */
  

/* Sidebar container */
#sidebar {
    width: 275px;
    height: 100vh; /* Full viewport height */
    background: #ffffff;
    color: black;
    transition: all 0.3s;
    left: 0;
    top: 0;
    padding-left: 0px;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}
#sidebar.active {
    left: -270px;
}

/* Content area transition */
#content {
    transition: margin-left 0.3s;
}

/* Sidebar collapse button */
#sidebarCollapse {
    background: #343a40;
    color: white;
    border: none;
    position: fixed;
    top: 15px;
    left: 10px;
    z-index: 100;
    cursor: pointer;
}

/* Sidebar link styling */
.sidebar-link {
    color: black;
    text-decoration: none;
    padding: 10px;
    display: block;
}
.sidebar-link:hover {
    background-color: #495057;
}

/* Headings */
h5, h4 {
    color: #adb5bd;
}

/* Fixed header */
.fixed-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1030; /* Bootstrap's z-index for navbar */
}

/* Main content */
.main-content {
    transition: margin-left 0.3s;
    min-height: 570px;
}
.main-content.collapsed {
    margin-left: 0;
}

/* Sidebar styling */
.sidebar {
    border-right: 1px solid #999;
    min-height: 750px;
}

/* Form styling */
.form-title {
    background-color: #f8f9fa;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}
/* .form-container {
    max-width: 500px;
    margin: auto;
} */
.form-control:focus {
    box-shadow: none;
    border-color: #007bff;
}
.table-header a {
    color: #000000;
    text-decoration: none;
}
.table-header a:hover {
    text-decoration: underline;
}
.pagination {
    justify-content: center;
}
.more-detail {
    font-size: 24px;
}