/* styles.css */

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
}

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

h1 {
  text-align: center;
  color: #334155;
  margin-bottom: 20px;
  font-size: 24px;
}

h2 {
  color: #334155;
  margin-bottom: 10px;
  font-size: 20px;
}

h3 {
  color: #334155;
  margin-bottom: 8px;
  font-size: 16px;
}

p {
  margin-bottom: 15px;
  font-size: 14px;
}

/* Tab navigation */
.tab-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.tab-button {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  color: #64748b;
}

.tab-button:hover {
  background-color: #e2e8f0;
}

.tab-button.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Generator content */
.generator-content {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-panel, .preview-panel {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 15px;
  overflow: auto;
  height: 500px;
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Form elements */
.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #475569;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Compact form layout */
.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

.checkbox-group label {
  margin-bottom: 0;
}

.form-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

/* Preview panel */
.preview-content {
  height: 100%;
  overflow: auto;
}

.document-preview {
  white-space: pre-wrap;
  font-family: Cambria, Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px;
  background-color: #f8fafc;
  border-radius: 5px;
  margin-top: 10px;
}

.highlighted-text {
  background-color: #fef08a;
  transition: background-color 0.5s ease;
  padding: 2px 0;
}

/* Navigation buttons */
.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.nav-button {
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.prev-button {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.prev-button:hover {
  background-color: #e2e8f0;
}

.next-button {
  background-color: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
}

.next-button:hover {
  background-color: #2563eb;
}

.copy-button {
  background-color: #4f46e5;
  color: white;
  border: none;
}

.copy-button:hover {
  background-color: #4338ca;
}

.download-button {
  background-color: #2563eb;
  color: white;
  border: none;
}

.download-button:hover {
  background-color: #1d4ed8;
}

.consult-button {
  background-color: #059669;
  color: white;
  border: none;
}

.consult-button:hover {
  background-color: #047857;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.disabled:hover {
  background-color: #f1f5f9;
}

/* Review tab styles */
.review-section {
  margin-bottom: 15px;
  padding: 12px;
  background-color: #f8fafc;
  border-radius: 5px;
  font-size: 13px;
}

.review-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-label {
  font-weight: 600;
  width: 120px;
  color: #475569;
}

.review-value {
  flex: 1;
  min-width: 200px;
}

.review-warning, .review-info {
  width: 100%;
  margin-top: 4px;
  padding: 4px;
  border-radius: 3px;
  font-size: 12px;
}

.review-warning {
  background-color: #fef2f2;
  color: #b91c1c;
  border-left: 3px solid #ef4444;
}

.review-info {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-left: 3px solid #3b82f6;
}

.warning .review-value {
  color: #b91c1c;
}

.consultation-cta {
  margin-top: 15px;
  padding: 12px;
  background-color: #f0f9ff;
  border-radius: 5px;
  text-align: center;
}

.consult-button-container {
  margin-top: 8px;
}

.consult-button-container a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #059669;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.consult-button-container a:hover {
  background-color: #047857;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .generator-content {
    flex-direction: column;
  }
  
  .form-panel, .preview-panel {
    width: 100%;
    height: auto;
    max-height: 400px;
  }
  
  .navigation-buttons {
    flex-wrap: wrap;
  }
  
  .nav-button {
    flex: 1;
    min-width: 140px;
    margin-bottom: 10px;
  }
}
