/* MODERATION PANEL STYLES */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
}

/* ADMIN NAVBAR */

.admin-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, #d4a373 0%, #e8b797 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-left {
  flex: 1;
}

.nav-center {
  flex: 1;
  justify-content: center;
}

.nav-right {
  flex: 1;
  justify-content: flex-end;
}

.nav-home {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-home:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px);
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-navbar .pending-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-navbar .btn-logout {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.admin-navbar .btn-logout:hover {
  background: white;
  color: #667eea;
}

/* LOGIN SCREEN */

.login-screen {
  padding: 60px 40px;
  text-align: center;
}

.login-screen h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.login-screen p {
  color: #666;
  margin-bottom: 40px;
}

.login-back-btn {
  display: inline-block;
  margin-bottom: 30px;
  padding: 10px 20px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid #667eea;
}

.login-back-btn:hover {
  background: #d4a373;
  color: white;
  transform: translateX(-3px);
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #d4a373;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #d4a373 0%, #e8b797 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.error-message {
  margin-top: 15px;
  padding: 12px;
  background: #fee;
  color: #c33;
  border-radius: 8px;
  display: none;
}

/* ADMIN PANEL */

.admin-panel {
  display: none;
}

.pending-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-logout:hover {
  background: white;
  color: #667eea;
}

/* TABS */

.admin-tabs {
  display: flex;
  gap: 0;
  background: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  padding: 15px 30px;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
  color: #d4a373;
  border-bottom-color: #d4a373;
  background: white;
}

.tab-content {
  display: none;
  padding: 30px;
  animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* REVIEWS */

.reviews-container {
  padding: 40px;
  max-height: 70vh;
  overflow-y: auto;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.review-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}

.review-card:hover {
  border-color: #d4a373;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.review-card.approved-card {
  border-color: #4caf50;
  background: #f1f8f4;
}

.review-card.approved-card:hover {
  border-color: #45a049;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

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

.review-author {
  flex: 1;
}

.review-author h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 5px;
}

.review-meta {
  font-size: 0.9rem;
  color: #666;
}

.review-stars {
  color: #ffc107;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
}

.review-service {
  display: inline-block;
  padding: 6px 12px;
  background: #e8f4fd;
  color: #1976d2;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.review-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-approve,
.btn-reject,
.btn-delete {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-approve {
  background: #4caf50;
  color: white;
}

.btn-approve:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

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

.btn-reject:hover {
  background: #da190b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-delete {
  background: #ff9800;
  color: white;
}

.btn-delete:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-approve:disabled,
.btn-reject:disabled,
.btn-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* PORTFOLIO */

.upload-section {
  margin-bottom: 40px;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 12px;
}

.upload-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.upload-zone {
  border: 3px dashed #ccc;
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.upload-zone:hover {
  border-color: #d4a373;
  background: #f8f9ff;
}

.upload-zone.dragover {
  border-color: #d4a373;
  background: #e8f0fe;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.upload-zone p {
  font-size: 1.1rem;
  color: #666;
  margin: 10px 0;
}

.upload-zone small {
  color: #999;
  font-size: 0.9rem;
}

.upload-progress {
  margin-top: 20px;
}

.progress-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.progress-item.success {
  border-color: #4caf50;
  background: #f1f8f4;
}

.progress-item.error {
  border-color: #f44336;
  background: #fef1f0;
}

.portfolio-section {
  margin-top: 30px;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.portfolio-header h3 {
  color: #333;
  margin: 0;
}

.portfolio-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  transition: all 0.3s;
  cursor: move;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.portfolio-item-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-item-actions {
  opacity: 1;
}

.btn-delete-image {
  padding: 10px 20px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-delete-image:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

.btn-refresh {
  padding: 8px 18px;
  background: #d4a373;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-refresh:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

.empty-portfolio {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-portfolio h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* LOADING */

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* MOBILE */

@media (max-width: 768px) {
  .admin-navbar {
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
  }

  .nav-left,
  .nav-center,
  .nav-right {
    width: 100%;
    justify-content: center;
  }

  .nav-home {
    width: 100%;
    justify-content: center;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .reviews-container {
    padding: 20px;
  }

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

  .review-actions {
    flex-direction: column;
  }

  .admin-tabs {
    padding: 0;
  }
  
  .tab-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .tab-content {
    padding: 20px 15px;
  }
  
  .upload-zone {
    padding: 40px 20px;
  }
  
  .portfolio-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .portfolio-item img {
    height: 150px;
  }
  
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* Bookings Tab */

.bookings-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  padding: 0 5px;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: #d4a373;
  color: #667eea;
}

.filter-btn.active {
  background: #d4a373;
  border-color: #d4a373;
  color: white;
}

.bookings-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}

.booking-card:hover {
  border-color: #d4a373;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.booking-card.past {
  opacity: 0.7;
  border-color: #ccc;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.booking-date {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-badge {
  background: #d4a373;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.time-badge {
  background: #f0f0f0;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  color: #333;
}

.booking-status {
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.booking-status.upcoming {
  background: #e8f5e9;
  color: #2e7d32;
}

.booking-status.past {
  background: #f5f5f5;
  color: #757575;
}

.booking-details {
  margin-bottom: 20px;
}

.booking-info {
  margin-bottom: 15px;
}

.booking-info strong {
  font-size: 1.1rem;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.booking-info p {
  margin: 5px 0;
  color: #666;
}

.booking-service {
  margin: 15px 0;
}

.service-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f5d7b1, #e6c79c);
  color: #8b5a2b;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(212, 163, 115, 0.3);
}

.booking-notes {
  background: #f9f9f9;
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 15px;
  color: #666;
  font-style: italic;
}

.booking-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #ff9800;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .bookings-filters {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
  }
  
  .booking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .booking-actions {
    flex-direction: column;
  }
}

/* Reviews Filters */

.reviews-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  padding: 0 5px;
}

.reviews-filters .filter-btn {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.reviews-filters .filter-btn:hover {
  border-color: #d4a373;
  color: #667eea;
}

.reviews-filters .filter-btn.active {
  background: #d4a373;
  border-color: #d4a373;
  color: white;
}

.review-card.rejected-card {
  border-color: #f44336;
  background: #ffebee;
}

.review-card.rejected-card:hover {
  border-color: #d32f2f;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

@media (max-width: 768px) {
  .reviews-filters {
    flex-direction: column;
  }
  
  .reviews-filters .filter-btn {
    width: 100%;
  }
}

/* Booking Status Badges */

.booking-status.pending {
  background: #fff3e0;
  color: #e65100;
}

.booking-status.confirmed {
  background: #e8f5e9;
  color: #2e7d32;
}

.booking-status.cancelled {
  background: #ffebee;
  color: #c62828;
}

.booking-card.pending {
  border-color: #ff9800;
}

.booking-card.confirmed {
  border-color: #4caf50;
}

.booking-card.cancelled {
  border-color: #f44336;
  opacity: 0.7;
}

.btn-confirm {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4caf50;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-confirm:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-reject {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f44336;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-reject:hover {
  background: #da190b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-reject:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
/* Analytics Tab Styles */

.analytics-container {
  max-width: 1200px;
  margin: 0 auto;
}

.analytics-header {
  text-align: center;
  margin-bottom: 30px;
}

.analytics-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.analytics-period {
  color: #667eea;
  font-weight: 600;
  font-size: 0.95rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}

.metric-card:hover {
  border-color: #d4a373;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.metric-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.analytics-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
}

.analytics-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #333;
}

.sparkline {
  font-size: 2rem;
  letter-spacing: 2px;
  text-align: center;
  color: #667eea;
  margin: 20px 0;
  font-family: monospace;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
}

.analytics-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.top-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d4a373;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.top-details {
  flex: 1;
}

.top-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #333;
}

.top-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.top-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.top-value {
  font-weight: 700;
  color: #667eea;
  min-width: 50px;
  text-align: right;
}

.analytics-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}

.analytics-footer small {
  color: #666;
  font-size: 0.85rem;
}

.btn-refresh,
.btn-retry {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #d4a373;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-refresh:hover,
.btn-retry:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

/* Dark theme */
body.dark-theme .metric-card,
body.dark-theme .analytics-section {
  background: #3a322d;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .metric-value,
body.dark-theme .top-name,
body.dark-theme .analytics-section h3 {
  color: #f3ece4;
}

body.dark-theme .metric-label,
body.dark-theme .sparkline-labels,
body.dark-theme .analytics-footer small {
  color: #aaa;
}

body.dark-theme .analytics-footer {
  background: #2a2522;
}

body.dark-theme .top-bar {
  background: #4a4240;
}

/* Responsive */
@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .analytics-columns {
    grid-template-columns: 1fr;
  }
  
  .analytics-footer {
    flex-direction: column;
    gap: 15px;
  }
}