/* ZOHO Properties Plugin Styles - Updated for Professional Design */

/* Import Bootstrap CSS */
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/* ===== PROPERTIES GRID STYLES ===== */

.zoho-properties-container {
  padding: 40px 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
  width: 100%;
}

.properties-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 2.5rem;
}

.properties-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 40px;
  font-size: 1.2rem;
}

/* Property Card Styles */
.property-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.property-card-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
}

.property-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 0px solid #e9ecef;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.no-image {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 48px;
}

.no-image p {
  margin: 10px 0 0 0;
  font-size: 14px;
}

.property-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-status.active {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.property-status.pending {
  background: linear-gradient(45deg, #f39c12, #e67e22);
}

.property-status.sold {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.property-status.rented {
  background: linear-gradient(45deg, #3498db, #2980b9);
}

/* Property Content Styles */
.property-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-address {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
}

.property-address a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.property-address a:hover {
  color: #3498db;
}

.property-price-section {
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.price-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.price-label {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 14px;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: #27ae60;
}

.price-arv {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arv-label {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 14px;
}

.arv-amount {
  font-size: 18px;
  font-weight: 600;
  color: #f39c12;
}

.property-details {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bed-bath,
.square-feet {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #7f8c8d;
}

.bed-bath i,
.square-feet i {
  margin-right: 8px;
  color: #3498db;
  width: 16px;
}

.property-description {
  margin-bottom: 15px;
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
  margin-top: 5px;
}

.property-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.property-actions .btn {
  flex: 1;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-details-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border: none;
  color: #fff;
}

.view-details-btn:hover {
  background: linear-gradient(45deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.contact-btn {
  border: 2px solid #3498db;
  color: #3498db;
  background: transparent;
}

.contact-btn:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Pagination Styles */
.pagination {
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-link {
  color: #3498db;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  margin: 2px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.page-link:hover {
  background-color: #3498db;
  border-color: #3498db;
  color: #fff;
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background-color: #3498db;
  border-color: #3498db;
  color: #fff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  transform: none;
}

/* ===== SINGLE PROPERTY PAGE STYLES ===== */

.single-property-page {
  background: #fff;
  min-height: 100vh;
}

/* Modern Header */
.property-header-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.property-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fff;
}

.property-location {
  font-size: 1.2rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.property-location i {
  margin-right: 8px;
}

.property-price-modern {
  text-align: right;
}

.property-price-modern .price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

/* Main Property Image */
.main-property-image-section {
  margin: 30px 0;
}

.main-property-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Property Details Modern */
.property-details-modern {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-item i {
  font-size: 24px;
  color: #3498db;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.detail-content {
  flex: 1;
}

.detail-label {
  display: block;
  font-size: 12px;
  color: #7f8c8d;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-value {
  display: block;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

/* Property Description Modern */
.property-description-modern {
  margin-bottom: 30px;
}

.property-description-modern h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.property-description-modern p {
  color: #7f8c8d;
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
}

/* Important Notes Modern */
.important-notes-modern {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.important-notes-modern h3 {
  color: #856404;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.important-notes-modern p {
  color: #856404;
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
}

/* Property Summary Modern */
.property-summary-modern {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  position: sticky;
  top: 20px;
}

.property-summary-modern h4 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #3498db;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 14px;
}

.summary-value {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.price-highlight {
  color: #27ae60 !important;
  font-size: 18px !important;
}

.arv-highlight {
  color: #f39c12 !important;
  font-size: 16px !important;
}

.status-active {
  color: #27ae60 !important;
}

.status-pending {
  color: #f39c12 !important;
}

.status-sold {
  color: #e74c3c !important;
}

.status-rented {
  color: #3498db !important;
}

/* Quick Contact Form */
.quick-contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.quick-contact-form h4 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  transition: border-color 0.3s ease;
  font-size: 14px;
}

.contact-form .form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contact-form .btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  background: linear-gradient(45deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Gallery Modal */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.modal-header .close {
  color: #fff;
  opacity: 0.8;
  font-size: 24px;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 30px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
  .properties-title {
    font-size: 2.2rem;
  }

  .property-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 992px) {
  .properties-title {
    font-size: 2rem;
  }

  .property-content {
    padding: 20px;
  }

  .property-address {
    font-size: 18px;
  }

  .price-amount {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .zoho-properties-container {
    padding: 30px 15px;
  }

  .properties-title {
    font-size: 1.8rem;
  }

  .properties-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .property-card {
    margin-bottom: 20px;
  }

  .property-content {
    padding: 15px;
  }

  .property-address {
    font-size: 16px;
  }

  .price-amount {
    font-size: 18px;
  }

  .property-image {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .zoho-properties-container {
    padding: 20px 10px;
  }

  .properties-title {
    font-size: 1.6rem;
  }

  .properties-subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .property-image {
    height: 160px;
  }

  .property-content {
    padding: 12px;
  }

  .property-address {
    font-size: 15px;
  }

  .price-amount {
    font-size: 16px;
  }
}

/* ===== LOADING STATES ===== */

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ALERT STYLES ===== */

.alert {
  border-radius: 8px;
  border: none;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

/* Modern Single Property Page Styles */
.single-property-page-modern {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #2d3748;
}

/* Hero Section */
.property-hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.2rem;
}

.hero-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 3rem 0 2rem;
  color: white;
}

.hero-content {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-location {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
}

.hero-location i {
  margin-right: 0.5rem;
  color: #fbbf24;
}

.hero-price-card {
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.price-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #718096;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
}

/* Property Details Section */
.property-details-section {
  margin: 3rem 0;
}

.detail-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.card-icon i {
  font-size: 1.5rem;
  color: white;
}

.card-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #718096;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: #c6f6d5;
  color: #22543d;
}

.status-not-interested {
  background: #fed7d7;
  color: #742a2a;
}

/* Description and Notes Sections */
.description-section,
.notes-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.section-header i {
  color: #667eea;
  margin-right: 0.5rem;
}

.description-content,
.notes-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
}

/* Summary Card */
.summary-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: sticky;
  top: 2rem;
}

.summary-card .card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.summary-card .card-header h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.summary-card .card-header i {
  margin-right: 0.5rem;
}

.summary-card .card-body {
  padding: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.highlight {
  background: #f7fafc;
  margin: 0 -2rem;
  padding: 1rem 2rem;
}

.summary-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  text-align: right;
}

.price-highlight {
  color: #38a169;
  font-size: 1.2rem;
  font-weight: 700;
}

.arv-highlight {
  color: #3182ce;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Back Button */
.back-button-section {
  margin-top: 2rem;
  text-align: center;
}

.back-button-section .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-button-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.back-button-section .btn i {
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .property-hero-section {
    height: 50vh;
    min-height: 300px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-location {
    font-size: 1rem;
  }

  .hero-price-card {
    margin-top: 1rem;
  }

  .detail-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
  }

  .card-icon i {
    font-size: 1.2rem;
  }

  .summary-card {
    position: static;
    margin-top: 2rem;
  }

  .description-section,
  .notes-section {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .detail-card {
    flex-direction: column;
    text-align: center;
  }

  .card-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .summary-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .summary-value {
    text-align: center;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-card,
.description-section,
.notes-section,
.summary-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus States */
.detail-card:focus-within {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Print Styles */
@media print {
  .property-hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-overlay {
    position: static;
    background: none;
    color: #2d3748;
  }

  .back-button-section {
    display: none;
  }
}

/* ===== ADMIN STAGE FILTER STYLES ===== */

.stage-filter-container {
  margin-bottom: 20px;
}

.stage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  min-height: 40px;
  padding: 10px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  background-color: #f8fafc;
}

.stage-item {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  cursor: move;
}

.stage-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.stage-name {
  margin-right: 8px;
}

.remove-stage {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.remove-stage:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.stage-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-selector select {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background-color: white;
  transition: all 0.3s ease;
}

.stage-selector select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.stage-selector select option {
  padding: 8px;
}

/* Drag and drop styles */
.stage-item.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

.stage-list.drag-over {
  background-color: #e6fffa;
  border-color: #38b2ac;
}

/* Empty state */
.stage-list:empty::before {
  content: "No stages selected. Use the dropdown below to add stages.";
  color: #718096;
  font-style: italic;
  display: block;
  text-align: center;
  padding: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .stage-list {
    flex-direction: column;
  }

  .stage-item {
    width: 100%;
    justify-content: space-between;
  }

  .stage-selector {
    flex-direction: column;
  }
}

/* ===== END ADMIN STAGE FILTER STYLES ===== */

/* ===== PROFESSIONAL STAGE FILTER TABLE STYLES ===== */

.stage-filter-container {
  margin-top: 15px;
}

.stages-table-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.stages-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.stages-table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e5e7eb;
}

.stages-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stages-table th.drag-column {
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

.stages-table th.order-column {
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

.stages-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
  cursor: grab;
}

.stages-table tbody tr:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stages-table tbody tr:active {
  cursor: grabbing;
}

.stages-table tbody tr.dragging {
  opacity: 0.7;
  transform: rotate(2deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.stages-table td {
  padding: 16px 12px;
  vertical-align: middle;
  color: #1f2937;
  font-weight: 500;
}

.stages-table td.drag-handle-cell {
  text-align: center;
  width: 50px;
}

.stages-table td.stage-name-cell {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
}

.stages-table td.order-cell {
  text-align: center;
  color: #6b7280;
  font-weight: 600;
  font-size: 13px;
  background: #f9fafb;
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 40px;
  display: inline-block;
}

.drag-handle {
  color: #9ca3af;
  font-size: 14px;
  cursor: grab;
  user-select: none;
  transition: color 0.2s ease;
  padding: 4px;
  border-radius: 4px;
}

.drag-handle:hover {
  color: #6b7280;
  background: #f3f4f6;
}

/* No filters option styling */
.no-filters-option {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.no-filters-option label {
  margin: 0 !important;
}

.no-filters-option input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #3b82f6;
}

.no-filters-option span {
  font-size: 15px !important;
}

/* Empty state */
.stages-table tbody:empty::after {
  content: "No stages selected. Use the dashboard to add stages.";
  display: block;
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 40px 20px;
  font-size: 14px;
  background: #f9fafb;
}

/* Responsive design for stage table */
@media (max-width: 768px) {
  .stages-table-wrapper {
    border-radius: 8px;
  }

  .stages-table th,
  .stages-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .stages-table th.drag-column,
  .stages-table th.order-column {
    font-size: 11px;
  }

  .stages-table td.order-cell {
    font-size: 12px;
    padding: 6px 8px;
  }
}
