/* AI Web Generator - Bootstrap-inspired styles */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.5;
}

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

/* Buttons and Pills */
.btn {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-outline-primary {
  background-color: transparent;
  border-color: #0d6efd;
  color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

.btn-outline-primary.active {
  background-color: #0d6efd;
  color: white;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 600;
}

/* Service Pills Layout */
.service-pills {
  text-align: center;
  margin: 40px 0;
}

.pills-container {
  display: inline-block;
  max-width: 600px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: white;
  transition: border-color 0.2s ease-in-out;
}

.form-control:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

/* Layout Sections */
.main-content {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.form-section {
  flex: 2;
}

.tips-section {
  flex: 1;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  height: fit-content;
}

.tips-section h4 {
  margin-top: 0;
  color: #495057;
}

.tips-section ul {
  margin: 0;
  padding-left: 20px;
}

.tips-section li {
  margin-bottom: 8px;
  color: #6c757d;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 20px;
}

.top-bar h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.top-bar .nav-links {
  display: flex;
  gap: 15px;
}

/* Two Panel Layout */
.panel-layout {
  display: flex;
  gap: 20px;
  height: calc(100vh - 120px);
}

.chatbot-panel {
  flex: 0 0 300px;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-panel {
  flex: 1;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Chatbot */
.chat-header {
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.message {
  margin-bottom: 15px;
}

.message.user {
  text-align: right;
}

.message.bot {
  text-align: left;
}

.message-bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
}

.message.user .message-bubble {
  background-color: #0d6efd;
  color: white;
}

.message.bot .message-bubble {
  background-color: #e9ecef;
  color: #495057;
}

.chat-input {
  padding: 15px;
  border-top: 1px solid #dee2e6;
}

.chat-input textarea {
  resize: none;
  height: 60px;
}

/* Progress Animation */
.progress-container {
  text-align: center;
  padding: 60px 20px;
}

.progress-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e9ecef;
  border-top: 6px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  margin: 20px auto;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #0d6efd;
  border-radius: 4px;
  animation: fillProgress 20s linear;
  transform: translateX(-100%);
}

@keyframes fillProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0%); }
}

.progress-text {
  font-size: 18px;
  color: #6c757d;
  margin: 20px 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 50px auto;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #dee2e6;
}

.modal-header h4 {
  margin: 0;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
  text-align: right;
}

.modal-footer .btn + .btn {
  margin-left: 10px;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
}

.close:hover {
  opacity: 0.7;
}

/* Sample Generated Page Preview */
.sample-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.sample-page h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.sample-page .subtitle {
  color: #7f8c8d;
  font-size: 18px;
  margin-bottom: 30px;
}

.sample-page .description {
  color: #34495e;
  margin-bottom: 30px;
  line-height: 1.6;
}

.sample-page .contact-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.sample-page .cta-buttons {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .panel-layout {
    flex-direction: column;
    height: auto;
  }
  
  .chatbot-panel {
    flex: none;
    height: 300px;
  }
  
  .preview-panel {
    flex: none;
    height: 500px;
  }
  
  .top-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .top-bar .nav-links {
    justify-content: center;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none; }