/*reset table styles*/
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
  background-color: #ffffff;
}

table tbody tr:hover>td, table tbody tr:hover>th {	
  background-color: #ffffff;
}

table td {
  border: none;
}

#opted-faculty-directory {
  font-size: 16px;
  color: #576066;
}

#opted-faculty-directory a:hover {
  color: #57C0EA;
}

#opted-static-directory-table_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.opted-directory-filters {
  margin-bottom: 30px;
  background-color: #22004e;
  padding: 40px;
}
.filter-groups {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
}
.filter-group {
  width: 20%;
}
.search-group {
  width: 30%;
  position: relative;
}
.reset-group {
  width: 5%;
  text-align: center;
}

.filter-group label {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
  font-size: 14px;
}

.filter-group select,
.filter-group input {
  width: 95%;
  padding: 8px 12px;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: white;
  cursor: pointer;
}

.filter-group select option {
  background-color: #2d2d2d;
  color: white;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-bottom-color: #009FDF;
}

.search-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* DataTables Customization */
.dataTables_wrapper {
  margin-top: 20px;
}

#opted-static-directory-table {
  width: 100%;
  border-collapse: collapse;
}

table.dataTable thead tr th.sorting_asc:before,
table.dataTable thead tr th.sorting_asc:after {
  display: none;
}

#opted-static-directory-table thead th {
  background: #e5f5fc;
  color: #501d83;
  padding: 15px;
  text-align: left;
  font-weight: bold;
  border: none;
  text-transform: uppercase;
}

#opted-static-directory-table tbody td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

/* Name & Title styling */
#opted-static-directory-table .employee-name {
  color: #009fdf;
  font-size: 20px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

#opted-static-directory-table .employee-title {
  display: block;
  margin-top: 0px;
}

/* Email styling */
#opted-static-directory-table .email-link {
  color: #009fdf;
  text-decoration: none;
}

#opted-static-directory-table .email-link:hover {
  text-decoration: underline;
  color: #57C0EA;
}

/* Pagination styling */
#opted-static-directory-table_wrapper .dt-paging {
  display: flex;
  align-items: center;
  gap: 8px;
}

#opted-static-directory-table_wrapper .dt-paging .dt-paging-button {
  padding: 8px !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  color: #666 !important;
  font-size: 14px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
}

#opted-static-directory-table_wrapper .dt-paging .previous:hover,
#opted-static-directory-table_wrapper .dt-paging .next:hover {
  background-color: none !important;
}

#opted-static-directory-table_wrapper .dt-paging .dt-paging-button.current {
  background-color: #009fdf !important;
  color: white !important;
}

#opted-static-directory-table_wrapper
  .dt-paging
  .dt-paging-button:hover:not(.current) {
  background-color: #f0f0f0 !important;
  color: #333 !important;
}

#opted-static-directory-table_wrapper .dt-paging .previous,
#opted-static-directory-table_wrapper .dt-paging .next {
  font-size: 20px;
  color: #009fdf !important;
}

#opted-static-directory-table_wrapper .dt-paging .previous.disabled,
#opted-static-directory-table_wrapper .dt-paging .next.disabled {
  color: #ccc !important;
  cursor: not-allowed;
}

/* Length menu styling */
#opted-static-directory-table_wrapper .dt-length {
  color: #666;
  font-size: 14px;
  margin-right: 30px;
}

#opted-static-directory-table_wrapper .dt-length select {
  display: inline-block;
  width: auto;
  padding: 4px 12px 4px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: white;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px;
}

#opted-static-directory-table_wrapper .dt-info {
  color: #666;
  font-size: 14px;
  padding-top: 0 !important;
  margin-left: auto;
}

/* Length menu styling */
#opted-static-directory-table_wrapper select {
  padding: 4px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin: 0 8px;
}

/* Search bar styling */
.dataTables_filter {
  display: none;
}

#opted-static-directory-reset {
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
}
table.dataTable.dtr-column > tbody > tr.dtr-expanded td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.dtr-expanded th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.dtr-expanded td.control:before,
table.dataTable.dtr-column > tbody > tr.dtr-expanded th.control:before {
  display: none;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
  border: none;
}
#opted-static-directory-table tbody .dt-hasChild td {
  border: none;
}

table.dataTable>tbody>tr.child span.dtr-title {
	min-width: 100px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .opted-directory-filters {
    padding: 20px;
  }
	
  .filter-groups {
    flex-direction: column;
    gap: 25px;
  }

  .filter-group,
  .search-group,
  .reset-group {
    width: 100%;
  }
  .dataTables_wrapper .dataTables_footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {

  #opted-static-directory-table thead th,
  #opted-static-directory-table tbody td {
    padding: 10px;
  }

  #opted-faculty-directory {
    padding: 0px;
    font-size: 14px;
  }
  #opted-static-directory-table_wrapper {
     padding: 0px 10px 0px 10px;
  }
  #opted-static-directory-table .employee-name {
    font-size: 16px;
  }
}
