/* 
 * Main CSS for AI-Powered Medical Documentation System
 * Updated to match the original site design with exact color matching
 */

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --light-color: #f9fafb;
  --dark-color: #111827;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 0.5rem;
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

section {
  padding: 5rem 0;
}

section h2 {
  text-align: center;
}

section > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 2rem;
  margin: 0;
}

nav ul li a {
  color: var(--gray-900);
  font-weight: 500;
  transition: var(--transition);
}

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

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-900);
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.5s, height 0.5s, opacity 0.5s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

.btn i {
  margin-right: 0.5rem;
}

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

.btn.primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn.primary:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.btn.secondary {
  color: var(--primary-color);
  background-color: transparent;
  border-color: var(--primary-color);
}

.btn.secondary:hover {
  color: var(--white);
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn.secondary:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(to right, #eff6ff, #dbeafe);
  text-align: center;
}

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

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--gray-700);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ===== APPROACH SECTION ===== */
.approach {
  background-color: var(--white);
}

.iteration-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.iteration-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.iteration-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.iteration-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  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;
}

.iteration-card h3 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.iteration-card p {
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-bottom: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.feature-list li i {
  color: var(--success-color);
  margin-right: 0.5rem;
}

/* ===== FEATURES SECTION ===== */
.features {
  background-color: var(--gray-100);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  margin-bottom: 0;
}

/* ===== DEMO SECTION ===== */
.demo {
  background-color: var(--white);
}

.demo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.demo-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  padding: 2rem;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.demo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.demo-card h3 {
  margin-bottom: 1rem;
}

.demo-card p {
  margin-bottom: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--gray-100);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark-color);
  color: var(--gray-400);
  padding-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: var(--gray-400);
  transition: var(--transition);
}

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

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

.footer-bottom p {
  margin-bottom: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    display: none;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    padding: 0.75rem 1.5rem;
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .iteration-cards,
  .demo-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .iteration-card,
  .demo-card {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.iteration-card,
.feature-card,
.demo-card {
  animation: fadeIn 0.8s ease-out forwards;
}

.iteration-card:nth-child(2) {
  animation-delay: 0.2s;
}

.iteration-card:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(2),
.demo-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3),
.demo-card:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.6s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.8s;
}

.feature-card:nth-child(6) {
  animation-delay: 1s;
}

/* ===== DEMO MODAL STYLES ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 300px;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.info {
  background-color: var(--info-color);
}

.notification.success {
  background-color: var(--success-color);
}

.notification.warning {
  background-color: var(--warning-color);
}

.notification.error {
  background-color: var(--danger-color);
}

/* Demo modal styles */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.demo-modal.show {
  opacity: 1;
  visibility: visible;
}

.demo-modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.demo-modal.show .demo-modal-content {
  transform: scale(1);
}

.demo-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.demo-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.demo-modal-close:hover {
  color: var(--danger-color);
}

.demo-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* Demo content styles */
.demo-section h4 {
  margin-bottom: 1rem;
}

.demo-section p {
  margin-bottom: 1.5rem;
}

/* Transcriber demo styles */
.demo-recorder {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  text-align: center;
}

.recording-status {
  margin-top: 1rem;
  font-style: italic;
  color: var(--gray-700);
}

.record-btn.recording {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.transcription-output {
  padding: 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
}

.placeholder-text {
  color: var(--gray-500);
  font-style: italic;
}

/* Assistant demo styles */
.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-300);
  margin-bottom: 1.5rem;
}

.demo-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.demo-tab:hover {
  color: var(--primary-color);
}

.demo-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.demo-tab-content {
  display: none;
}

.demo-tab-content.active {
  display: block;
}

.enhanced-text {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: help;
}

.tooltip {
  position: fixed;
  background-color: var(--dark-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  max-width: 300px;
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px) translateX(-50%);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--dark-color);
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
}

.code-list {
  margin: 0;
  padding: 0;
}

.code-list li {
  margin-bottom: 0.75rem;
}

.code-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
}

.code {
  font-weight: 700;
  margin-right: 1rem;
  min-width: 60px;
}

.code-desc {
  flex: 1;
}

.confidence {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.confidence.high {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.confidence.medium {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.confidence.low {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Partner demo styles */
.workflow-demo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workflow-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100px;
}

.step-number {
  width: 30px;
  height: 30px;
  background-color: var(--gray-300);
  color: var(--gray-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.workflow-step.active .step-number {
  background-color: var(--primary-color);
  color: var(--white);
}

.step-content h5 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.75rem;
  margin-bottom: 0;
  color: var(--gray-700);
}

.workflow-display {
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.workflow-screen {
  display: none;
  padding: 1.5rem;
}

.workflow-screen.active {
  display: block;
}

.workflow-screen h5 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.workflow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-btn {
  padding: 0.5rem 1rem;
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  color: var(--gray-800);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.control-btn:hover:not(:disabled) {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

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

.control-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 10px;
  height: 10px;
  background-color: var(--gray-300);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--primary-color);
}

.analysis-item {
  margin-bottom: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--gray-100);
}

.analysis-type {
  font-weight: 600;
}

.analysis-content {
  padding: 1rem;
}

.analysis-content ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.recommendation-group {
  margin-bottom: 1.5rem;
}

.recommendation-group h6 {
  margin-bottom: 0.75rem;
}

.recommendation-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.review-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
}

.review-item.approved {
  background-color: rgba(16, 185, 129, 0.1);
}

.review-item.modified {
  background-color: rgba(245, 158, 11, 0.1);
}

.review-status i {
  font-size: 1.25rem;
}

.review-item.approved .review-status i {
  color: var(--success-color);
}

.review-item.modified .review-status i {
  color: var(--warning-color);
}

.review-content p {
  margin-bottom: 0.25rem;
}

.review-note {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.execution-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.execution-status i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.execution-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
}

.summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
}

.summary-content p {
  margin-bottom: 0.25rem;
}

.summary-status {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.execution-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Mobile styles for demo modal */
@media (max-width: 768px) {
  .demo-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .workflow-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .workflow-step {
    width: 80px;
  }
  
  .execution-actions {
    flex-direction: column;
  }
}
