/* ==========================================================================
   SIMULATION.CSS - Interactive Element Styling for Biostatistics Course
   Dependencies: main.css
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES - Simulation Color Palette
   ========================================================================== */
:root {
    /* Module-specific colors */
    --module-1-color: #27ae60;   /* Welcome Green */
    --module-2-color: #3498db;   /* Data Blue */
    --module-3-color: #8e44ad;   /* Network Purple */
    --module-4-color: #f39c12;   /* Activity Orange */
    --assessment-color: #e74c3c; /* Assessment Red */
    
    /* Interaction states */
    --interactive-hover: rgba(52, 152, 219, 0.1);
    --interactive-active: rgba(52, 152, 219, 0.2);
    --interactive-focus: rgba(52, 152, 219, 0.3);
    
    /* Animation durations */
    --animation-fast: 0.2s;
    --animation-medium: 0.3s;
    --animation-slow: 0.5s;
    --animation-very-slow: 1s;
    
    /* Shadows */
    --simulation-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --simulation-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --simulation-shadow-active: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   SIMULATION CONTAINER & LAYOUT
   ========================================================================== */

.simulation-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--simulation-shadow);
    margin: 2rem 0;
    overflow: hidden;
    transition: all var(--animation-medium) ease;
}

.simulation-container:hover {
    box-shadow: var(--simulation-shadow-hover);
    transform: translateY(-2px);
}

.simulation-header {
    background: linear-gradient(135deg, var(--professional-blue), var(--primary-navy));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.simulation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.simulation-body {
    padding: 2rem;
}

.simulation-footer {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-top: 1px solid #ecf0f1;
}

/* ==========================================================================
   INTERACTIVE CONTROLS
   ========================================================================== */

/* Parameter Sliders */
.parameter-slider-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--professional-blue);
}

.parameter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.parameter-value {
    background: var(--professional-blue);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.parameter-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: all var(--animation-medium) ease;
}

.parameter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--professional-blue), var(--primary-navy));
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all var(--animation-medium) ease;
}

.parameter-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.parameter-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--professional-blue), var(--primary-navy));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Data Input Fields */
.data-input-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.data-input-field {
    position: relative;
}

.data-input-field input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--animation-medium) ease;
    background: white;
}

.data-input-field input:focus {
    outline: none;
    border-color: var(--professional-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.data-input-field label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1rem;
    color: #666;
    transition: all var(--animation-medium) ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.data-input-field input:focus + label,
.data-input-field input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--professional-blue);
    font-weight: 600;
}

/* Visualization Toggles */
.visualization-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 10px;
}

.toggle-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--animation-medium) ease;
    font-weight: 600;
    color: var(--primary-navy);
}

.toggle-button:hover {
    border-color: var(--professional-blue);
    transform: translateY(-2px);
    box-shadow: var(--simulation-shadow);
}

.toggle-button.active {
    background: linear-gradient(135deg, var(--professional-blue), var(--primary-navy));
    color: white;
    border-color: var(--professional-blue);
}

.toggle-icon {
    font-size: 1.2rem;
}

/* Scenario Selectors */
.scenario-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.scenario-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--animation-medium) ease;
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--module-1-color), var(--module-2-color), var(--module-3-color), var(--module-4-color));
    transform: scaleX(0);
    transition: transform var(--animation-medium) ease;
}

.scenario-card:hover {
    border-color: var(--professional-blue);
    transform: translateY(-3px);
    box-shadow: var(--simulation-shadow-hover);
}

.scenario-card:hover::before {
    transform: scaleX(1);
}

.scenario-card.selected {
    border-color: var(--professional-blue);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
}

.scenario-card.selected::before {
    transform: scaleX(1);
}

.scenario-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.scenario-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==========================================================================
   DYNAMIC VISUALIZATIONS
   ========================================================================== */

/* Chart Container */
.chart-container {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--simulation-shadow);
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--professional-blue), var(--success-green));
}

