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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.timestamp {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.theory-section {
    background: white;
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theory-header {
    cursor: pointer;
    user-select: none;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

.theory-header:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 0 -15px 20px -15px;
}

.theory-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
}

.toggle-icon {
    font-size: 14px;
    color: #7f8c8d;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 20px;
}

.toggle-icon.expanded {
    /* Arrow direction is handled by JavaScript text content changes */
}

.theory-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin: 5px 0 0 30px;
    font-style: italic;
}

.theory-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.theory-content h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
}

.theory-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.theory-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.cache-behavior {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.cache-hit, .cache-miss {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid;
}

.cache-hit {
    border-color: #27ae60;
}

.cache-miss {
    border-color: #e74c3c;
}

.cache-hit h4, .cache-miss h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.docs-links {
    background: #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.docs-links h3 {
    margin-top: 0;
    color: #2c3e50;
}

.docs-links a {
    color: #3498db;
    text-decoration: none;
}

.docs-links a:hover {
    text-decoration: underline;
}

.execution-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.execution-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.execution-detail strong {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.execution-detail span {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .execution-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .execution-detail {
        flex-direction: row;
        gap: 8px;
    }
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-card h3 {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 10px;
}

.summary-card .value {
    font-size: 36px;
    font-weight: bold;
}

.summary-card.passed .value { color: #27ae60; }
.summary-card.failed .value { color: #e74c3c; }
.summary-card.disabled .value { color: #95a5a6; }
.summary-card.aborted .value { color: #f39c12; }

/* Help card styles */
.summary-card.help-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
}

.summary-card.help-card h3 {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.help-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.help-link {
    color: #2c3e50;
    background: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 12px;
    border: 2px solid white;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-link:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #1a252f;
}

.cache-stats {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cache-metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.cache-metric:last-child {
    border-bottom: none;
}

.cache-metric .label {
    font-weight: 500;
}

.cache-metric .value {
    font-weight: bold;
}

.hit-rate {
    color: #27ae60;
}

.cache-overview {
    margin-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 20px;
}

.context-cache-details h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.cache-entry {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.cache-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.cache-id {
    color: #2c3e50;
    font-family: monospace;
    font-size: 14px;
}

.bean-count {
    color: #7f8c8d;
    font-size: 14px;
}

.context-stats {
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: #34495e;
    font-size: 13px;
    font-weight: 500;
}

.stat-value {
    color: #2c3e50;
    font-size: 13px;
    font-family: monospace;
    font-weight: 600;
}

.test-classes {
    font-size: 14px;
    line-height: 1.5;
}

.test-classes .test-class {
    color: #34495e;
    font-family: monospace;
    font-size: 13px;
}

.test-class {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-class-header {
    padding: 15px 20px;
    background: #34495e;
    color: white;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-class-header:hover {
    background: #2c3e50;
}

.test-class-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.test-methods {
    padding: 20px;
    display: none;
}

.test-methods.show {
    display: block;
}

.test-method {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid;
    background: #f8f9fa;
}

.test-method.passed {
    border-color: #27ae60;
}

.test-method.failed {
    border-color: #e74c3c;
}

.test-method.disabled {
    border-color: #95a5a6;
}

.test-method.aborted {
    border-color: #f39c12;
}

.test-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-method-name {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.test-duration {
    color: #7f8c8d;
    font-size: 14px;
}

.execution-overview {
    background: #e8f5e8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.test-class-package {
    font-size: 12px;
    color: #7f8c8d;
    font-family: 'Courier New', monospace;
}

.context-info {
    background: #f0f8ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.context-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
}

.context-metrics {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.context-metric {
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #bdc3c7;
}

.test-method-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.test-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #ecf0f1;
    color: #2c3e50;
    text-transform: uppercase;
    font-weight: bold;
}

.test-reason {
    margin-top: 8px;
    padding: 8px;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 13px;
    border-left: 3px solid #ffc107;
}

.error-details {
    margin-top: 10px;
    padding: 10px;
    background: #fee;
    border-radius: 4px;
    font-size: 12px;
    border-left: 3px solid #e74c3c;
}

.error-details h5 {
    margin: 0 0 8px 0;
    color: #c0392b;
    font-size: 13px;
}

.error-details pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    white-space: pre-wrap;
    overflow-x: auto;
    line-height: 1.4;
}

.cache-keys-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cache-key-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.cache-key-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cache-key-usage {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.cache-key-stat {
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #bdc3c7;
}

.test-classes-list {
    margin-top: 10px;
}

.test-class-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px 4px 2px 0;
    border: 1px solid #bbdefb;
}

.context-configs-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.context-config-item {
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.context-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.context-config-id {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.context-config-test-count {
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.context-bean-count {
    background: #9b59b6;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.config-details {
    background: white;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
}

.config-detail-item {
    margin: 5px 0;
    display: flex;
    align-items: flex-start;
}

.config-detail-key {
    font-weight: bold;
    color: #7f8c8d;
    min-width: 150px;
    margin-right: 10px;
}

.config-detail-value {
    color: #2c3e50;
    word-break: break-word;
}

.context-test-classes {
    margin-top: 10px;
}

.context-test-class {
    display: inline-block;
    background: #e8f4f8;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-family: monospace;
}

/* Context complexity analysis styles */
.context-complexity {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border-left: 4px solid #bdc3c7;
}

.complexity-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Footer styles */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    font-size: 13px;
    color: #6c757d;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 5px 0;
    line-height: 1.6;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Optimization Section Styles */
.optimization-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.optimization-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.optimization-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.optimization-metric {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.optimization-metric.potential-savings {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #d5f4e6 0%, #f8f9fa 100%);
}

.optimization-metric.wasted-time {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fde8e8 0%, #f8f9fa 100%);
}

.optimization-metric .label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.optimization-metric .value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.optimization-metric .value.large {
    font-size: 32px;
    color: #27ae60;
}

.optimization-metric .percentage {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

.optimization-opportunities h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.opportunities-list {
    display: grid;
    gap: 15px;
}

.opportunity-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #f39c12;
}

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

.opportunity-header .test-class {
    font-family: monospace;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.opportunity-header .load-time {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.opportunity-details {
    margin-bottom: 10px;
    color: #7f8c8d;
    font-size: 13px;
}

.opportunity-recommendation {
    color: #34495e;
    font-size: 14px;
    line-height: 1.5;
    background: white;
    padding: 10px;
    border-radius: 4px;
}

.optimization-tips {
    margin-top: 30px;
}

.optimization-tips h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tip-card .tip-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.tip-card h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.tip-card p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.impact-analysis {
    margin-top: 30px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #27ae60;
}

.impact-analysis h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.impact-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.impact-metric {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.impact-metric .impact-title {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.impact-metric .impact-value {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
}

.no-optimization-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive adjustments for optimization section */
@media (max-width: 768px) {
    .optimization-summary {
        grid-template-columns: 1fr;
    }

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

    .impact-content {
        flex-direction: column;
        align-items: center;
    }

    .opportunity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Static Analysis Recommendations Styles */
.static-analysis-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.static-analysis-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.section-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.optimization-records {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.optimization-record-card {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.optimization-record-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.record-header {
    margin-bottom: 15px;
}

.record-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.record-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.severity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.severity-low {
    background-color: #d4edda;
    color: #155724;
}

.severity-badge.severity-medium {
    background-color: #fff3cd;
    color: #856404;
}

.severity-badge.severity-high {
    background-color: #f8d7da;
    color: #721c24;
}

.severity-badge.severity-critical {
    background-color: #f5c6cb;
    color: #491217;
}

.record-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.test-class-name {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.source-location {
    color: #6c757d;
}

.record-content {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.record-description {
    margin-bottom: 15px;
    color: #495057;
    line-height: 1.5;
}

.record-recommendation {
    background-color: #e7f3ff;
    border-radius: 6px;
    padding: 15px;
    border-left: 3px solid #0366d6;
}

.record-recommendation h4 {
    color: #0366d6;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.recommendation-text {
    color: #24292e;
    line-height: 1.4;
}

.recommendation-text ul {
    margin-left: 20px;
    margin-top: 8px;
}

.recommendation-text li {
    margin-bottom: 4px;
}

/* Responsive adjustments for static analysis section */
@media (max-width: 768px) {
    .record-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .record-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Timeline Section Styles */
.timeline-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.timeline-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-summary {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #9b59b6;
}

.timeline-metric {
    text-align: center;
}

.timeline-metric .label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.timeline-metric .value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c3e50;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.creation {
    background-color: #e74c3c;
}

.legend-color.active {
    background-color: #27ae60;
}

.legend-color.cached {
    background-color: #3498db;
}

.timeline-chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 15px;
}

.timeline-details {
    margin-bottom: 30px;
}

.timeline-details h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.timeline-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-table th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.timeline-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.timeline-table tr:last-child td {
    border-bottom: none;
}

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

.context-name {
    font-family: monospace;
    font-weight: 600;
    color: #2c3e50;
}

.phase-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.phase-badge.phase-creation {
    background-color: #fde8e8;
    color: #e74c3c;
}

.phase-badge.phase-active {
    background-color: #d5f4e6;
    color: #27ae60;
}

.phase-badge.phase-cached {
    background-color: #e8f4f8;
    color: #3498db;
}

.time-value, .duration-value {
    font-family: monospace;
    color: #7f8c8d;
    font-weight: 500;
}

.details {
    color: #34495e;
    font-style: italic;
}

.timeline-insights {
    background: linear-gradient(135deg, #f8f4ff 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #9b59b6;
}

.timeline-insights h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.insight-card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #9b59b6;
}

.insight-card h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.insight-card p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.no-timeline-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive adjustments for timeline section */
@media (max-width: 768px) {
    .timeline-legend {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .timeline-summary {
        flex-direction: column;
        gap: 15px;
    }

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

    .timeline-chart-container {
        height: 300px;
    }

    .timeline-table {
        font-size: 12px;
    }

    .timeline-table th,
    .timeline-table td {
        padding: 8px;
    }
}

/* Context Comparison Visualizer Styles */
.context-comparison-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
}

.dropdown-container label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.context-dropdown {
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.context-dropdown:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.context-dropdown:hover {
    border-color: #3498db;
}

.vs-separator {
    font-size: 18px;
    font-weight: bold;
    color: #7f8c8d;
    margin: 0 10px;
    align-self: flex-end;
    margin-bottom: 8px;
}

.compare-button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-end;
    margin-bottom: 8px;
}

.compare-button:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
}

.compare-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.comparison-legend {
    display: none;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c3e50;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #34495e;
}

.legend-color.same-config {
    background-color: #27ae60;
}

.legend-color.different-values {
    background-color: #e74c3c;
}

.legend-color.only-in-a {
    background-color: #f39c12;
}

.legend-color.only-in-b {
    background-color: #9b59b6;
}

.comparison-visualization {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 400px;
}

.comparison-visualization svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#test-classes-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}


/* Responsive adjustments for context comparison */
@media (max-width: 768px) {
    .context-comparison-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .dropdown-container {
        min-width: unset;
    }

    .vs-separator {
        align-self: center;
        margin: 0;
    }

    .compare-button {
        align-self: stretch;
        margin: 0;
    }

    .comparison-legend {
        justify-content: center;
        gap: 15px;
    }

    .comparison-visualization {
        padding: 10px;
        overflow-x: auto;
    }

}

/* Enhanced Context Comparison Styles */
.detailed-comparison-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.detailed-comparison-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    margin: 0;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 3px solid #2980b9;
}

.detailed-comparison-content {
    display: flex;
    gap: 0;
    min-height: 300px;
}

.context-detail-card {
    flex: 1;
    padding: 30px;
    position: relative;
}

.context-detail-card:first-child {
    border-right: 2px solid #ecf0f1;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.context-detail-card:last-child {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.context-detail-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
    text-align: center;
    position: relative;
}

.context-detail-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #e74c3c;
}

.context-detail-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
}

.context-detail-value:empty {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

.context-detail-value:empty::before {
    content: 'Click on an attribute circle above to see detailed comparison';
}

.context-detail-value pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    min-width: 0;
}

.context-detail-value .highlight-same {
    background: #d4edda;
    color: #155724;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.context-detail-value .highlight-different {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.context-detail-value .attribute-name {
    font-weight: 700;
    color: #495057;
    display: block;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

/* Enhanced circle styles for clickable indicators */
.comparison-visualization circle[data-clickable="true"] {
    cursor: pointer;
    transition: all 0.2s ease;
    stroke-width: 2;
}

.comparison-visualization circle[data-clickable="true"]:hover {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.4));
    transform: scale(1.05);
}

.comparison-visualization circle[data-clickable="true"].selected {
    stroke: #f39c12;
    stroke-width: 4;
    filter: drop-shadow(0 0 12px rgba(243, 156, 18, 0.6));
}

/* Test Class Search Styles */
.test-class-search-container {
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.test-class-search-container h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.search-instructions {
    margin: 10px 0 15px 0;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.search-input-container {
    position: relative;
    margin-bottom: 15px;
}

.test-class-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: border-color 0.2s ease;
    background: white;
}

.test-class-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.test-class-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.test-class-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-class-name {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.suggestion-context-id {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
    display: block;
}

.test-class-search-results {
    display: none;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 15px;
}

.test-class-search-results.show {
    display: block;
}

.search-results-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    font-size: 14px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-class {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.search-result-context {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-context:hover {
    background-color: #dee2e6;
}

/* Responsive design for detailed comparison */
@media (max-width: 768px) {
    .detailed-comparison-content {
        flex-direction: column;
    }

    .context-detail-card:first-child {
        border-right: none;
        border-bottom: 2px solid #ecf0f1;
    }

    .context-detail-card {
        padding: 20px;
    }

    .detailed-comparison-title {
        padding: 15px 20px;
        font-size: 16px;
    }

    .test-class-search-container {
        padding: 15px;
    }

    .search-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
