/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-bg: #f0f5ff;
    --color-white: #ffffff;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-icon-blue: #dbeafe;
    --color-icon-green: #d1fae5;
    --color-icon-yellow: #fef3c7;
    --color-icon-blue-text: #2563eb;
    --color-icon-green-text: #059669;
    --color-icon-yellow-text: #d97706;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

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

.logo-text {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-highlight {
    color: var(--color-primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-highlight {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 4px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Features section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon-blue {
    background-color: var(--color-icon-blue);
    color: var(--color-icon-blue-text);
}

.feature-icon-green {
    background-color: var(--color-icon-green);
    color: var(--color-icon-green-text);
}

.feature-icon-yellow {
    background-color: var(--color-icon-yellow);
    color: var(--color-icon-yellow-text);
}

.feature-title {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Login section */
.login-section {
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
}

.login-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon {
    width: 36px;
    height: 36px;
    background: var(--color-icon-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f3f4f6;
}

.modal-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

/* Notice sections */
.notice-section {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.notice-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.notice-icon-blue {
    background: var(--color-primary);
}

.notice-icon-green {
    background: var(--color-icon-green-text);
}

.notice-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.notice-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.notice-text:last-child {
    margin-bottom: 0;
}

.notice-important {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Consent checkboxes */
.consent-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-text {
    flex: 1;
}

/* Modal footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-accept {
    padding: 0.75rem 1.5rem;
}

.btn-accept:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Consent page */
.consent-section {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

.consent-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 600px;
}

.consent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.consent-icon {
    width: 40px;
    height: 40px;
    background: var(--color-icon-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.consent-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.consent-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.consent-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Button variants */
.btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: var(--color-text-muted);
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Header utilities */
.user-greeting {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.inline {
    display: inline;
}

/* Dashboard */
.dashboard-body {
    background: #f8fafc;
}

.dashboard-header {
    background: var(--color-white);
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 64px;
}

.dashboard-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.dashboard-header .logo-text {
    font-size: 1rem;
    line-height: 1.2;
}

.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.nav-item:hover {
    color: var(--color-text);
    background: #f3f4f6;
}

.nav-item.active {
    color: var(--color-primary);
    background: var(--color-icon-blue);
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.user-avatar:hover {
    opacity: 0.9;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.15s;
    z-index: 50;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-dropdown-header strong {
    font-size: 0.875rem;
    color: var(--color-text);
}

.user-dropdown-header span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.user-dropdown-item:hover {
    background: #f9fafb;
    color: var(--color-text);
}

/* Dashboard main content */
.dashboard-main {
    padding: 1.5rem;
    min-height: calc(100vh - 64px);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Form column */
.form-column {
    background: transparent;
}

.analysis-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.analysis-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select-wrapper-highlight select {
    border-color: var(--color-primary);
    border-width: 2px;
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.analysis-form input[type="text"] {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.analysis-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.analysis-form input[type="text"]::placeholder {
    color: #9ca3af;
}

/* Safety considerations card */
.safety-card {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.safety-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.safety-card .checkbox-label {
    font-size: 0.875rem;
}

.safety-card .checkbox-custom {
    border-color: #d1d5db;
}

/* Label row with voice button */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background-color 0.15s;
}

.voice-btn:hover {
    background: var(--color-icon-blue);
}

/* Textarea */
.analysis-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    background: var(--color-white);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.analysis-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.analysis-form textarea::placeholder {
    color: #9ca3af;
}

/* Submit button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Results column */
.results-column {
    min-height: 500px;
}

.results-panel {
    background: var(--color-white);
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius-lg);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.results-empty {
    text-align: center;
    max-width: 280px;
}

.results-empty-icon {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.results-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.results-empty-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Processing state */
.results-processing {
    text-align: center;
    max-width: 280px;
}

.results-processing-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.results-processing-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.results-processing-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Results content */
.results-panel.has-content {
    align-items: flex-start;
    justify-content: flex-start;
}

.results-content {
    width: 100%;
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.results-source {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Result warning */
.result-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    color: #92400e;
}

.result-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.result-warning span {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Result card */
.result-card {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--color-primary);
}

.result-card.conditional {
    border-left-color: #9ca3af;
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-modality {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.result-priority {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: var(--color-icon-blue);
    color: var(--color-primary);
}

.result-priority.conditional {
    background: #f3f4f6;
    color: var(--color-text-muted);
}

.result-indication {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Results footer */
.results-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.results-disclaimer {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.results-disclaimer strong {
    color: var(--color-text);
}

/* ===== NEW RESULTS PANEL STYLES ===== */

/* AI Summary Card */
.ai-summary-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.ai-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ai-summary-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.ai-summary-title svg {
    color: var(--color-primary);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.ai-summary-text {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.audit-reference {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Red Flags Card */
.red-flags-card {
    background: #fef2f2;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.red-flags-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.red-flags-header svg {
    color: #dc2626;
}

.red-flags-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: #dc2626;
}

.red-flags-list li {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* Radiation Dose Card */
.radiation-dose-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.radiation-dose-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.radiation-dose-header svg {
    color: var(--color-text-muted);
}

.radiation-modality-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.radiation-modality-row strong {
    font-size: 1rem;
    color: var(--color-text);
}

.radiation-info {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.dose-badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
}

.dose-badge.dose-none,
.dose-badge.dose-minimal {
    background: #d1fae5;
    color: #059669;
}

.dose-badge.dose-moderate {
    background: #fef3c7;
    color: #d97706;
}

.dose-badge.dose-high {
    background: #fee2e2;
    color: #dc2626;
}

.radiation-disclaimer {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Interpretation Row (Clinical Question & Matched Scenario) */
.interpretation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.interpretation-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.interpretation-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.interpretation-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-white);
    border: 1px solid #06b6d4;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: #0891b2;
    margin-top: 0.25rem;
}

/* Recommendations Section */
.recommendations-section {
    margin-bottom: 1.5rem;
}

.recommendations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recommendations-header svg {
    color: #22c55e;
}

.recommendations-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Oversight Banner */
.oversight-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fffbeb;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.oversight-banner svg {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 2px;
}

.oversight-banner strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.oversight-banner p {
    font-size: 0.8125rem;
    color: #b45309;
    line-height: 1.5;
}

/* Safety Warning Card */
.safety-warning-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    color: #92400e;
}

.safety-warning-card svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.safety-warning-card span {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Recommendation Card */
.recommendation-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #22c55e;
}

.recommendation-card.status-permitted {
    border-left-color: #22c55e;
}

.recommendation-card.status-conditional {
    border-left-color: #f59e0b;
}

.recommendation-card.status-not_indicated {
    border-left-color: #ef4444;
}

.recommendation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.recommendation-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-md);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.status-badge.status-permitted {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.status-conditional {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-not_indicated {
    background: #fee2e2;
    color: #dc2626;
}

.recommendation-title-row h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.check-icon {
    color: #22c55e;
}

.confidence-badge.confidence-high {
    background: #ecfeff;
    border-color: #06b6d4;
    color: #0891b2;
}

.confidence-badge.confidence-medium {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}

.confidence-badge.confidence-low {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.recommendation-rationale {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-accept {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #22c55e;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-accept:hover {
    background: #16a34a;
}

.btn-override {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: #d97706;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-override:hover {
    background: #fffbeb;
}

.btn-escalate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-escalate:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-outcome {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid #f87171;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outcome:hover {
    background: #fef2f2;
}

/* Outcome Tracking Card */
.outcome-tracking-card {
    background: #fff7ed;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.outcome-tracking-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #ea580c;
    margin-bottom: 0.5rem;
}

.outcome-tracking-header svg {
    color: #ea580c;
}

.outcome-tracking-card > p {
    font-size: 0.875rem;
    color: #c2410c;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-record-outcome {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ea580c;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-record-outcome:hover {
    background: #c2410c;
}

/* Guideline References */
.guideline-references {
    margin-bottom: 1.5rem;
}

.guideline-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.guideline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guideline-tag {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background: #f3f4f6;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Clarification Card */
.clarification-card {
    background: #fffbeb;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.clarification-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 0.5rem;
}

.clarification-header svg {
    color: #d97706;
}

.clarification-subtitle {
    font-size: 0.875rem;
    color: #b45309;
    margin-bottom: 0.75rem;
}

.clarification-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.clarification-list li {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.btn-add-info {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid #d97706;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: #d97706;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.btn-add-info:hover {
    background: #fef3c7;
}

.proceed-link {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
}

.proceed-link:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* Responsive adjustments for new components */
@media (max-width: 640px) {
    .interpretation-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn-accept,
    .action-buttons .btn-override,
    .action-buttons .btn-escalate,
    .action-buttons .btn-outcome {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .results-column {
        min-height: 400px;
    }

    .dashboard-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero-subtitle br {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
