/* Student Evaluation Plugin Styles */

.student-evaluation-display {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.student-evaluation-display h3 {
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
  text-align: center;
}

.evaluation-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.evaluation-header {
  background: #0073aa;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.evaluation-number {
  font-weight: bold;
}

.evaluation-date {
  opacity: 0.9;
}

.evaluation-content {
  padding: 15px;
}

.evaluation-text {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin: 10px 0;
  line-height: 1.6;
  border: 1px solid #e9ecef;
  font-size: 15px;
}

.evaluation-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  text-align: left;
}

.evaluator-name {
  color: #666;
  font-size: 14px;
}

.evaluator-name strong {
  color: #333;
  font-weight: 600;
}

/* Admin Panel Styles */
.student-evaluation-container {
  margin-top: 20px;
}

.evaluation-form-section {
  background: #fff;
  padding: 25px;
  border: 1px solid #ccd0d4;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evaluations-list-section {
  background: #fff;
  padding: 25px;
  border: 1px solid #ccd0d4;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evaluation-text-preview {
  max-width: 350px;
  line-height: 1.5;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  border-left: 3px solid #0073aa;
}

.more-text {
  color: #0073aa;
  font-weight: bold;
  cursor: pointer;
}

#evaluation_text {
  width: 100%;
  max-width: 600px;
  border: 2px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  font-family: inherit;
  resize: vertical;
}

#evaluation_text:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

#student_id {
  min-width: 350px;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 4px;
}

#student_id:focus {
  border-color: #0073aa;
  outline: none;
}

.form-table th {
  width: 180px;
  font-weight: 600;
  color: #333;
}

.form-table td {
  padding: 15px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .evaluation-form-section,
  .evaluations-list-section {
    padding: 15px;
  }

  #student_id {
    min-width: 100%;
  }

  #evaluation_text {
    max-width: 100%;
  }

  .form-table th {
    width: auto;
    display: block;
    margin-bottom: 5px;
  }

  .form-table td {
    display: block;
    padding: 5px 0;
  }
}

/* Loading Animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Search Section Styles */
.search-section {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.search-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#search_student {
  flex: 1;
  min-width: 300px;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#search_student:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.search-container .button {
  padding: 8px 16px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.search-container .button:hover {
  background: #005a87;
}

.no-students {
  color: #dc3545;
  font-style: italic;
  margin-top: 10px;
}

.search-info {
  margin-top: 10px;
  padding: 8px;
  background: #e3f2fd;
  border-radius: 4px;
  border-left: 3px solid #2196f3;
}

.search-info small {
  color: #1976d2;
  font-weight: 500;
}

.search-debug {
  margin-top: 10px;
  padding: 8px;
  background: #fff3cd;
  border-radius: 4px;
  border-left: 3px solid #ffc107;
}

.search-debug small {
  color: #856404;
  font-style: italic;
}

/* Student Name Display */
.student-name {
  font-weight: 600;
  color: #333;
}

.student-email {
  color: #666;
  font-size: 0.9em;
}

/* Student Reviews Search Styles */
#student-reviews-search-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#student-reviews-search-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

#search_phone {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 15px;
}

#search_phone:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

#student-reviews-search-form button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

#student-reviews-search-form button:hover {
  background: #005a87;
}

.student-reviews-search-results {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.student-reviews-search-results h3 {
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
}

.student-reviews-search-results p {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.error {
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

.no-results {
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  font-style: italic;
}

.student-info {
  background: #e3f2fd;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  border-left: 3px solid #2196f3;
  font-size: 14px;
}

.student-info strong {
  color: #1976d2;
}

/* Responsive design for search form */
@media (max-width: 768px) {
  #student-reviews-search-form {
    padding: 15px;
  }

  #search_phone {
    max-width: 100%;
  }

  .student-reviews-search-results {
    padding: 15px;
  }
}
