/* styles.css */
:root {
  --primary-color: #0077b6;
  --primary-dark: #002240;
  --primary-light: #e1f5fe;
  --secondary-color: #009688;
  --secondary-light: #e0f2f1;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #f5f7fa;
  --white: #ffffff;
  --gray-light: #f1f1f1;
  --gray: #dddddd;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.login-btn {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--border-radius);
}

.login-btn:hover {
  background-color: var(--primary-dark);
}

.login-btn.active {
  background-color: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero section */
.hero {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Page hero */
.page-hero {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 15px;
}

.page-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* Features section */
.features-section {
  padding: 80px 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-link {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.feature-link:hover {
  color: var(--primary-dark);
}

.feature-link::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.feature-link:hover::after {
  margin-left: 8px;
}

/* Benefits section */
.benefits-section {
  padding: 80px 0;
  background-color: var(--gray-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.benefit-card h3 {
  margin-bottom: 10px;
}

/* Services section */
.services-section {
  padding: 80px 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .btn {
  margin-top: auto;
}

/* Service comparison */
.service-comparison {
  padding: 80px 0;
  background-color: var(--gray-light);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 30px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--gray);
}

.comparison-table th {
  background-color: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-cta {
  text-align: center;
  margin-top: 30px;
}

/* Testimonials section */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  margin-bottom: 20px;
  font-style: italic;
  color: var(--text-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.testimonial-author p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* CTA section */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.cta-content p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.made-in-valencia {
  margin: 15px 0;
  font-weight: 500;
}

.support-email {
  margin: 15px 0;
}

.support-email a {
  color: var(--white);
  text-decoration: underline;
}

.footer-logo {
  margin-top: 20px;
}

.footer-logo img {
  height: 40px;
}

/* Login page */
.login-section {
  padding: 80px 0;
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
}

.login-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  margin-bottom: 10px;
}

.login-header p {
  color: var(--text-light);
}

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

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

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.password-options {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--primary-color);
}

.login-options {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
}

.login-options a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Tool pages */
.tool-hero {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.tool-hero h1 {
  color: var(--white);
  margin-bottom: 15px;
}

.tool-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.tool-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.tool-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.tool-sidebar {
  background-color: var(--gray-light);
  padding: 30px;
}

.tool-nav h3 {
  margin-bottom: 20px;
}

.tool-nav ul li {
  margin-bottom: 10px;
}

.tool-nav ul li a {
  display: block;
  padding: 10px;
  border-radius: var(--border-radius);
  color: var(--text-color);
  transition: var(--transition);
}

.tool-nav ul li a:hover,
.tool-nav ul li a.active {
  background-color: var(--white);
  color: var(--primary-color);
}

.ai-chat {
  margin-top: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-chat h3 {
  margin-bottom: 15px;
  font-size: 1.125rem;
}

.ai-chat-messages {
  height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding: 10px;
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
}

.ai-message,
.user-message {
  padding: 10px 15px;
  border-radius: 18px;
  margin-bottom: 10px;
  max-width: 85%;
}

.ai-message {
  background-color: var(--white);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.user-message {
  background-color: var(--primary-light);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.typing::after {
  content: '...';
  animation: typing 1.5s infinite;
}

@keyframes typing {
  0%, 100% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

#ai-chat-form {
  display: flex;
  gap: 10px;
}

#ai-chat-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--gray);
  border-radius: 20px;
  font-size: 0.875rem;
}

#ai-chat-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

#ai-chat-form button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#ai-chat-form button img {
  width: 18px;
  height: 18px;
}

.tool-main {
  padding: 30px;
  position: relative;
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: block;
}

.tool-panel h2 {
  margin-bottom: 15px;
}

.tool-panel > p {
  margin-bottom: 30px;
  color: var(--text-light);
}

.tool-form {
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 8px;
  width: auto;
}

.form-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.analysis-results {
  margin-top: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.analysis-results h3 {
  margin-bottom: 20px;
}

.results-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.market-ranking {
  margin-bottom: 30px;
}

.market-ranking h4 {
  margin-bottom: 20px;
}

.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.market-card {
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.market-rank {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.market-info {
  flex: 1;
}

.market-info h5 {
  margin-bottom: 10px;
}

.market-stats {
  display: flex;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.stat-value {
  font-weight: 600;
  color: var(--primary-color);
}

.chart-container {
  margin: 30px 0;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-container h4 {
  margin-bottom: 20px;
}

.market-insights {
  margin-top: 30px;
}

.market-insights h4 {
  margin-bottom: 20px;
}

.insight-card {
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
}

.insight-icon {
  font-size: 1.5rem;
}

.insight-content h5 {
  margin-bottom: 10px;
}

.insight-content p {
  margin-bottom: 0;
}

.coming-soon {
  text-align: center;
  padding: 50px 0;
  color: var(--text-light);
}

/* Document generator */
.document-generator {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.document-sidebar {
  background-color: var(--gray-light);
  padding: 30px;
}

.document-types {
  margin-bottom: 30px;
}

.document-types li {
  margin-bottom: 10px;
}

.document-types a {
  display: block;
  padding: 10px;
  border-radius: var(--border-radius);
  color: var(--text-color);
  transition: var(--transition);
}

.document-types a:hover,
.document-types a.active {
  background-color: var(--white);
  color: var(--primary-color);
}

.document-templates {
  margin-bottom: 30px;
}

.document-templates h3 {
  margin-bottom: 15px;
}

.document-templates select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.saved-documents h3 {
  margin-bottom: 15px;
}

.saved-documents ul li {
  margin-bottom: 10px;
}

.saved-documents ul li a {
  display: block;
  padding: 10px;
  border-radius: var(--border-radius);
  color: var(--text-color);
  transition: var(--transition);
}

.saved-documents ul li a:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.document-main {
  padding: 30px;
}

.document-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.document-actions {
  display: flex;
  gap: 10px;
}

.document-form {
  max-width: 100%;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray);
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section h3 {
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.products-container {
  margin-bottom: 20px;
}

.product-item {
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.product-total {
  display: flex;
  flex-direction: column;
}

.calculated-value {
  padding: 12px 15px;
  background-color: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-weight: 600;
}

.remove-product {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--error);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

.totals-section {
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
}

.totals-row:last-child {
  border-bottom: none;
}

.totals-row input {
  width: 150px;
  padding: 8px 12px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  text-align: right;
}

.totals-row.total {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-dark);
}

/* Chatbot widget */
#chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#chatbot-toggle:hover {
  background-color: var(--primary-dark);
}

#chatbot-toggle img {
  width: 30px;
  height: 30px;
}

#chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#chatbot-header {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-header h3 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

#chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

#chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

#chatbot-form {
  display: flex;
  padding: 10px;
  border-top: 1px solid var(--gray);
}

#chatbot-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--gray);
  border-radius: 20px;
  font-size: 0.875rem;
}

#chatbot-form button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#chatbot-form button img {
  width: 18px;
  height: 18px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .tool-container,
  .document-generator {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .features-grid,
  .benefits-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .market-cards {
    grid-template-columns: 1fr;
  }
  
  .market-stats {
    flex-wrap: wrap;
  }
  
  .insight-card {
    flex-direction: column;
  }
  
  #chatbot-container {
    width: 300px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .login-container {
    padding: 30px 20px;
  }
  
  .document-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .results-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* Animation for typing text */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: currentColor;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

.animate-text {
  min-height: 1.2em;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }
