/* ============================================
   RESET AND BASE STYLES
   ============================================ */

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

body {
    font-family: Georgia, serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.main-header {
    border-bottom: 2px solid #000000;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    font-style: italic;
    color: #333333;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.tab-navigation {
    display: flex;
    border-bottom: 1px solid #000000;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 16px;
    border: 1px solid #000000;
    border-bottom: none;
    background-color: #ffffff;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: normal;
    cursor: pointer;
    font-family: Georgia, serif;
    letter-spacing: 0.5px;
    margin-right: -1px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.tab-button:active {
    transform: translateY(1px);
}

.tab-button.active {
    background-color: #000000;
    color: #ffffff;
}

.tab-button:hover:not(.active) {
    background-color: #f0f0f0;
}

/* ============================================
   TAB CONTENT
   ============================================ */

.tab-content {
    display: none;
}

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

.tab-content h2 {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.tab-content h3 {
    font-size: 16px;
    font-weight: normal;
    margin: 30px 0 15px 0;
    letter-spacing: 0.5px;
}

.tab-content p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.tab-content ul {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
    margin-left: 25px;
}

.tab-content ul li {
    margin-bottom: 8px;
}

/* ============================================
   INFO BOXES
   ============================================ */

.info-box {
    padding: 20px;
    margin-bottom: 25px;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    font-size: 12px;
    line-height: 1.9;
}

.theory-box {
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 25px;
    background-color: #fffef5;
    border-left: 4px solid #d4af37;
    font-size: 12px;
    line-height: 1.9;
}

.interaction-box {
    padding: 20px;
    margin: 25px 0;
    background-color: #f0f8ff;
    border: 1px solid #4682b4;
    font-size: 12px;
    line-height: 1.9;
}

.interaction-box ol {
    margin-left: 20px;
    margin-top: 10px;
}

.interaction-box ol li {
    margin-bottom: 8px;
}

.experiment-box {
    padding: 20px;
    margin: 25px 0;
    background-color: #fff5f0;
    border: 1px solid #ff8c42;
    font-size: 12px;
    line-height: 1.9;
}

.experiment-list p {
    margin-top: 10px;
    margin-bottom: 10px;
}

.why-matters-box {
    padding: 20px;
    margin: 25px 0;
    background-color: #f5f5f0;
    border-left: 4px solid #556b2f;
    font-size: 12px;
    line-height: 1.9;
}

.visual-comparison-title {
    margin-top: 15px;
    font-weight: bold;
    font-size: 13px;
}

.formula-box {
    padding: 25px;
    margin-top: 30px;
    background-color: #fafafa;
    border: 2px solid #666666;
    font-size: 12px;
    line-height: 1.9;
}

.formula-box .formula {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
}

.interpretation-box {
    padding: 20px;
    margin-top: 25px;
    background-color: #f8f8ff;
    border: 1px solid #6a5acd;
    font-size: 12px;
    line-height: 1.9;
}

.chart-description {
    font-size: 12px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 20px;
}

/* ============================================
   MODEL TAB SPECIFIC
   ============================================ */

.modal-unity-box {
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #000000;
    background-color: #ffffff;
    text-align: center;
}

.modal-unity-value {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

#modal-unity-display {
    color: #0066cc;
    font-family: 'Courier New', monospace;
}

.status-indicator {
    height: 15px;
    margin: 15px auto;
    width: 100%;
    max-width: 300px;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.status-indicator.high {
    background-color: #c8e6c9;
    border: 1px solid #4caf50;
}

.status-indicator.moderate {
    background-color: #ffe0b2;
    border: 1px solid #ff9800;
}

.status-indicator.low {
    background-color: #ffcdd2;
    border: 1px solid #f44336;
}

/* Modal Unity - Redesigned for Readability */
.mu-header {
    margin-bottom: 25px;
}

.mu-header h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.mu-subtitle {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.mu-main-display {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 20px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.mu-value-section {
    text-align: center;
}

.mu-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666666;
    margin-bottom: 10px;
}

.mu-value-large {
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
    font-family: Georgia, serif;
}

.mu-value-large span {
    color: #0066cc;
    font-family: 'Courier New', monospace;
}

.mu-gauge-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mu-gauge {
    position: relative;
    height: 40px;
    background: linear-gradient(to right, #ffcdd2 0%, #ffe0b2 50%, #c8e6c9 100%);
    border: 2px solid #000000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mu-gauge-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 76.61%;
    background-color: rgba(0, 0, 0, 0.2);
    border-right: 3px solid #000000;
    transition: width 0.5s ease;
}

.mu-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666666;
    font-family: 'Courier New', monospace;
}

.mu-interpretation {
    padding: 15px 20px;
    background-color: #ffffff;
    border-left: 4px solid #ff9800;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

.mu-details {
    margin: 20px 0;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
}

.mu-details summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    user-select: none;
    transition: background-color 0.2s ease;
}

.mu-details summary:hover {
    background-color: #f5f5f5;
}

.mu-details[open] summary {
    border-bottom: 1px solid #cccccc;
    background-color: #f9f9f9;
}

.mu-details-content {
    padding: 20px;
}

.mu-details-content p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.mu-scale-guide {
    margin: 20px 0;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    font-size: 12px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.scale-dot {
    font-size: 20px;
}

.scale-dot.high { color: #4caf50; }
.scale-dot.moderate { color: #ff9800; }
.scale-dot.low { color: #f44336; }

.scale-item strong {
    min-width: 80px;
    font-family: 'Courier New', monospace;
}

.mu-formula-text {
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
}

.mu-instructions {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin: 15px 0 0 0;
    padding: 12px;
    background-color: #f0f8ff;
    border-radius: 4px;
}

/* Model Tab - Linear vs QUASI Comparison */
.case-study-box {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border: 2px solid #000000;
    text-align: center;
}

.case-study-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.case-description p {
    font-size: 14px;
    margin-bottom: 10px;
}

.case-description strong {
    font-size: 15px;
}

.case-context {
    font-size: 12px;
    color: #666666;
    font-style: italic;
    line-height: 1.7;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.approach-box {
    padding: 25px;
    border: 3px solid #000000;
    border-radius: 4px;
}

.linear-approach {
    background-color: #f5f5f5;
}

.quasi-approach {
    background-color: #f0f8ff;
}

.approach-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
}

.approach-description {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cccccc;
}

.approach-description p {
    font-size: 12px;
    margin-bottom: 8px;
}

.approach-logic {
    font-weight: bold;
    font-style: italic;
    color: #0066cc;
}

.linear-result {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #666666;
    border-radius: 4px;
    margin-bottom: 20px;
}

.result-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666666;
    margin-bottom: 10px;
}

.result-value-large {
    font-size: 36px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #000000;
    margin: 10px 0;
}

.result-note {
    font-size: 11px;
    color: #666666;
    margin-top: 10px;
    line-height: 1.5;
}

.linear-problems {
    padding: 15px;
    background-color: #fff5f5;
    border-left: 4px solid #f44336;
    border-radius: 4px;
}

.linear-problems strong {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
}

.linear-problems ul {
    margin: 0;
    padding-left: 20px;
    font-size: 11px;
    line-height: 1.8;
}

.linear-problems li {
    margin-bottom: 5px;
}

.quasi-controls {
    margin-bottom: 20px;
}

.control-instruction {
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: bold;
}

.quasi-variable {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.quasi-variable label {
    font-size: 11px;
    font-weight: bold;
}

.quasi-slider {
    width: 100%;
    height: 6px;
    cursor: pointer;
}

.quasi-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #0066cc;
    min-width: 35px;
    text-align: right;
}

.quasi-result {
    background-color: #ffffff;
    border: 2px solid #4caf50;
    border-radius: 4px;
    padding: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.mini-result {
    text-align: center;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.mini-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 8px;
}

.mini-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #4caf50;
}

.comparison-analysis {
    margin-bottom: 30px;
}

.comparison-analysis h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.implications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.implication-card {
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #000000;
}

.linear-card {
    background-color: #fff5f5;
    border-color: #f44336;
}

.quasi-card {
    background-color: #f0fff0;
    border-color: #4caf50;
}

.implication-card h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: bold;
}

.implication-card p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.implication-card strong {
    color: #000000;
}

.key-principle-box {
    padding: 30px;
    margin-bottom: 30px;
    background-color: #fffef5;
    border: 3px solid #d4af37;
    border-radius: 4px;
}

.key-principle-box h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    text-align: center;
}

.principle-quote {
    font-size: 15px;
    font-style: italic;
    line-height: 1.8;
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-left: 5px solid #d4af37;
    color: #333333;
}

.principle-explanation {
    font-size: 13px;
    line-height: 1.8;
    color: #444444;
}

.measurement-box {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border: 2px solid #000000;
}

.measurement-box h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.measurement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.quantitative-section,
.qualitative-section {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
}

.measurement-box h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: bold;
}

.measurement-label {
    font-size: 12px;
    margin-bottom: 10px;
    color: #666666;
}

.intensity-slider-container {
    margin: 15px 0;
}

#intensity-slider {
    width: 100%;
    height: 8px;
    cursor: pointer;
}

.intensity-display {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    color: #0066cc;
}

.quality-selector {
    width: 100%;
    padding: 12px;
    font-family: Georgia, serif;
    font-size: 14px;
    border: 1px solid #000000;
    background-color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
}

.measurement-note {
    font-size: 11px;
    font-style: italic;
    color: #666666;
    margin-top: 15px;
    line-height: 1.5;
}

.meaning-gap-display {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
}

.meaning-gap-display strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}

.gap-bar {
    height: 25px;
    background-color: #f0f0f0;
    border: 2px solid #000000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.gap-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(to right, #000000, #666666);
    transition: width 0.5s ease;
}

#gap-interpretation {
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    color: #333333;
}

.historical-context-box {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fffef5;
    border: 2px solid #d4af37;
}

.historical-context-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.context-intro {
    font-size: 13px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #ffffff;
    border-left: 4px solid #d4af37;
}

.context-sliders {
    margin: 20px 0;
}

.context-item {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.context-item label {
    font-size: 12px;
    font-weight: bold;
}

.context-slider {
    width: 100%;
    height: 6px;
    cursor: pointer;
}

.context-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #0066cc;
    min-width: 40px;
    text-align: right;
}

.interpretation-bias-display {
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #000000;
    text-align: center;
    margin-top: 20px;
    border-radius: 4px;
}

.interpretation-bias-display strong {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.bias-value {
    font-size: 32px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #d4af37;
    margin: 15px 0;
}

.bias-note {
    font-size: 11px;
    color: #666666;
    margin: 10px 0 0 0;
}

.understanding-box {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #f0f8ff;
    border: 2px solid #4169e1;
}

.understanding-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.understanding-intro {
    font-size: 13px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #ffffff;
    border-left: 4px solid #4169e1;
}

.understanding-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.understanding-item {
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.understanding-item label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.understanding-slider {
    width: 100%;
    height: 6px;
    cursor: pointer;
    margin-bottom: 10px;
}

.understanding-value {
    display: block;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #4169e1;
}

.outcomes-box {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #f5fff5;
    border: 2px solid #4caf50;
}

.outcomes-box h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.outcome-card {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
    text-align: center;
}

.outcome-card h4 {
    margin: 0 0 15px 0;
    font-size: 13px;
    font-weight: bold;
}

.outcome-meter {
    height: 15px;
    background-color: #f0f0f0;
    border: 1px solid #000000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.meter-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(to right, #4caf50, #8bc34a);
    transition: width 0.5s ease, background 0.5s ease;
}

.outcome-value {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #0066cc;
    margin-bottom: 10px;
}

.outcome-desc {
    font-size: 11px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.psychological-state-display {
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
    text-align: center;
}

.psychological-state-display strong {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
}

.state-classification {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
    color: #4caf50;
    transition: color 0.5s ease;
}

.state-interpretation {
    font-size: 13px;
    line-height: 1.7;
    color: #333333;
    margin: 0;
}

.visualization-box {
    margin-bottom: 30px;
}

.visualization-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.chart-note {
    font-size: 12px;
    color: #666666;
    font-style: italic;
    text-align: center;
    margin-top: 15px;
}

/* Overview Tab Styles */
.overview-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border: 2px solid #000000;
}

.paper-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 15px;
}

.paper-author {
    font-size: 16px;
    font-style: italic;
    color: #666666;
}

.overview-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.principle-card {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.principle-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.principle-card h4 {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #0066cc;
}

.principle-card p {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.pdf-container {
    margin: 30px 0;
}

.pdf-info {
    padding: 25px;
    background-color: #fffef5;
    border: 2px solid #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

.pdf-info p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.pdf-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pdf-link:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.pdf-link:active {
    transform: translateY(0);
}

.pdf-embed {
    margin-top: 30px;
}

.pdf-embed iframe {
    width: 100%;
    min-height: 800px;
    border: 1px solid #000000;
}

.tab-links {
    margin: 20px 0;
    padding-left: 25px;
}

.tab-links li {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 10px;
}

.tab-links strong {
    color: #0066cc;
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-intro {
        padding: 20px;
    }
    
    .paper-title {
        font-size: 16px;
    }
    
    .pdf-embed iframe {
        min-height: 500px;
    }
}

.emotion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 30px 0;
}

.emotion-card {
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid #000000;
    border-radius: 4px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.emotion-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.emotion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.emotion-label {
    font-size: 14px;
    font-weight: bold;
}

.emotion-value {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #0066cc;
}

.emotion-slider {
    width: 100%;
    height: 8px;
    cursor: pointer;
    margin: 10px 0;
    transition: opacity 0.2s ease;
}

.emotion-slider:hover {
    opacity: 0.8;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #777777;
    margin-top: 8px;
    margin-bottom: 15px;
}

.emotion-details {
    font-size: 11px;
    color: #555555;
    line-height: 1.6;
}

.emotion-details div {
    margin-bottom: 5px;
}

.emotion-details span {
    font-family: 'Courier New', monospace;
    color: #0066cc;
}

/* ============================================
   ASYMMETRY DIAGRAM
   ============================================ */

.asymmetry-diagram {
    position: relative;
    height: 500px;
    margin: 30px 0;
    border: 2px solid #000000;
    background-color: #f9f9f9;
}

.timeline-axis {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #000000;
}

.label {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.present-label {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 5px 10px;
    border: 2px solid #000000;
}

.past-label {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.future-label {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.past-option {
    position: absolute;
    padding: 15px 20px;
    border: 2px solid #8b0000;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-family: Georgia, serif;
    transition: all 0.3s ease, transform 0.2s ease;
}

.past-option:active {
    transform: scale(0.98);
}

#past-x {
    left: 15%;
    top: 20%;
}

#past-y {
    left: 15%;
    top: 45%;
    transform: translateY(-50%);
}

#past-z {
    left: 15%;
    bottom: 20%;
}

.past-option:hover {
    background-color: #ffe4e1;
}

.past-option.selected {
    border-color: #ff69b4;
    background-color: #ffb6c1;
    font-weight: bold;
}

.hidden {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Smooth fade-in for elements being revealed */
.asymmetry-diagram > div:not(.hidden),
.resolution-diagram > div:not(.hidden) {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#actualized-label {
    position: absolute;
    left: 15%;
    top: 45%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    padding: 15px 20px;
    border: 2px solid #ff69b4;
    background-color: #ffb6c1;
}

#future-option-a {
    position: absolute;
    right: 15%;
    top: 30%;
    padding: 15px 20px;
    border: 2px solid #4169e1;
    background-color: #e0e8ff;
    font-size: 12px;
}

#future-option-b {
    position: absolute;
    right: 15%;
    bottom: 30%;
    padding: 15px 20px;
    border: 2px solid #4169e1;
    background-color: #e0e8ff;
    font-size: 12px;
}

#option-field {
    position: absolute;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-style: italic;
    color: #4169e1;
}

#asymmetry-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ============================================
   RESOLUTION DIAGRAM
   ============================================ */

.resolution-control {
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #cccccc;
    background-color: #fafafa;
}

.resolution-control label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

#resolution-level-text {
    color: #0066cc;
    font-family: 'Courier New', monospace;
}

#resolution-slider {
    width: 100%;
    height: 8px;
    cursor: pointer;
    margin: 15px 0;
    transition: opacity 0.2s ease;
}

#resolution-slider:hover {
    opacity: 0.8;
}

.resolution-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #555555;
    margin-top: 10px;
}