.chart-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.chart-canvas {
    width: 100%;
    height: 400px;
    border-radius: 5px;
}

/* 3D Statistical Surfaces */
.surface-3d-container {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.surface-3d-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.surface-control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all var(--animation-medium) ease;
    backdrop-filter: blur(10px);
}

.surface-control-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Animated Process Flows */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.process-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--professional-blue), var(--primary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--animation-medium) ease;
}

.process-step.active .process-step-icon {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 0 30px rgba(52, 152, 219, 0.6); }
}

.process-step-title {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.process-step-description {
    font-size: 0.9rem;
    color: #666;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--professional-blue);
    animation: flow 2s ease-in-out infinite;
}

@keyframes flow {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* Interactive Pharmaceutical Diagrams */
.pharma-diagram {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--simulation-shadow);
}

.diagram-element {
    position: absolute;
    background: linear-gradient(135deg, var(--professional-blue), var(--primary-navy));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--animation-medium) ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.diagram-element:hover {
    transform: scale(1.05);
    box-shadow: var(--simulation-shadow-hover);
    z-index: 10;
}

.diagram-element.highlighted {
    background: linear-gradient(135deg, var(--attention-orange), #e67e22);
    animation: highlight 1s ease-in-out;
}

@keyframes highlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==========================================================================
   ENGAGEMENT ELEMENTS
   ========================================================================== */

/* Gamified Learning Challenges */
.challenge-container {
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.challenge-header {
    text-align: center;
    margin-bottom: 2rem;
}

.challenge-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.challenge-difficulty {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.difficulty-star {
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.difficulty-star.empty {
    color: #ddd;
    text-shadow: none;
}

.challenge-timer {
    background: linear-gradient(135deg, var(--attention-orange), #e67e22);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

.challenge-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--simulation-shadow);
}

.challenge-question {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.challenge-option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all var(--animation-medium) ease;
    position: relative;
}

.challenge-option:hover {
    border-color: var(--professional-blue);
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
}

.challenge-option.selected {
    border-color: var(--professional-blue);
    background: rgba(52, 152, 219, 0.1);
}

.challenge-option.correct {
    border-color: var(--success-green);
    background: rgba(39, 174, 96, 0.1);
    animation: correctAnswer 0.5s ease;
}

.challenge-option.incorrect {
    border-color: var(--assessment-color);
    background: rgba(231, 76, 60, 0.1);
    animation: incorrectAnswer 0.5s ease;
}

@keyframes correctAnswer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes incorrectAnswer {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Progress Badges & Achievements */
.achievement-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.achievement-badge {
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--animation-medium) ease;
}

.achievement-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--simulation-shadow-hover);
}

.achievement-badge.unlocked {
    background: linear-gradient(135deg, var(--success-green), #2ecc71);
    color: white;
}

.achievement-badge.unlocked::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: unlock 1s ease-out;
}

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

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.achievement-progress {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.achievement-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--professional-blue), var(--success-green));
    border-radius: 10px;
    transition: width var(--animation-slow) ease;
}

/* Immediate Feedback Systems */
.feedback-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    animation: popupEnter var(--animation-medium) ease;
}

@keyframes popupEnter {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.feedback-popup.success {
    border-left: 5px solid var(--success-green);
}

.feedback-popup.error {
    border-left: 5px solid var(--assessment-color);
}

.feedback-popup.info {
    border-left: 5px solid var(--professional-blue);
}

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

.feedback-icon {
    font-size: 2rem;
}

.feedback-icon.success {
    color: var(--success-green);
}

.feedback-icon.error {
    color: var(--assessment-color);
}

.feedback-icon.info {
    color: var(--professional-blue);
}

.feedback-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.feedback-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Overlay for popups */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(5px);
    animation: overlayEnter var(--animation-medium) ease;
}

@keyframes overlayEnter {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==========================================================================
   3D NETWORK VISUALIZATION (Module 1 Specific)
   ========================================================================== */

.network-3d-container {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
}

.network-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
}

.network-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 300px;
}

