/* Janashakthi AI - Claims Verification System Styles */

:root {
  --primary: #FF6600;
  --secondary: #ff9933;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --light: #ecf0f1;
  --dark: #000000;
}

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

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

header {
  background-color: #FF6600;
  color: white;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

/* Drag & Drop styles */
.drag-drop-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #fff;
  transition: all 0.3s ease;
  margin: 20px 0;
  cursor: pointer;
}

.drag-drop-area:hover {
  border-color: var(--primary);
  background-color: #f8f9fa;
}

.drag-drop-area h2 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 10px;
}

.drag-drop-area p {
  color: #999;
  margin-bottom: 15px;
}

/* Form validation styles */
.form-group.has-error .file-input-wrapper {
  border: 2px solid var(--danger);
  background-color: rgba(231, 76, 60, 0.05);
}

.form-group.has-error label {
  color: var(--danger);
  font-weight: 500;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.field-error.show {
  display: block;
}

/* Button styles */
.btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #e65c00;
}

.btn-secondary {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  color: #666;
}

.btn-secondary:hover {
  background-color: #e9ecef;
}

/* File input styles */
input[type="file"] {
  display: none;
}

.select-file-btn {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-file-btn:hover {
  background-color: #e9ecef;
  border-color: #999;
}

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

.logo span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: normal;
}

nav ul li a:hover {
  text-decoration: underline;
}

.hero {
  background-color: var(--primary);
  padding: 3rem 0;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.main {
  padding: 3rem 0;
}

/* Tabs styling */
.tabs-container {
  width: 100%;
}

.tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--light);
}

.tab {
  padding: 1rem 2rem;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  position: relative;
}

.tab:hover {
  color: #FF6600;
}

.tab.active {
  color: #FF6600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #FF6600;
}

.tab-content {
  display: none;
}

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

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary);
}

/* File input wrapper styles */
.file-input-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    border: 2px dashed #FF6600;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    cursor: pointer;
    background-color: #ebebeb;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.file-input-wrapper::before {
    content: 'Choose File';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #c2c2c2;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    color: rgb(0, 0, 0);
    pointer-events: auto;
    z-index: 3;
    font-weight: 300;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Remove or comment out the ::after pseudo-element */
/*.file-input-wrapper::after {
    content: 'No file chosen';
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}*/

