/* Genesis Services - Admin Panel Styles */

/* Admin Review Grid */
.tab-content {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.tab-content::-webkit-scrollbar {
  width: 8px;
}

.tab-content::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Admin Review Cards */
.admin-modal .card {
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.admin-modal .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-color: #cbd5e0;
}

/* Compact button group */
.btn-group .btn {
  font-size: 0.85rem;
}

/* Admin Login Modal */
.admin-login-modal .modal-dialog {
  max-width: 400px;
}

.admin-login-form {
  padding: 24px;
}

.login-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Admin Panel Modal */
.admin-modal {
  z-index: 10000;
}

.admin-dialog {
  max-width: 1000px;
  width: 90%;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-logout {
  padding: 8px 16px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s;
}

.btn-logout:hover {
  background: #c82333;
}

.close-admin-modal {
  font-size: 28px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  line-height: 1;
  transition: all 0.3s;
  user-select: none;
}

.close-admin-modal:hover {
  color: #333;
  transform: scale(1.1);
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #eee;
  padding: 0 24px;
}

.admin-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
  margin-bottom: -2px;
}

.admin-tab:hover {
  color: #333;
  background: #f9f9f9;
}

.admin-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.admin-tab span {
  display: inline-block;
  background: #eee;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 6px;
}

.admin-tab.active span {
  background: #667eea;
  color: white;
}

/* Admin Content */
.admin-content {
  max-height: 600px;
  overflow-y: auto;
}

.admin-tab-content {
  display: none;
  padding: 24px;
}

.admin-tab-content.active {
  display: block;
}

.admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-admin-reviews {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 16px;
}

/* Admin Review Cards */
.admin-review-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s;
}

.admin-review-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-review-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #333;
}

.admin-review-email {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #666;
}

.admin-review-date {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.admin-review-comment {
  color: #555;
  line-height: 1.6;
  margin: 12px 0;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
}

.admin-review-photo {
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  margin: 12px 0;
  display: block;
  background: #f5f5f5;
  padding: 8px;
}

/* Admin Actions */
.admin-review-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  margin-top: 12px;
}

.admin-review-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.btn-approve {
  background: #28a745;
  color: white;
}

.btn-approve:hover {
  background: #218838;
  transform: translateY(-1px);
}

.btn-reject {
  background: #dc3545;
  color: white;
}

.btn-reject:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-pending {
  background: #ffc107;
  color: #333;
}

.btn-pending:hover {
  background: #e0a800;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-dialog {
    width: 95%;
    margin: 10px;
  }

  .admin-tabs {
    flex-direction: column;
    gap: 0;
  }

  .admin-tab {
    border-bottom: 1px solid #eee;
    border-left: 3px solid transparent;
    margin-bottom: 0;
  }

  .admin-tab.active {
    border-bottom-color: #eee;
    border-left-color: #667eea;
  }

  .admin-content {
    max-height: 500px;
  }

  .admin-review-header {
    flex-direction: column;
    gap: 12px;
  }

  .admin-review-actions {
    flex-wrap: wrap;
  }

  .admin-review-actions button {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .admin-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .admin-review-photo {
    max-height: 250px;
  }
}

/* Additional responsive fixes for very small screens */
@media (max-width: 480px) {
  .admin-dialog {
    width: 98%;
    margin: 5px auto;
  }

  .admin-content {
    max-height: 400px;
  }

  .admin-review-card {
    padding: 12px;
  }

  .admin-review-photo {
    max-height: 200px;
  }

  .admin-review-actions button {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Modal overlay fix */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  margin: 40px auto;
  animation: modalSlideIn 0.3s ease-out;
  pointer-events: auto;
}

.modal-content-box {
  pointer-events: auto;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Admin Notifications */
.admin-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
  font-size: 15px;
}

.admin-notification-success {
  background: #28a745;
  color: white;
}

.admin-notification-error {
  background: #dc3545;
  color: white;
}

.admin-notification-info {
  background: #17a2b8;
  color: white;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-left: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.notification-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .admin-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
