.hex-body {
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    margin: 0;
}

.hex-viewer {
    background-color: #252526;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.header {
    color: #808080;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}

.row {
    display: flex;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.offset {
    color: #858585;
    margin-right: 20px;
    min-width: 80px;
}

.hex-section {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.hex-group {
    display: flex;
    gap: 5px;
}

.hex-byte {
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
}

.ascii-section {
    display: flex;
    gap: 0;
}

.ascii-char {
    min-width: 10px;
    text-align: center;
}

/* Farbschema für verschiedene Datentypen */
.header-magic {
    background-color: #ff6b35;
    color: #fff;
}

.header-offset {
    background-color: #4a7c59;
    color: #fff;
}

.header-flags {
    background-color: #2d3436;
    color: #fff;
}

.type-struct {
    background-color: #fd79a8;
    color: #2d3436;
}

.type-array {
    background-color: #fdcb6e;
    color: #2d3436;
}

.type-string {
    background-color: #e17055;
    color: #fff;
}

.type-symbol {
    background-color: #a29bfe;
    color: #fff;
}

.type-int {
    background-color: #318bf5;
    color: #fff;
}

.type-float {
    background-color: #74b9ff;
    color: #2d3436;
}

.type-bool {
    background-color: #00b894;
    color: #fff;
}

.type-nil-undef {
    background-color: #636e72;
    color: #fff;
}

.type-len {
    background-color: #95a5a6;
    color: #fff;
}

.eod-eof {
    background-color: #d63031;
    color: #fff;
}

.metadata {
    background-color: #292d2e;
    color: #fff;
}

.info {
    background-color: #00000000;
    color: #d4d4d4;
    font-weight: bold;
    margin-bottom: 10px;
}

.legend {
    margin-top: 30px;
    padding: 20px;
    background-color: #2d2d30;
    border-radius: 8px;
}

.legend-title {
    color: #d4d4d4;
    font-weight: bold;
    margin-bottom: 10px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

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