/* ============================== */
/*  NOTES SECTION       */
/* ============================== */
.announcement-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: auto;
}

/* Header */
.announcement-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.announcement-header i {
  font-size: 1.4rem;
  color: red;
}

.announcement-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: red;
  margin: 0;
  padding: 0;
}

/* List */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 2rem;
}

/* Item */
.announcement-item p {
  font-size: 0.865rem;
  color: #374151;
  line-height: 1.5;
}

.announcement-item ul {
  margin-top: 8px;
  padding-left: 18px;
}

.announcement-item ul li {
  font-size: 0.865rem;
  color: #374151;
  margin-bottom: 6px;
  list-style: disc;
}

/* Date badge */
.announcement-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #017c39;
  background: #e6f4ec;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 0px;
}

/* Footer */
.announcement-footer {
  margin-top: 28px;
  text-align: center;
}

.announcement-footer a {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.announcement-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .announcement-card {
    padding: 16px;
  }
}

/* ============================== */
/*  TABLE CONTROLS SECTION       */
/* ============================== */
/* Search container */
.search-container {
  position: relative;
  width: 100%;
  max-width: 380px;
}

/* Search icon */
.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #9ca3af;
  pointer-events: none;
}

/* Input */
.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  font-size: 0.85rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #111827;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Focus state */
.search-input:focus {
  border-color: #017c39;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(1, 124, 57, 0.15);
}

/* Placeholder */
.search-input::placeholder {
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
  }
}

.table-controls {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

/* Group */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Labels */
.control-group label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

/* Select */
.control-group select {
  min-width: 160px;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #111827;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.control-group select:focus {
  border-color: #017c39;
  box-shadow: 0 0 0 2px rgba(1, 124, 57, 0.15);
}

/* Sort button */
.sort-button {
  height: 38px;
  width: 38px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.sort-button i {
  font-size: 0.9rem;
  color: #374151;
}

.sort-button:hover {
  background: #f9fafb;
}

.sort-button:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 640px) {
  .table-controls {
    gap: 12px;
  }

  .control-group select {
    min-width: 140px;
  }
}

/* ============================== */
/*  TABLE SECTION       */
/* ============================== */
/* Container */
.table-container {
  width: 100%;
  overflow-x: auto;
}

/* Table */
.applicants-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.applicants-table thead {
  background-color: #f9fafb;
}

.applicants-table th {
  text-align: left;
  font-size: 0.7rem;
  padding: 10px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  white-space: nowrap; /* ⬅️ key line */
}

/* Sort icon */
.sort-icon {
  margin-left: 8px;
  font-size: 11px;
  color: #9ca3af;
}

/* Body */
.applicants-table td {
  padding: 16px 12px;
  font-size: 0.8rem;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* Name cell */
.name-cell {
  display: flex;
  align-items: center;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e6f4ec;
  color: #017c39;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
}

/* Name text */
.name-text {
  font-weight: 500;
}

/* Hover effect */
.applicants-table tbody tr:hover {
  background-color: #f3f4f6;
}

.waitlist {
  max-height: 900px;
  overflow: hidden;
  overflow-y: auto;

  .applicants-table th {
    position: sticky;
    background-color: #f9fafb;
    top: 0px;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .waitlist {
    max-height: 500px;
    overflow: hidden;
  }
  .announcement-header i {
    font-size: 1rem;
  }

  .announcement-header h4 {
    font-size: 1rem;
  }

  .avatar {
    display: none;
  }
}

/* ============================== */
/*  RATING SECTION       */
/* ============================== */
/* Open button */
.open-feedback-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #017c39;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Overlay */
.feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal */
.feedback-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px;
  width: 90%;
  max-width: 520px;
  position: relative;
  animation: popup 0.25s ease;
}

/* Animation */
@keyframes popup {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #6b7280;
}

/* Form styles (same as before) */
.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.form-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 18px;
}

.rating-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.star {
  font-size: 1.6rem;
  color: #d1d5db;
  cursor: pointer;
}

.star.active {
  color: #facc15;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.feedback-form input,
.feedback-form textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #017c39;
  box-shadow: 0 0 0 2px rgba(1, 124, 57, 0.15);
  outline: none;
}

/* Submit */
.submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #017c39;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