.network-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.9rem;
}

.network-view-toggles {
    display: flex;
    gap: 0.5rem;
}

.network-view-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all var(--animation-medium) ease;
    font-size: 0.9rem;
}

.network-view-btn.active {
    background: var(--professional-blue);
    color: white;
    border-color: var(--professional-blue);
}

.network-canvas {
    width: 100%;
    height: 100%;
}

.network-term-details {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform var(--animation-medium) ease;
    z-index: 10;
}

.network-term-details.visible {
    transform: translateY(0);
}

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

.term-details-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.term-details-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color var(--animation-medium) ease;
}

.term-details-close:hover {
    color: var(--assessment-color);
}

.term-details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.term-definition {
    color: #666;
    line-height: 1.6;
}

.term-connections {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.term-connections-title {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.term-connections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.connection-tag {
    background: var(--professional-blue);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--animation-medium) ease;
}

.connection-tag:hover {
    background: var(--primary-navy);
    transform: scale(1.05);
}

/* ==========================================================================
   DOE DESIGN STUDIO (Module 4 Specific)
   ========================================================================== */

.doe-workspace {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
}

.doe-design-panel {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--simulation-shadow);
}

.doe-visualization-panel {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--simulation-shadow);
}

.factor-input-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.factor-input {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.factor-label {
    font-weight: 600;
    color: var(--primary-navy);
}

.factor-level {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.design-matrix {
    margin-top: 1.5rem;
}

.design-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--simulation-shadow);
}

.design-table th {
    background: linear-gradient(135deg, var(--professional-blue), var(--primary-navy));
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.design-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.design-table tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

.response-input {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    width: 80px;
    text-align: center;
}

.response-input:focus {
    outline: none;
    border-color: var(--professional-blue);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.response-surface-3d {
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.optimization-path {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
}

.optimization-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.optimization-step:last-child {
    border-bottom: none;
}

.step-number {
    background: var(--professional-blue);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.step-value {
    font-size: 0.9rem;
    color: var(--primary-navy);
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .doe-workspace {
        grid-template-columns: 1fr;
    }
    
    .term-details-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .simulation-body {
        padding: 1rem;
    }
    
    .data-input-container {
        grid-template-columns: 1fr;
    }
    
    .visualization-toggles {
        flex-direction: column;
    }
    
    .scenario-selector {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .achievement-container {
        grid-template-columns: 1fr;
    }
    
    .network-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .network-search {
        max-width: none;
    }
    
    .factor-input {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .design-table {
        font-size: 0.8rem;
    }
    
    .design-table th,
    .design-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .simulation-header {
        padding: 1rem;
    }
    
    .challenge-options {
        gap: 0.5rem;
    }
    
    .challenge-option {
        padding: 0.75rem;
    }
    
    .feedback-popup {
        padding: 1rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .network-3d-container {
        height: 400px;
    }
    
    .surface-3d-container {
        height: 350px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .simulation-container {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .network-controls,
    .surface-3d-controls,
    .feedback-popup,
    .feedback-overlay {
        display: none !important;
    }
    
    .chart-container {
        background: white;
    }
    
    .parameter-slider-container {
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus indicators for keyboard navigation */
.parameter-slider:focus,
.data-input-field input:focus,
.toggle-button:focus,
.scenario-card:focus,
.challenge-option:focus,
.network-view-btn:focus {
    outline: 3px solid rgba(52, 152, 219, 0.5);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .simulation-header::before {
        animation: none;
    }
    
    .process-step.active .process-step-icon {
        animation: none;
    }
    
    .process-arrow {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-navy: #000000;
        --professional-blue: #0066cc;
        --success-green: #006600;
        --attention-orange: #cc6600;
        --assessment-color: #cc0000;
    }
    
    .simulation-container {
        border: 2px solid #000;
    }
    
    .parameter-slider {
        background: #fff;
        border: 1px solid #000;
    }
    
    .data-input-field input {
        border: 2px solid #000;
    }
}