.resolution-diagram {
    position: relative;
    height: 500px;
    margin: 30px 0;
    border: 2px solid #000000;
    background-color: #f9f9f9;
}

.vertical-axis {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.axis-label {
    padding: 10px 5px;
}

.axis-label.curvilinear {
    color: #006400;
    font-weight: bold;
}

.axis-label.binaries {
    color: #8b0000;
    font-weight: bold;
}

.resolution-z {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 30px;
    border: 3px solid #006400;
    background-color: #f0fff0;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.field-tension-box {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    padding: 20px;
    border: 2px solid #ff8c00;
    background-color: #fff8dc;
    font-size: 12px;
    text-align: center;
}

.linear-relation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 12px;
}

.linear-relation > div {
    margin: 15px 0;
}

.relation-text {
    font-size: 10px;
    font-style: italic;
    color: #666666;
}

.broken-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 12px;
}

.broken-links > div {
    margin: 15px 0;
}

.break-text {
    font-size: 10px;
    font-style: italic;
    color: #ff0000;
    text-decoration: line-through;
}

.wandering-label {
    position: absolute;
    font-size: 11px;
    font-style: italic;
    color: #228b22;
}

#wandering-x {
    top: 40%;
    left: 25%;
}

#wandering-nonx {
    top: 60%;
    right: 25%;
}

