
/* public/css/ai-customer-service.css */
.ai_service_section {
  position: relative;
  background-color: #121212; /* Dark background */
  padding: 60px 0 258px; /* Matches your site's padding */
}

.ai_service_section .container {
  max-width: 1440px;
  padding: 0 15px;
}

.ai_service_section .row {
  justify-content: center;
}

.ai_service_section .col-12 {
  text-align: center;
}

.ai-title {
  color: #ffd700; /* Gold title */
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.step-flow {
  margin-top: 45px;
  text-align: center;
  max-width: 600px; /* Limits width for better centering */
  margin-left: auto;
  margin-right: auto;
}

.step {
  margin-bottom: 20px;
  position: relative;
}

/* Step button styling with completion indicators */
.step-btn {
  display: inline-block;
  padding: 12px 35px;
  background-color: #8f8f8f; /* Grey background */
  color: #ffd700; /* Gold text */
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-transform: none;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

/* Style for steps that aren't completed */
.step-btn:not(.completed-step):not(.disabled)::before {
  content: "⬜"; /* Empty box indicator */
  margin-right: 10px;
  vertical-align: middle;
}

/* Style for completed steps */
.step-btn.completed-step {
  background-color: #5f5f5f; /* Darker background for completed steps */
  color: #ffd700;
  font-weight: bold;
  border: 1px solid #ffd700; /* Gold border for completed steps */
}

.step-btn.completed-step::before {
  content: "✅"; /* Checkbox indicator */
  margin-right: 10px;
  vertical-align: middle;
}

.step-btn:hover {
  background-color: #5f5f5f; /* Darker grey on hover */
}

/* Style for disabled steps */
.step-btn.disabled {
  background-color: #4d4d4d; /* Slightly darker grey for disabled state */
  cursor: not-allowed;
  opacity: 0.5;
  position: relative;
}

/* Add tooltip explaining what's needed for disabled button */
#createAgentBtn.disabled::after {
  content: "Complete Steps 1 & 2 first";
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  font-size: 12px;
  color: #ffd700;
  font-style: italic;
}

.step-arrow {
  display: block;
  width: 120px;
  height: 40px;
  margin: 10px auto;
  background-color: #ffffff; /* White arrow */
  clip-path: polygon(
    25% 0%, 
    75% 0%, 
    75% 40%, 
    100% 40%, 
    50% 100%, 
    0% 40%, 
    25% 40%
  );
  border-radius: 2px; /* Slight rounding for the corners */
}

.agent-table-container {
  margin-top: 45px;
  text-align: center;
  max-width: 1200px;
}

.agent-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1a1a1a;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.1);
}

.agent-table th, .agent-table td {
  padding: 12px 15px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-align: center;
}

.agent-table th {
  background-color: #5f5f5f;
  color: #ffd700;
  font-weight: bold;
}

.agent-table tr:nth-child(even) {
  background-color: #2d2d2d;
}

.agent-table tr:hover {
  background-color: #3d3d3d;
}

.agent-table .action-btn {
  padding: 8px 20px;
  background-color: #8f8f8f;
  color: #ffd700;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  text-transform: none;
}

.agent-table .action-btn:hover {
  background-color: #5f5f5f;
}

.user-info-container {
  margin-top: 50px;
  display: inline-block;
  width: 100%;
  max-width: 600px;
}

.info-title {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.user-info-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1a1a1a;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.1);
  margin-bottom: 20px;
}

.user-info-table th, 
.user-info-table td {
  padding: 12px 15px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-align: center;
}

.user-info-table th {
  background-color: #5f5f5f;
  color: #ffd700;
  font-weight: bold;
}

.user-info-table tr:nth-child(even) {
  background-color: #2d2d2d;
}

.user-info-table tr:hover {
  background-color: #3d3d3d;
}

.edit-btn {
  padding: 5px 15px;
  background-color: #8f8f8f;
  color: #ffd700;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
}

.edit-btn:hover {
  background-color: #5f5f5f;
}

.no-info-message {
  color: #ffffff;
  text-align: center;
  font-style: italic;
  margin: 20px 0;
}

/* Animation for highlighting fields when edit button is clicked */
@keyframes highlight-pulse {
  0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
  100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}

.highlight-field {
  animation: highlight-pulse 2s ease;
  border: 1px solid #ffd700 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ai_service_section .row {
    flex-direction: column;
  }

  .col-12, .col-md-8 {
    width: 100%;
  }

  .ai-title {
    font-size: 28px;
  }

  .step-btn {
    max-width: 100%;
    padding: 10px 25px;
  }

  .agent-table-container {
    max-width: 100%;
  }

  .agent-table th, .agent-table td {
    padding: 8px 10px;
    font-size: 14px;
  }

  .agent-table .action-btn {
    padding: 6px 15px;
    font-size: 12px;
  }
  
  .user-info-table th, 
  .user-info-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .edit-btn {
    padding: 4px 10px;
    font-size: 10px;
  }
}

/* Serial Number Modal Styles */
.serial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.serial-modal-container {
  background-color: #121212;
  border: 2px solid #ffd700;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.4s;
}

.serial-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.serial-modal-header h3 {
  margin: 0;
  color: #ffd700;
  font-size: 1.2rem;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-button:hover {
  color: #fff;
}

.serial-modal-body {
  padding: 20px;
  color: #ffffff;
}

.serial-modal-body p {
  margin-bottom: 15px;
}

.serial-modal-body input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000000;
  border: none;
  border-radius: 4px;
}

.serial-modal-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.action-btn {
  background-color: #5f5f5f;
  color: #ffd700;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.action-btn:hover {
  background-color: #8f8f8f;
}

.no-serial-section {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  text-align: center;
}

.no-serial-section p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #cccccc;
}

.pricing-link {
  color: #ffd700;
  text-decoration: underline;
  display: inline-block;
  margin-top: 5px;
  font-weight: 500;
  transition: color 0.3s;
}

.pricing-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .serial-modal-container {
    width: 95%;
  }
  
  .serial-modal-header h3 {
    font-size: 1.1rem;
  }
  
  .serial-modal-body {
    padding: 15px;
  }
}
