/* Feedback Widget Styles */

.feedback-btn {
  background: linear-gradient(135deg, #7B1E3A, #1E90FF);
  color: #F9FAFB;
  border: none;
  box-shadow: 0 4px 12px rgba(123, 30, 58, 0.3);
  transition: all 0.3s ease;
}

.feedback-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(123, 30, 58, 0.5);
}

.feedback-btn svg {
  width: 24px;
  height: 24px;
}

.feedback-modal {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.feedback-modal.hidden {
  display: none;
}

.modal-overlay {
  backdrop-filter: blur(8px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #7B1E3A;
  color: #F9FAFB;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #1E90FF;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: #1E90FF;
  outline: none;
}

.feedback-form button[type="submit"] {
  background: #7B1E3A;
  color: #F9FAFB;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.feedback-form button[type="submit"]:hover {
  background: #1E90FF;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10B981;
  color: #F9FAFB;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1003;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #EF4444;
  color: #F9FAFB;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
}

/* File input styling */
#feedback-image::-webkit-file-upload-button {
  background-color: #7B1E3A;
  color: #F9FAFB;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}
#feedback-image::-webkit-file-upload-button:hover {
  background-color: #1E90FF;
  transform: scale(1.05);
}
#feedback-image::-moz-file-upload-button {
  background-color: #7B1E3A;
  color: #F9FAFB;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}
#feedback-image::-moz-file-upload-button:hover {
  background-color: #1E90FF;
  transform: scale(1.05);
}
/* Form input enhancements */
#feedback-form input, #feedback-form select, #feedback-form textarea {
  transition: all 0.3s ease;
}
#feedback-form input:focus, #feedback-form select:focus, #feedback-form textarea:focus {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px #1E90FF;
  outline: none;
}

/* Admin Panel Styles */

/* Filters Section */
#admin-panel-section .bg-\[#0A192F\]\/20 {
  background: rgba(10, 25, 47, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

#admin-panel-section .bg-\[#0A192F\]\/20:hover {
  background: rgba(10, 25, 47, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Filter Selects and Inputs */
#admin-panel-section select,
#admin-panel-section input[type="date"] {
  background: rgba(10, 25, 47, 0.8);
  color: #F9FAFB;
  border: 1px solid rgba(229, 231, 235, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

#admin-panel-section select:focus,
#admin-panel-section input[type="date"]:focus {
  border-color: #1E90FF;
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
  transform: scale(1.02);
}

#admin-panel-section select option {
  background: #0A192F;
  color: #F9FAFB;
}

/* Clear Filters Button */
#clear-filters {
  background: linear-gradient(135deg, #7B1E3A, #1E90FF);
  color: #F9FAFB;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(123, 30, 58, 0.3);
}

#clear-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 30, 58, 0.5);
}

/* Feedback Entries Table */
#feedback-entries {
  background: rgba(10, 25, 47, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#feedback-entries tr {
  transition: all 0.3s ease;
}

#feedback-entries tr:hover {
  background: rgba(10, 25, 47, 0.4);
  transform: scale(1.01);
}

#feedback-entries td {
  padding: 1rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.1);
  color: #F9FAFB;
}

#feedback-entries th {
  padding: 1rem;
  background: rgba(197, 165, 114, 0.1);
  color: #C5A572;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid rgba(197, 165, 114, 0.3);
}

/* Status Select in Table */
.status-select {
  background: rgba(10, 25, 47, 0.8);
  color: #F9FAFB;
  border: 1px solid rgba(229, 231, 235, 0.3);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.status-select:focus {
  border-color: #1E90FF;
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

.status-select option {
  background: #0A192F;
  color: #F9FAFB;
}

/* View Details Button */
.view-details {
  background: linear-gradient(135deg, #7B1E3A, #1E90FF);
  color: #F9FAFB;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(123, 30, 58, 0.3);
}

.view-details:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 30, 58, 0.5);
}

/* No Entries Message */
#no-entries {
  text-align: center;
  padding: 3rem;
  color: rgba(229, 231, 235, 0.6);
  font-style: italic;
}

/* Details Modal Enhancements */
#details-modal .modal-content {
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 165, 114, 0.3);
  border-radius: 16px;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#entry-details p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

#entry-details strong {
  color: #C5A572;
  font-weight: 600;
}

#comments-list p {
  background: rgba(10, 25, 47, 0.3);
  border: 1px solid rgba(229, 231, 235, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  color: #F9FAFB;
  transition: all 0.3s ease;
}

#comments-list p:hover {
  background: rgba(10, 25, 47, 0.5);
}

#new-comment {
  background: rgba(10, 25, 47, 0.8);
  color: #F9FAFB;
  border: 1px solid rgba(229, 231, 235, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  width: 100%;
  resize: vertical;
  transition: all 0.3s ease;
}

#new-comment:focus {
  border-color: #1E90FF;
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
  transform: scale(1.01);
}

#add-comment {
  background: linear-gradient(135deg, #7B1E3A, #1E90FF);
  color: #F9FAFB;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(123, 30, 58, 0.3);
}

#add-comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 30, 58, 0.5);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .feedback-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .modal-content {
    max-width: 90vw;
    margin: 10px;
    padding: 20px;
  }

  .feedback-form input,
  .feedback-form select,
  .feedback-form textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Admin Panel Mobile Adjustments */
  #admin-panel-section .grid.grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #feedback-entries {
    font-size: 0.875rem;
  }

  #feedback-entries th,
  #feedback-entries td {
    padding: 0.75rem 0.5rem;
  }

  .view-details {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  #details-modal .modal-content {
    max-width: 95vw;
    margin: 1rem;
    padding: 1.5rem;
  }
}