.irreconcilable-section {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.irreconcilable-section > div:first-child {
    font-size: 11px;
    text-transform: uppercase;
    color: #8b0000;
    margin-bottom: 15px;
}

.opposites {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.opposites span {
    padding: 15px 25px;
    border: 2px solid #8b0000;
    background-color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
}

.opposites span:hover {
    background-color: #fff5f5;
    transform: scale(1.05);
}

/* ============================================
   CHART CONTAINERS
   ============================================ */

.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #000000;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ============================================
   SYNTHESIS TAB SPECIFIC
   ============================================ */

.synthesis-control {
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #cccccc;
    background-color: #fafafa;
}

.synthesis-control label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

#synthesis-level-display {
    color: #0066cc;
    font-family: 'Courier New', monospace;
}

#synthesis-slider {
    width: 100%;
    height: 8px;
    cursor: pointer;
    margin: 15px 0;
    transition: opacity 0.2s ease;
}

#synthesis-slider:hover {
    opacity: 0.8;
}

/* ============================================
   TEMPORAL TAB SPECIFIC
   ============================================ */

.temporal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.temporal-card {
    padding: 25px;
    border: 2px solid #000000;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
}

.temporal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.temporal-card h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 10px;
}

.temporal-card ul {
    margin-left: 0;
    list-style-position: inside;
}

