/* Faculty Dashboard Styles */

.faculty-dashboard-filters {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  min-height: 50px;
}

.faculty-dashboard-filter {
  display: flex;
  flex-direction: column;
}

.faculty-dashboard-filter label {
  margin-bottom: 5px;
  font-size: 14px;
}

.faculty-dashboard-select {
  padding: 8px;
  font-size: 15px;
  border: 1px solid #D6D9DD;
  border-radius: 4px;
  min-width: 200px;
}

.select-wrapper {
  position: relative;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.faculty-dashboard-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 0.8s linear infinite;
  z-index: 1000;
}

#faculty-dashboard-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  position: relative;
}

#faculty-dashboard-thead {
  background-color: #f8f8f8;
}

#faculty-dashboard-table tbody {
  min-height: 100px;
  position: relative;
  font-size: 15px;
}

#faculty-dashboard-header-row th {
  padding: 12px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid #D6D9DD;
}

#faculty-dashboard-table tbody tr {
  border-bottom: 1px solid #eee;
}

#faculty-dashboard-table tbody tr:hover {
  background-color: #fafafa;
}

#faculty-dashboard-table td {
  vertical-align: top;
  padding: 12px;
}

.faculty-dashboard-table-title {
  margin: 1px 0px 3px 0px;
}

.ari-dashboard-button {
  display: inline-flex;
  align-items: center;
  background-color: #f0f0f0;
  color: #5a5a5a;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ari-dashboard-button:hover {
  background-color: #e9e9e9;
  color: #282828;
}

.ari-dashboard-hyperlink {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ari-dashboard-hyperlink:hover {
  color: #00a0d2;
  text-decoration: underline;
}

.ari-dashboard-button .notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  margin-right: 8px;
  padding: 0 4px;
}

.ari-dashboard-button .notification-count:empty {
  display: none;
}

.ari-dashboard-button .notification-count.zero-count {
  background-color: #4CAF50;
}

.ari-dashboard-button .notification-count.student-count {
  background-color: #5a5a5a;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  #faculty-dashboard-table {
    font-size: 14px;
  }
}

.faculty-dashboard-table-row .faculty-dashboard-table-row-links {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition: max-height 0.7s ease, opacity 0.5s ease;
}

.faculty-dashboard-table-row:hover .faculty-dashboard-table-row-links {
  max-height: 50px; 
  opacity: 1;
}

#faculty-dashboard-table th:nth-child(n+2),
#faculty-dashboard-table td:nth-child(n+2) {
    text-align: center;
}

.faculty-dashboard-reset {
  height: 41px;
  width: 41px;
  box-sizing: border-box;
  background-color: #f0f0f0;
  border: 1px solid #D6D9DD;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
}

.faculty-dashboard-reset svg {
  width: 20px;
  height: 20px;
}

.faculty-dashboard-reset:hover {
  background-color: #efefef;
}

.faculty-dashboard-reset:focus {
  background-color: #D6D9DD;
  color: white;
}

.faculty-dashboard-reset:focus svg {
  stroke: white;
}

.reset-filter {
  align-self: flex-end;
}