/* ProstateLand Web UI - Custom Styles Only */

/* Focus Management System */
html {
    scroll-behavior: smooth;
}

.section-container {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.section-container.active {
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(1.01);
    scroll-margin-top: 20px;
}

.section-container.active .border-l-4 {
    border-left-width: 8px;
}

.section-container:not(.active).hidden-by-focus {
    display: none;
}

.section-container.active {
    display: block;
}

.section-container:not(.active) {
    opacity: 0.7;
}

.section-container:not(.active):hover {
    opacity: 1;
}

.section-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem 0.75rem 0 0;
}

.section-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.section-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Alert System */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #c6f6d5;
    border-color: #9ae6b4;
    color: #22543d;
}

.alert-success i {
    margin-right: 0.5rem;
}

.alert-warning {
    background-color: #fef5e7;
    border: 1px solid #d69e2e;
    color: #744210;
}

/* Button System */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.btn-success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-outline-primary {
    background: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    color: #6b7280;
    border-color: #6b7280;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    color: white;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-select, .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-select {
    cursor: pointer;
}

/* Question Groups */
.question-group {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.question-group h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.radio-option input[type="radio"] {
    margin: 0;
    margin-top: 0.125rem;
}

.radio-text {
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.rationale {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.question-section .navigation-buttons {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.nav-button.secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button.secondary:hover {
    background: #edf2f7;
    color: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

/* Clinical Headers */
.clinical-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Clinical Tabs */
.clinical-tabs {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.clinical-tab-buttons {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.clinical-tab-content {
    padding: 1.5rem;
}

/* Info Boxes */
.info-box {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Decision Support */
.decision-support {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

/* Treatment Cards */
.treatment-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
}

.treatment-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.treatment-card-header {
    background: #2c5282;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.treatment-card-header h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.treatment-card-content {
    padding: 1rem;
}

/* Badge System */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

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

/* Monitoring Items */
.monitoring-item {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.monitoring-item h6 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.monitoring-item p {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Results Sections */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Cancer Stage Selection */
.cancer-stage-options {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.cancer-stage-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.cancer-stage-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stage-header h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stage-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.stage-details {
    font-size: 0.875rem;
    color: #374151;
}

.stage-details p {
    margin-bottom: 0.25rem;
}

/* Stage Overview */
.stage-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.overview-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.overview-card h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overview-card ul {
    list-style: none;
    padding: 0;
}

.overview-card li {
    padding: 0.25rem 0;
    color: #374151;
}

/* Options Sections */
.options-section {
    margin-bottom: 2rem;
}

.options-section h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

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

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Recommended Discussion & Next Steps */
.recommended-discussion,
.next-steps {
    margin-bottom: 1.5rem;
}

.recommended-discussion h6,
.next-steps h6 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.recommended-discussion h5,
.next-steps h5 {
    color: #2c5282;
    margin-bottom: 0.75rem;
}

.recommended-discussion ul,
.next-steps ul {
    list-style-type: disc;
    margin-left: 1rem;
}

.recommended-discussion li,
.next-steps li {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* No Options Warning */
.no-options-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: #991b1b;
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Text Utilities */
.text-muted {
    color: #64748b !important;
    font-size: 0.875rem;
}

/* Custom Styles for Medical UI */
.clinical-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.medical-badge {
    background: #2c5282;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.evidence-badge {
    background: #4a5568;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.citation-box {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-left: 3px solid #718096;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.citation-box-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-left-color: #4a5568;
}

.quantitative-section {
    background: #edf2f7;
    border-left: 4px solid #2c5282;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.5rem;
    margin: 1rem 0;
}

.data-card h4 {
    color: #2c5282;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.data-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.data-item strong {
    color: #2c5282;
    font-weight: 600;
}

.citations {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.citations strong {
    color: #2d3748;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clinical-data-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.clinical-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2c5282;
    border-radius: 3px 3px 0 0;
}

.treatment-comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.treatment-name {
    color: #2c5282;
    font-weight: 700;
    font-size: 1.25rem;
}

.key-metric {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #2c5282;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.metric-value {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.125rem;
}

.show-more-btn:hover {
    background: #2c5282;
    color: white;
    transform: translateY(-2px);
}

/* Navigation Tab Enhancements */
.nav-tab.active {
    background: #2c5282;
    color: white;
    border-radius: 0.75rem 0.75rem 0 0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Question and Option Styling */
.question-section {
    display: none;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.question-section.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-section .breadcrumb {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

.question-section h2 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.question-section p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.option-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.option-button {
    position: relative;
    overflow: hidden;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.option-button:hover {
    border-color: #2c5282;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.12);
    transform: translateY(-3px);
    background: #f7fafc;
}

.option-button strong {
    display: block;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-button small {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.option-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 82, 130, 0.08), transparent);
    transition: left 0.6s ease;
}

.option-button:hover::before {
    left: 100%;
}

.option-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Treatment Info */
.treatment-info {
    display: none;
}

.treatment-info.active {
    display: block;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #2c5282;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Risk Assessment Results */
.risk-result .risk-category {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
}

.risk-result .risk-category.high-risk {
    background: #fed7d7;
    border: 2px solid #e53e3e;
    color: #742a2a;
}

.risk-result .risk-category.very-high-risk {
    background: #fc8181;
    border: 2px solid #c53030;
    color: #742a2a;
}

.risk-result .reasoning {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.risk-result .reasoning h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.risk-result .reasoning ul {
    list-style: none;
    padding: 0;
}

.risk-result .reasoning li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.risk-result .reasoning li:last-child {
    border-bottom: none;
}

.risk-result .reasoning li::before {
    content: "•";
    color: #2c5282;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Assessment Tab Styles */
.assessment-tab {
    color: #6b7280;
    border-color: transparent;
    transition: all 0.2s ease;
}

.assessment-tab:hover {
    color: #374151;
    border-color: #d1d5db;
}

.assessment-tab.active-tab {
    color: #2c5282;
    border-color: #2c5282;
}

.assessment-content {
    display: none;
}

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

/* Custom ARPI Card Status Colors */
.arpi-card.available {
    border-color: #10b981;
    background: #ecfdf5;
}

.arpi-card.caution {
    border-color: #f59e0b;
    background: #fffbeb;
}

.arpi-card.excluded {
    border-color: #ef4444;
    background: #fef2f2;
}

.status-badge.available {
    background: #10b981;
}

.status-badge.caution {
    background: #f59e0b;
}

.status-badge.excluded {
    background: #ef4444;
}

/* Custom Therapy Option Hover */
.therapy-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Enhanced Radio Button Styling for Therapy Options */
.therapy-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.therapy-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.therapy-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.125rem;
    accent-color: #3b82f6;
    cursor: pointer;
}

.therapy-option input[type="radio"]:checked + .therapy-content {
    color: #1f2937;
}

.therapy-option input[type="radio"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.therapy-option:has(input[type="radio"]:checked) {
    border-color: #2c5282;
    background: #edf2f7;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.15);
}

.therapy-content {
    flex: 1;
}

.therapy-content strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.therapy-content p {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.therapy-content small {
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
}

.therapy-options {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.therapy-intensity-section {
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-left: 3px solid #2c5282;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.therapy-intensity-section h4 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.therapy-intensity-section p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* PSMA PET Assessment Styles */
.psma-pet-step {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.psma-pet-step .step-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.psma-pet-step input[type="radio"] {
    margin-right: 10px;
}

.psma-pet-step label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.psma-pet-step label:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.psma-pet-step input[type="radio"]:checked + div {
    color: #6366f1;
    font-weight: 600;
}

.psma-pet-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.psma-pet-examples {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.psma-pet-examples .grid > div {
    cursor: pointer;
    transition: all 0.2s;
}

.psma-pet-examples .grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ARPI No to All functionality */
.no-to-all-section {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.no-to-all-section .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Drug interaction examples styling */
.examples-box {
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-left: 3px solid #2c5282;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #4a5568;
}

.examples-box strong {
    color: #2d3748;
    font-weight: 600;
}

/* Statin screening severity styling */
.radio-option.severity-high {
    border-left: 4px solid #dc2626;
    background-color: #fef2f2;
}

.radio-option.severity-high:hover {
    background-color: #fee2e2;
}

.radio-option.severity-medium {
    border-left: 4px solid #f59e0b;
    background-color: #fffbeb;
}

.radio-option.severity-medium:hover {
    background-color: #fef3c7;
}

.radio-option.severity-info {
    border-left: 4px solid #3b82f6;
    background-color: #eff6ff;
}

.radio-option.severity-info:hover {
    background-color: #dbeafe;
}

/* Smart tip styling */
.smart-tip.severity-high {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.smart-tip.severity-medium {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.smart-tip.severity-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Checkbox styling for multi-select */
.radio-option input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.radio-option input[type="checkbox"]:checked + .radio-content {
    font-weight: 600;
}

/* Pulse animation for medical elements */
@keyframes pulse-medical {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-medical {
    animation: pulse-medical 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Dynamic nav-tab styling */
.nav-tab.border-medical-blue {
    border-color: #2563eb;
}

.nav-tab.text-medical-blue {
    color: #2563eb;
}

.nav-tab.border-transparent {
    border-color: transparent;
}

.nav-tab.text-gray-500 {
    color: #6b7280;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Base Mobile Styles (applies to all screen sizes, overridden for larger screens) */
* {
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.2);
}

/* Touch-friendly minimum sizes */
button, .btn, .nav-button, .option-button, .therapy-option, .radio-option {
    min-height: 44px;
    min-width: 44px;
}

/* Mobile-first: Reduce padding and margins on small screens */
@media (max-width: 767px) {
    /* Base typography adjustments */
    html {
        font-size: 16px;
    }

    /* Compact header for mobile */
    header {
        padding: 0;
    }

    header .max-w-7xl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Section containers */
    .section-container {
        scroll-margin-top: 60px;
        margin: 0.5rem;
        padding: 1rem;
    }

    .section-container.active {
        scroll-margin-top: 10px;
        transform: scale(1);
        margin: 0.5rem;
    }

    /* Question sections */
    .question-section {
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 0.75rem;
    }

    .question-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .question-section p {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    /* Buttons - full width on mobile */
    .btn, .nav-button, .btn-primary, .btn-secondary, .btn-success {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .navigation-buttons .btn {
        width: 100%;
    }

    /* Form elements */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-select, .form-input {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-width: 2px;
    }

    /* Question groups */
    .question-group {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }

    .question-group h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Radio options - better touch targets */
    .radio-option {
        padding: 1rem;
        min-height: 60px;
        gap: 0.875rem;
    }

    .radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

    /* Option buttons */
    .option-button {
        padding: 1.25rem 1rem;
        border-radius: 0.5rem;
    }

    .option-button strong {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .option-button small {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    /* Therapy options */
    .therapy-option {
        padding: 1.25rem 1rem;
        margin-bottom: 0.75rem;
        min-height: 70px;
    }

    .therapy-option input[type="radio"] {
        width: 22px;
        height: 22px;
        margin-right: 0.875rem;
    }

    .therapy-content strong {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .therapy-content p {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }

    .therapy-content small {
        font-size: 0.8125rem;
    }

    /* Cards and containers */
    .treatment-card, .monitoring-item, .info-box {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }

    .treatment-card-header {
        padding: 0.875rem;
    }

    .treatment-card-header h5 {
        font-size: 1rem;
    }

    .treatment-card-content {
        padding: 0.875rem;
    }

    .clinical-card {
        margin-bottom: 1rem;
    }

    /* Clinical tabs */
    .clinical-tab-buttons {
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .clinical-tab-content {
        padding: 1rem;
    }

    /* Stage cards */
    .cancer-stage-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .stage-header h4 {
        font-size: 1.125rem;
    }

    .stage-description {
        font-size: 0.8125rem;
    }

    .stage-details {
        font-size: 0.8125rem;
    }

    /* Grid layouts - single column on mobile */
    .options-grid,
    .cards-container,
    .therapy-options,
    .cancer-stage-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stage-overview {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Breadcrumb */
    .question-section .breadcrumb {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    /* Info boxes and decision support */
    .info-box,
    .decision-support {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .info-box h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Quantitative sections */
    .quantitative-section {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .data-card h4 {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    /* Citation boxes */
    .citation-box {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    /* Therapy intensity section */
    .therapy-intensity-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .therapy-intensity-section h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .therapy-intensity-section p {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    /* PSMA PET steps */
    .psma-pet-step {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .psma-pet-step label {
        padding: 1rem;
        margin: 0.5rem 0;
        min-height: 50px;
    }

    /* No to all section */
    .no-to-all-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Examples box */
    .examples-box {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }

    /* Badges */
    .badge, .medical-badge, .evidence-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }

    /* Clinical headers */
    .clinical-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Results sections */
    .results-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

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

    /* Risk results */
    .risk-result .risk-category {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .risk-result .reasoning {
        padding: 0.875rem;
    }

    .risk-result .reasoning h4 {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
    }

    /* Assessment tabs */
    .assessment-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* ARPI cards */
    .arpi-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Monitoring items */
    .monitoring-item h6 {
        font-size: 0.9375rem;
    }

    .monitoring-item p {
        font-size: 0.8125rem;
    }

    /* Treatment name */
    .treatment-name {
        font-size: 1.125rem;
    }

    /* Key metrics */
    .key-metric {
        padding: 0.625rem;
    }

    .metric-value {
        font-size: 1rem;
    }

    /* Alert system */
    .alert {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
    }

    /* Loading message */
    .loading-message {
        padding: 1.5rem;
        font-size: 0.9375rem;
    }

    /* Disable hover effects on mobile (they can cause sticky states) */
    .option-button:hover,
    .therapy-option:hover,
    .radio-option:hover,
    .cancer-stage-card:hover,
    .treatment-card:hover,
    .clinical-card:hover {
        transform: none;
        box-shadow: inherit;
    }

    /* Active states for touch */
    .option-button:active,
    .therapy-option:active,
    .radio-option:active,
    .cancer-stage-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* Scroll behavior */
    .section-container {
        overflow-x: hidden;
    }

    /* Prevent text overflow */
    .option-button strong,
    .therapy-content strong,
    .radio-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Tablet styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .question-section {
        padding: 1.5rem;
        max-width: 100%;
    }

    .options-grid,
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .therapy-options {
        grid-template-columns: 1fr;
    }

    .stage-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .navigation-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .navigation-buttons .btn {
        width: auto;
        min-width: 150px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .question-section {
        padding: 0.875rem;
        margin: 0.25rem 0;
    }

    .question-section h2 {
        font-size: 1.25rem;
    }

    .section-container {
        margin: 0.25rem;
        padding: 0.75rem;
    }

    .question-group {
        padding: 0.875rem;
    }

    .option-button,
    .therapy-option,
    .radio-option {
        padding: 1rem 0.875rem;
    }

    .btn, .nav-button {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    .treatment-card-header,
    .treatment-card-content {
        padding: 0.75rem;
    }

    .info-box,
    .decision-support,
    .clinical-tab-content {
        padding: 0.875rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .question-section {
        padding: 1rem;
    }

    .section-container {
        scroll-margin-top: 50px;
    }

    .navigation-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .navigation-buttons .btn {
        width: auto;
        flex: 1;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .option-button,
    .therapy-option,
    .radio-option {
        border-width: 1.5px;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}