body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #0d0d0d;
    min-height: 100vh;
    color: #e5e7eb;
}

.container {
    background: #111827;
    border-radius: 20px;
    padding: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    background: #111827;
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 700;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 500;
}

.version-selector {
    text-align: center;
    margin-bottom: 30px;
}

.version-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.version-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.version-btn.active {
    background: #2d3748;
    transform: scale(1.05);
}

.uuid-display {
    background: #1f2937;
    border-radius: 5px;
    color: white;
    padding: 2px;
    margin: 5px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.uuid-container {
    margin: 10px 0;
}

.diagram-container {
    background: #1f2937;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 2px solid #e2e8f0;
}

.uuid-main {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
    color: #00e6e6;
}

.breakdown-table {
    margin-top: 30px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: flex;
    font-weight: bold;
    background: #1f2937;
    color: #00e6e6;
}

.table-row {
    display: flex;
    background: #111827;
    border-top: 1px solid #e2e8f0;
}

.table-cell {
    padding: 12px 8px;
    text-align: center;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border-right: 1px solid #e2e8f0;
    color: #e5e7eb;
    font-size: 0.8em;
}

.table-cell:last-child {
    border-right: none;
}

.table-cell.cell1 { flex: 2; }
.table-cell.cell2 { flex: 1.2; }
.table-cell.cell3 { flex: 1.2; }
.table-cell.cell4 { flex: 1.2; }
.table-cell.cell5 { flex: 2.5; }

.description {
    background: rgba(0, 230, 230, 0.08);
    border-left: 4px solid #00e6e6;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 0.8em;
}

.description h3 {
    color: #00e6e6;
    margin-top: 0;
}

.timeline {
    background: #111827;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline h4 {
    color: #a855f7;
    margin-top: 0;
}

.timeline-item {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #0d0d0d;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 4px solid #a855f7;
    color: #f9fafb;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 12px;
}

.pros {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10b981;
}

.cons {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid #ef4444;
}

.pros h4 {
    color: #10b981;
    margin-top: 0;
}

.cons h4 {
    color: #ef4444;
    margin-top: 0;
}

.info-box {
    background: rgba(168, 85, 247, 0.1);
    border-left: 4px solid #a855f7;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #e5e7eb;
}

/* D3.js specific styles */
.uuid-segment {
    cursor: pointer;
    transition: all 0.3s ease;
}

.uuid-segment:hover {
    stroke: #2d3748;
    stroke-width: 3;
}

.connection-line {
    stroke: #4a5568;
    stroke-width: 2;
    fill: none;
}

.description-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    font-weight: bold;
    fill: #e5e7eb;                /* text color */
    paint-order: stroke;
    stroke: #111827;              /* background-like stroke */
    stroke-width: 4px;            /* thickness */
    stroke-linejoin: round;
}

.arrow {
    fill: #4a5568;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }

    .uuid-main {
        font-size: 18px;
        word-break: break-all;
    }
}
