/* Simple, clean styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

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

/* Header */
.header {
  background: white;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.header h1 {
  color: #333;
  font-size: 24px;
}

/* Flow Section */
.flow-section {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.flow-section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 18px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-item {
  border: 1px solid #e2e3e5;
  border-radius: 8px;
  padding: 0;
  background: #f8f9fa;
}

.flow-content {
  padding: 16px;
}

.flow-content h3 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.flow-content p {
  color: #666;
  font-size: 14px;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.future-text {
  color: #999 !important;
  font-style: italic;
  font-weight: 500;
}

/* Unified Message Container */
.message-container {
  display: none; /* Hidden by default, shown when there's a message */
}

.message-container.show {
  display: block;
}

.unified-message {
  background: #f8f9fa;
  border: 1px solid #e2e3e5;
  color: #333;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.unified-message strong {
  font-weight: 600;
}

.unified-message ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.unified-message li {
  margin: 3px 0;
}

/* Message states */
.unified-message.success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.unified-message.error {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.unified-message.info {
  background: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* Button Groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Action Buttons */
.action-btn {
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
  text-align: center;
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Button Color Variants */
.profiles-btn {
  background: #6366f1;
  color: white;
}

.profiles-btn:hover:not(:disabled) {
  background: #4f46e5;
}

.leads-btn {
  background: #ec4899;
  color: white;
}

.leads-btn:hover:not(:disabled) {
  background: #db2777;
}

.stats-btn {
  background: #6b7280;
  color: white;
}

.stats-btn:hover:not(:disabled) {
  background: #4b5563;
}

.update-btn {
  background: #10b981;
  color: white;
}

.update-btn:hover:not(:disabled) {
  background: #059669;
}

.report-btn {
  background: #f59e0b;
  color: white;
}

.report-btn:hover:not(:disabled) {
  background: #d97706;
}

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

.marketing-btn:hover:not(:disabled) {
  background: #218838;
}

.massive-push-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 25px;
  min-width: 200px;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.massive-push-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ee5a24, #c23616);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Availability Display */
.availability-display {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.availability-display h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.location-count {
  color: #666;
  font-weight: normal;
  font-size: 14px;
}

.availability-table-container {
  overflow-x: auto;
  border: 1px solid #eee;
  border-radius: 4px;
}

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

.availability-table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
}

.availability-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #dee2e6;
}

.availability-table tr:hover {
  background: #f8f9fa;
}

.availability-percent {
  font-weight: 600;
  text-align: center;
}

.high-availability {
  color: #28a745;
}

.medium-availability {
  color: #ffc107;
}

.low-availability {
  color: #dc3545;
}

.empty-state {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
}

/* Action Buttons Container */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Push to Klaviyo Button Styles */
.push-to-klaviyo-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.push-to-klaviyo-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.push-to-klaviyo-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.push-to-klaviyo-btn.pending {
  background-color: #ffc107;
  color: #212529;
}

.push-to-klaviyo-btn.success {
  background-color: #28a745;
}

.push-to-klaviyo-btn.error {
  background-color: #dc3545;
}

/* Last Push Info Styles */
.last-push-info {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  padding: 4px 0;
}

.profiles-push-info,
.leads-push-info {
  margin-bottom: 6px;
  padding: 2px 0;
}

.profiles-push-info:last-child,
.leads-push-info:last-child {
  margin-bottom: 0;
}

.last-push-info strong {
  color: #333;
  font-weight: 600;
  font-size: 11px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .flow-section {
    padding: 15px;
  }

  .flow-content {
    padding: 12px;
  }

  .flow-content h3 {
    font-size: 15px;
  }

  .flow-content p {
    font-size: 13px;
  }

  .button-group {
    flex-direction: column;
    gap: 8px;
  }

  .action-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    min-width: auto;
  }

  .unified-message {
    padding: 12px 15px;
    font-size: 13px;
  }

  .header h1 {
    font-size: 20px;
  }

  .flow-section h2 {
    font-size: 16px;
  }

  /* Mobile Action Buttons */
  .action-buttons {
    gap: 6px;
  }

  .push-to-klaviyo-btn {
    font-size: 11px;
    padding: 5px 10px;
    min-height: 28px;
  }

  .last-push-info {
    font-size: 10px;
  }

  .last-push-info strong {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .flow-section {
    padding: 12px;
  }

  .flow-content {
    padding: 10px;
  }

  .action-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .unified-message {
    padding: 10px 12px;
    font-size: 12px;
  }
}
