/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, #0056a9 0%, #00a3e0 100%);
    color: white;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 85, 169, 0.2);
}

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

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation */
nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: #0056a9;
    background-color: #f0f7ff;
    border-bottom-color: #00a3e0;
}

nav a i {
    margin-right: 8px;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

/* Common Content Components */
.welcome-panel {
    text-align: center;
    padding: 2rem;
}

.welcome-panel h2 {
    color: #0056a9;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.highlight-box {
    background-color: #e8f4fc;
    border-left: 4px solid #00a3e0;
    padding: 1.5rem;
    margin: 2rem auto;
    text-align: left;
    max-width: 800px;
    border-radius: 0 8px 8px 0;
}

.cta-button {
    background: linear-gradient(to right, #00a3e0, #0056a9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 131, 208, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 131, 208, 0.4);
}

.cta-button i {
    margin-left: 8px;
}

/* Scenario-Specific Styles */
.patient-profile {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.risk-indicator {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.risk-high {
    background-color: #ffeaea;
    color: #d32f2f;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.data-table th {
    background-color: #f2f6fa;
    font-weight: 700;
    color: #0056a9;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-source {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.decision-prompt {
    font-size: 1.1rem;
    margin: 2rem 0 1.5rem 0;
    color: #333;
    font-weight: 600;
}

.choice-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.choice-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.choice-card:hover {
    border-color: #00a3e0;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.choice-card.selected {
    border-color: #0056a9;
    background-color: #f0f7ff;
}

.choice-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #0056a9;
    font-weight: 700;
}

.choice-title i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.choice-desc {
    color: #555;
    line-height: 1.5;
}

.outcome-panel {
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: none;
}

.outcome-good {
    background-color: #f0f9f0;
    border-left: 6px solid #4caf50;
}

.outcome-poor {
    background-color: #fff5f5;
    border-left: 6px solid #f44336;
}

.outcome-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.outcome-title i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.flow-diagram {
    text-align: center;
    margin: 2rem 0;
}

.flow-step {
    display: inline-block;
    background: white;
    border: 2px solid #00a3e0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 0 1rem;
    width: 180px;
    vertical-align: top;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.flow-step i {
    font-size: 2rem;
    color: #0056a9;
    margin-bottom: 0.5rem;
}

.step-connector {
    display: inline-block;
    width: 40px;
    height: 4px;
    background-color: #00a3e0;
    margin: 0 0.5rem;
    vertical-align: middle;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .choice-container {
        grid-template-columns: 1fr;
    }

    .flow-step {
        display: block;
        margin: 1rem auto;
        width: 90%;
    }

    .step-connector {
        display: block;
        width: 4px;
        height: 20px;
        margin: 0 auto;
    }

    h1 {
        font-size: 1.5rem;
    }
}