.temporal-card .example {
    margin-top: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-left: 3px solid #0066cc;
    font-size: 11px;
    font-style: italic;
    line-height: 1.7;
}

/* ============================================
   EQUIFINALITY TAB SPECIFIC
   ============================================ */

#equifinality-chart {
    margin: 30px 0;
}

/* ============================================
   FUNCTIONS TAB SPECIFIC
   ============================================ */

.function-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #cccccc;
    background-color: #fafafa;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.control-group select {
    width: 100%;
    padding: 8px;
    font-family: Georgia, serif;
    font-size: 12px;
    border: 1px solid #000000;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.control-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.control-group select:hover {
    border-color: #333333;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.control-group input[type="range"]:hover {
    opacity: 0.8;
}

.control-group span {
    color: #0066cc;
    font-family: 'Courier New', monospace;
}

.function-description {
    padding: 20px;
    margin: 25px 0;
    background-color: #f0f8ff;
    border-left: 4px solid #4169e1;
    font-size: 12px;
    line-height: 1.9;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    margin-top: 70px;
    padding-top: 25px;
    border-top: 1px solid #000000;
    font-size: 11px;
    color: #666666;
    line-height: 1.8;
}

.main-footer p {
    margin-bottom: 12px;
}

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

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .main-header {
        padding-bottom: 15px;
    }
    
    .main-header h1 {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .emotion-grid,
    .temporal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .function-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tab-button {
        font-size: 9px;
        padding: 10px 12px;
    }
    
    .asymmetry-diagram,
    .resolution-diagram {
        height: 400px;
    }
    
    .tab-content h2 {
        font-size: 18px;
    }
    
    .tab-content h3 {
        font-size: 15px;
    }
    
    .modal-unity-box,
    .resolution-control,
    .synthesis-control {
        padding: 20px;
    }
    
    .slider-labels {
        font-size: 10px;
    }
    
    .chart-container {
        height: 300px;
        margin-bottom: 20px;
        padding: 10px;
    }
    
    .mu-main-display {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .mu-value-large {
        font-size: 28px;
    }
    
    .mu-gauge {
        height: 30px;
    }
    
    .measurement-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .understanding-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quasi-variable {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .quasi-value {
        text-align: center;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .implications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

