* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* NAVBAR */
.navbar {
  background: linear-gradient(135deg, #6e7ff3, #a0a5ef);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar h1 {
  margin: 0;
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: 1px;
}


.hero {
  background: url('/static/images/hero.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

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

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.3em;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px;
  background-color: #ff6347;
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  border-radius: 5px;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #e5533d;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 60px 20px;
  background: #fff;
}

.feature {
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 30%;
  min-width: 280px;
  text-align: center;
  margin: 15px;
  transition: transform 0.3s ease;
}

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

.feature h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.feature p {
  font-size: 1em;
  line-height: 1.5;
}

.feature img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.footer-cta {
  background-color: #6e7ff3;
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.footer-cta a {
  background-color: white;
  color: #6e7ff3;
  padding: 15px 30px;
  font-size: 1.1em;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.footer-cta a:hover {
  background-color: #e6e6e6;
}

.feature i 
{
  color: #6e7ff3;
  font-size: 40px;
}

@media (max-width: 768px) {
  .feature {
      width: 90%;
  }

  .hero h1 {
      font-size: 2em;
  }

  .hero p {
      font-size: 1em;
  }
}

.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

h2 {
  text-align: center;
  color: #4a4a4a;
  margin-bottom: 30px;
}

/* Updated ERP Wizard UI CSS */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

.navbar {
  background: linear-gradient(135deg, #6e7ff3, #a0a5ef);
  color: white;
  padding: 15px 30px;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 220px;
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step, .left-nav {
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 500;
  color: #6e7ff3;
  border: 1px solid transparent;
}

.left-nav {
  background-color: #CCCCCC;
}

.step:hover {
  background-color: #f3f4ff;
}

.step-active, .left-nav.active {
  background-color: #6e7ff3;
  color: white;
  font-weight: bold;
}

.step-disabled {
  color: #aaa;
  pointer-events: none;
  background-color: #f0f0f0;
}

.left-nav a {
  text-decoration: none;
  color: #000000;
}

.left-nav.active a {
  color: #FFFFFF;
}

.restart-btn {
  margin-top: 40px;
  padding: 10px 20px;
  background-color: #ff6347;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.restart-btn:hover {
  background-color: #e5533d;
}

.main-content {
  flex: 1;
  padding: 40px;
  background-color: #f9f9f9;
  overflow-y: auto;
}

.mode-selection {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.mode-btn {
  background-color: #6e7ff3;
  color: white;
  padding: 12px 25px;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mode-btn:hover {
  background-color: #5a6ae0;
}

#drop-area {
  border: 2px dashed #6e7ff3;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  background-color: #fff;
  transition: background 0.3s ease;
}

#drop-area:hover {
  background: #f0f4ff;
}

#fileLabel {
  cursor: pointer;
  font-weight: bold;
  color: #6e7ff3;
  font-size: 1rem;
}

#record-btn, #stop-btn, #generate-transcript, #generate-notes {
  margin-top: 20px;
}

#progress-bar {
  height: 10px;
  border-radius: 5px;
  background: lightgreen;
  margin-top: 15px;
  transition: width 0.4s ease;
}

.success-message {
  margin: 20px 0;
  color: green;
  font-weight: bold;
}

.dual-panel {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.left-panel, .right-panel {
  flex: 1 1 45%;
  min-width: 300px;
}

#transcription-result, #clinical-notes-result {
  background-color: #f3f3f3;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
  margin-top: 20px;
  text-wrap: wrap;
}

button {
  background-color: #ff6347;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #e5533d;
}

button:disabled {
  background-color: #ff634777;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

thead {
  background-color: #f6f8fa;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
}

tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  color: #444;
}

tbody tr:hover {
  background-color: #f0f4ff;
}

a {
  color: #3865f2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.patient-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.patient-card h3 {
  margin-top: 0;
  color: #333;
}

.patient-field {
  margin: 8px 0;
  color: #555;
}

#print-notes {
  float: right;
}

.footer {
  background-color: #f6f8fa;
  border-top: 1px solid #ddd;
  padding: 20px 30px;
  font-size: 0.9rem;
  color: #444;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  margin-right: 20px;
  color: #3865f2;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  color: #666;
}



@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }

  .main-content {
    padding: 20px;
  }

  .mode-selection {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
  }

  .dual-panel {
    flex-direction: column;
  }
}


.loader-circle {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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