/* Testimoni Page Styles */

.testimoni-header {
  background: linear-gradient(135deg, #0d6efd 0%, #3b84f1 100%);
  padding: 40px 0;
  margin-bottom: 40px;
  border-radius: 15px;
}

.testimoni-header h1 {
  color: white;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.testimoni-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Search and Filter Section */
.search-filter-section {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.search-box-testimoni {
  position: relative;
  max-width: 600px;
  margin: 0 auto 20px;
}

.search-box-testimoni input {
  border-radius: 50px;
  padding: 12px 45px 12px 20px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.search-box-testimoni input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-box-testimoni button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 25px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: #0d6efd;
  color: white;
  border-color: #3b84f1;
  transform: translateY(-2px);
}

/* Add Testimoni Button */
.btn-add-testimoni {
  background: linear-gradient(135deg, #0d6efd 0%, #3b84f1 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-add-testimoni:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white;
}

/* Testimoni Cards */
.testimoni-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #667eea;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimoni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #e0e0e0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar .avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.user-details h5 {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
}

.user-details small {
  color: #999;
  display: block;
  font-size: 0.85rem;
}

/* Rating Stars */
.rating-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.rating-stars i {
  margin-right: 3px;
}

/* Testimoni Content */
.testimoni-title {
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.testimoni-content {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Action Buttons */
.testimoni-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.btn-action {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-edit {
  background: #17a2b8;
  color: white;
  border: none;
}

.btn-edit:hover {
  background: #138496;
  transform: translateY(-2px);
  color: white;
}

.btn-delete {
  background: #dc3545;
  color: white;
  border: none;
}

.btn-delete:hover {
  background: #c82333;
  transform: translateY(-2px);
  color: white;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 10px;
}

.status-pending {
  background: #ffc107;
  color: white;
}

.status-approved {
  background: #28a745;
  color: white;
}

.status-rejected {
  background: #dc3545;
  color: white;
}

/* Modal Styles */
.modal-content {
  border-radius: 15px;
  border: none;
}

.modal-header {
  background: linear-gradient(135deg, #0d6efd 0%, #3b84f1 100%);
  color: white;
  border-radius: 15px 15px 0 0;
  border: none;
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 30px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Rating Input */
.rating-input {
  display: flex;
  gap: 10px;
  flex-direction: row-reverse;
  justify-content: flex-end;
  font-size: 2rem;
}

.rating-input input[type="radio"] {
  display: none;
}

.rating-input label {
  cursor: pointer;
  color: #ddd;
  transition: color 0.3s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
  color: #ffc107;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 5rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #999;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-state p {
  color: #bbb;
}

/* Alert Login Required */
.alert-login {
  background: linear-gradient(135deg, #0d6efd 0%, #1679ab 100%);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.alert-login a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimoni-header {
    padding: 30px 15px;
  }

  .testimoni-header h1 {
    font-size: 1.8rem;
  }

  .search-filter-section {
    padding: 20px 15px;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  .testimoni-card {
    padding: 20px;
  }

  .user-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-avatar {
    margin-bottom: 10px;
  }

  .testimoni-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    text-align: center;
  }

  .modal-body {
    padding: 20px;
  }

  .rating-input {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .testimoni-header h1 {
    font-size: 1.5rem;
  }

  .testimoni-header p {
    font-size: 0.95rem;
  }

  .testimoni-title {
    font-size: 1.1rem;
  }

  .testimoni-content {
    font-size: 0.95rem;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .user-details h5 {
    font-size: 1rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimoni-card {
  animation: fadeInUp 0.5s ease;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
