/* ============================================
   FEEDBACK MODAL — Admin Guru
   Styling untuk sistem masukan guru
   ============================================ */

/* === OVERLAY === */
.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

/* === MODAL BOX === */
.feedback-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: feedbackSlideIn 0.2s ease-out;
  overflow: hidden;
}

@keyframes feedbackSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === HEADER === */
.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #4f46e5;
  color: white;
}

.feedback-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.feedback-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.feedback-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* === BODY === */
.feedback-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.feedback-field select,
.feedback-field textarea {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}

.feedback-field select:focus,
.feedback-field textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.feedback-field textarea {
  min-height: 110px;
  max-height: 200px;
  line-height: 1.5;
  overflow-y: hidden;
}

/* === STATUS MESSAGE === */
.feedback-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.feedback-status-sukses {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.feedback-status-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* === FOOTER === */
.feedback-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
}

.feedback-btn-batal {
  background: white;
  border: 1.5px solid #d1d5db;
  color: #374151;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-btn-batal:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.feedback-btn-kirim {
  background: #4f46e5;
  border: none;
  color: white;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-btn-kirim:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.feedback-btn-kirim:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === TOMBOL TRIGGER DI HEADER === */
.btn-feedback-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-feedback-trigger:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .feedback-modal {
    width: 95%;
    margin: 10px;
  }

  .feedback-footer {
    flex-direction: column-reverse;
  }

  .feedback-btn-batal,
  .feedback-btn-kirim {
    width: 100%;
    text-align: center;
  }
}