/* Update file name display styles */
.file-name-display {
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* Hide default file input styling */
.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Add styles for when a file is selected */
.file-input-wrapper.has-file .file-name-display {
    color: #333;
    font-weight: 500;
}

/* Error state */
.file-input-wrapper.error {
    border-color: #dc3545;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background-color: #ff6804;
}

.loader {
  display: none;
  text-align: center;
  margin: 2rem 0;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--secondary);
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.results {
  display: none;
  margin-top: 2rem;
}

.result-section {
  margin-bottom: 1.5rem;
}

.result-heading {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

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

.badge-danger {
  background-color: var(--danger);
  color: white;
}

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

.result-list {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
}

.result-item {
  padding: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
  border-bottom: none;
}

/* Table styling for results */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 0.95rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e9ecef;
}

.result-table th,
.result-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.result-table td {
    text-align: left;
    padding: 8px 12px;
}

/* Right align numeric columns */
.result-table td:nth-child(4),
.result-table td:nth-child(5),
.result-table td:nth-child(6) {
    text-align: right;
    font-family: monospace;  /* For better alignment of numbers */
}

/* Add currency symbol spacing */
.result-table td:nth-child(5),
.result-table td:nth-child(6) {
    padding-right: 16px;
}

/* Total row styling */
.result-table tfoot td {
    border-top: 2px solid #dee2e6;
    font-weight: bold;
}

.result-table tfoot td:last-child {
    font-family: monospace;
    padding-right: 16px;
}

.result-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.result-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.result-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.result-table .empty-message {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.result-table tfoot td {
    border-top: 2px solid #dee2e6;
    padding: 0.75rem;
    background-color: #f8f9fa;
}

.result-table td:not(:last-child) {
    border-right: 1px solid #dee2e6;
}

/* Cell highlighting based on status */
.result-table .match-cell {
  color: var(--success);
  font-weight: 500;
}

.result-table .missing-cell, .result-table .mismatch-cell {
  color: var(--danger);
  font-weight: 500;
}

.result-table .discrepancy-cell, .result-table .warning-cell {
  color: var(--warning);
  font-weight: 500;
}

/* Add a subtle border to the tables */
.result-list {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

/* Add a subtly animated highlight effect to new rows */
@keyframes highlight {
  0% { background-color: rgba(255, 102, 0, 0.2); }
  100% { background-color: transparent; }
}

.result-table tr.new-entry {
  animation: highlight 2s ease-out;
}

.confidence {
  display: inline-block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-left: 0.5rem;
}

.processing-time {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

/* Proposal verification results styles */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.summary-info {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.summary-info div:last-child {
    font-weight: 600;
    color: #28a745;
}

.status-text {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.status-text.status-passed {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.status-text.status-failed {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.verification-row {
    transition: background-color 0.2s;
}

.verification-row:hover {
    background-color: #f8f9fa;
}

.field-name {
    font-weight: 500;
    color: #495057;
}

.status-indicator {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 500;
}

.accuracy-cell {
    text-align: center;
}

.accuracy-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.value-item {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.value-label {
    font-weight: 500;
    color: #666;
}

.value-text {
    color: #212529;
}

.details-cell {
    max-width: 400px;
}

/* Verification status styles */
.status-passed {
  color: var(--success);
  font-weight: bold;
}

.status-failed {
  color: var(--danger);
  font-weight: bold;
}

.status-warning {
  color: var(--warning);
  font-weight: bold;
}

/* Escalation section */
.escalation-reason {
  margin-bottom: 0.5rem;
}

#escalationSection {
  border: 1px solid #ddd;
}

#escalationSection.needs-escalation {
  border: 2px solid var(--danger);
  background-color: #fff5f5;
}

#escalationReasons {
  padding: 1rem;
}

#escalationReasons ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

/* Similarity score styles */
.similarity-score {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.similarity-score.exact {
    background-color: #d4edda;
    color: #155724;
}

.similarity-score.variation {
    background-color: #cce5ff;
    color: #004085;
}

/* Responsive design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    margin-top: 1rem;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

/* Try Again small button positioned at the top-right of the card */
.try-again {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  background-color: rgba(0,0,0,0.06);
  color: #333;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  z-index: 60;
}

/* Ensure the card has relative positioning so try-again can be placed inside it */
.card { position: relative; }

/* Small utility to hide elements visually but keep accessible if needed */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.brand-variation-label {
    display: inline-block;
    color: #0066cc;
    font-style: italic;
    background-color: #f0f7ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    margin-left: 4px;
}

/* Duplicate Detection Styles */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.duplicate-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropzone {
    width: 100%;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 250px;
    justify-content: center;
}

.dropzone h3 {
    color: #333;
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

.dropzone p {
    color: #666;
    margin: 5px 0;
    font-size: 16px;
}

.select-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 16px;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.process-btn {
    background: #e9ecef;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 16px;
}

.process-btn:not([disabled]) {
    background: #fff;
}

.reset-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 16px;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.select-file-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 16px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.process-btn {
    background: #e9ecef;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.process-btn:not([disabled]) {
    background: #fff;
}

.reset-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.dropzone h3 {
    color: #333;
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

.dropzone p {
    color: #666;
    margin: 5px 0;
    font-size: 16px;
}

.dropzone:hover {
    border-color: #999;
    background: #fafafa;
}

/* Progress and Results Styles */
.progress {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.results {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropzone .upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.dropzone h3 {
    color: #333;
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

.dropzone p {
    color: #666;
    margin: 5px 0;
    font-size: 16px;
}

.dropzone.dragover {
    border-color: var(--primary);
    background: rgba(247, 131, 54, 0.1);
}

.card-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.alert {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.matches, .similar-documents {
    margin-top: 15px;
}

.match-item, .similar-document {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
}

.match-details, .doc-file {
    margin-bottom: 8px;
}

.similarity-scores {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.similarity-score {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.similar-document {
    background: #f8fff8;
    border: 1px solid var(--success);
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 6px;
}

.progress {
    display: none;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(247, 131, 54, 0.1);
    border-radius: 6px;
    text-align: center;
}

.progress.active {
    display: block;
}

#statusInfo {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--light);
}

#statusInfo ul {
    list-style: none;
    margin: 0.5rem 0;
    padding-left: 1rem;
}

#statusInfo li {
    margin: 0.25rem 0;
}

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

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

/* Add hover effect for buttons */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Hospitalization Results Styles */
.hospitalization-results {
    margin-top: 1.5rem;
}

.hosp-processing-time {
    background-color: #f0f7ff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #333;
    font-size: 14px;
    border-left: 4px solid #4A90E2;
}

.hosp-step-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.hosp-step-header {
    padding: 16px 20px;
    background-color: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

.hosp-step-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.hosp-step-content {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

.hosp-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hosp-badge-passed {
    background-color: #4CAF50;
    color: white;
}

.hosp-badge-failed {
    background-color: #f44336;
    color: white;
}

.hosp-badge-warning {
    background-color: #ff9800;
    color: white;
}























.hosp-documents-grid {
    display: grid;
    gap: 16px;
}

.hosp-document-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
    border-left: 3px solid #4CAF50;
}

.hosp-document-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hosp-document-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.hosp-document-info {
    flex: 1;
}

.hosp-document-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.hosp-document-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}











.hosp-document-checks {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.hosp-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.hosp-check-icon {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.hosp-check-text {
    flex: 1;
}

.hosp-view-details-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hosp-view-details-btn:hover {
    background-color: #357ABD;
}

/* Updated Hospitalization Step Styles - matching reference image */
.hosp-step-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.hosp-step-header {
    padding: 16px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.hosp-step-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.hosp-step-content {
    padding: 20px;
    background: white;
}

.hosp-step-message {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.hosp-inline-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hosp-inline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.hosp-inline-item.passed {
    border-left: 3px solid #4CAF50;
}

.hosp-inline-item.failed {
    border-left: 3px solid #f44336;
}

.hosp-inline-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Progress Indicator Styles */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
    min-width: 120px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f0f0f0;
    border: 2px solid #d0d0d0;
    color: #999;
}

.step-number {
    display: block;
}

.step-check {
    display: none;
    font-size: 18px;
    font-weight: bold;
}

.step-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #666;
    line-height: 1.3;
    max-width: 100px;
}

.progress-connector {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 15px;
    border-radius: 2px;
    position: relative;
    top: -15px;
    transition: background-color 0.3s ease;
}

/* Progress Step States */
.progress-step.pending .step-circle {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.progress-step.active .step-circle {
    background: #4A90E2;
    border-color: #4A90E2;
    color: white;
    animation: pulse 2s infinite;
}

.progress-step.active .step-label {
    color: #4A90E2;
    font-weight: 600;
}

.progress-step.completed .step-circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.progress-step.completed .step-number {
    display: none;
}

.progress-step.completed .step-check {
    display: block;
}

.progress-step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.progress-step.failed .step-circle {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.progress-step.failed .step-label {
    color: #dc3545;
    font-weight: 600;
}

.progress-connector.completed {
    background: #28a745;
}

/* Pulse animation for active step */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .progress-indicator {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .progress-step {
        min-width: 80px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 12px;
        max-width: 80px;
    }
    
    .progress-connector {
        margin: 0 10px;
        top: -12px;
    }
}

@media (max-width: 480px) {
    .progress-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-connector {
        width: 3px;
        height: 30px;
        margin: 0;
        top: 0;
    }
    
    .progress-step {
        min-width: auto;
    }
}

.hosp-inline-text {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.hosp-inline-subtext {
    color: #666;
    font-size: 14px;
    margin-top: -8px;
    margin-left: 12px;
    padding-left: 12px;
}

/* Expandable document details */
.hosp-expand-btn {
    width: 100%;
    margin-top: 16px;
    padding: 10px 16px;
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hosp-expand-btn:hover {
    background-color: #357ABD;
}

.hosp-expand-btn.warning {
    background-color: #ff9933;
}

.hosp-expand-btn.warning:hover {
    background-color: #ff8800;
}

.hosp-expand-btn.info {
    background-color: #3498db;
}

.hosp-expand-btn.info:hover {
    background-color: #2980b9;
}

.hosp-expand-icon {
    font-size: 12px;
    transition: transform 0.2s;
}

.hosp-document-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Detailed content sections */
.hosp-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hosp-details-section {
    background: white;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.hosp-details-section h4 {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4A90E2;
}

.hosp-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    font-size: 14px;
}

.hosp-details-grid > div {
    padding: 8px 0;
}

.hosp-details-grid strong {
    color: #666;
    font-weight: 500;
    display: inline-block;
    min-width: 120px;
}

.hosp-charges-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hosp-charge-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
}

.hosp-charge-row span:first-child {
    color: #555;
}

.hosp-charge-row span:last-child {
    font-weight: 600;
    color: #333;
}

.hosp-financial-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hosp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
}

.hosp-summary-row.total {
    background: #4A90E2;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.hosp-list-section {
    margin-top: 12px;
}

.hosp-list-section strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.hosp-list-section ul {
    list-style: none;
    padding-left: 0;
}

.hosp-list-section li {
    padding: 6px 12px;
    background: #f9f9f9;
    margin-bottom: 6px;
    border-radius: 4px;
    border-left: 3px solid #4A90E2;
}

/* Charge matching section */
.hosp-matching-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.hosp-matching-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hosp-matching-header h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.hosp-matching-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.hosp-matching-stat {
    background: white;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #4CAF50;
}

.hosp-matching-stat.warning {
    border-left-color: #ff9933;
}

.hosp-matching-stat.info {
    border-left-color: #3498db;
}

.hosp-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.hosp-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.hosp-matching-details {
    margin-bottom: 16px;
}

.hosp-matching-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hosp-matched-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #4CAF50;
}

.hosp-matched-item.warning {
    border-left-color: #ff9933;
    background: #fff9f5;
}

.hosp-matched-item.info {
    border-left-color: #3498db;
    background: #f5f9ff;
}

.hosp-item-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hosp-item-details {
    flex: 1;
    min-width: 0;
}

.hosp-item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.hosp-item-reason {
    font-size: 13px;
    color: #666;
}

.hosp-item-amount {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    flex-shrink: 0;
    text-align: right;
}

/* Text utility classes */
.text-success {
    color: #2ecc71;
    font-weight: 500;
}

.text-danger {
    color: #e74c3c;
    font-weight: 500;
}

.text-warning {
    color: #f39c12;
    font-weight: 500;
}




