
.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.stat-box {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
}

.stat-label {
    background-color: #2d3748;
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.stat-value {
    padding: 15px 8px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.characters-box .stat-value {
    background-color: #3b5bdb;
    color: white;
}

.parts-box .stat-value {
    background-color: #2b8a3e;
    color: white;
}

.next-part-box .stat-value {
    background-color: #1e3a8a;
    color: white;
}

.encoding-box .stat-value {
    background-color: #e6a23c;
    color: white;
}

.encoding-box.ucs2 .stat-value {
    background-color: #e53e3e;
}

.message-parts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-part {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.header-section,
.message-section {
    margin-bottom: 15px;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 6px;
}


.character-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.character {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a0c0e7;
    border-radius: 4px;
    background-color: #e6f0ff;
    font-size: 12px;
}

.character.empty {
    background-color: #a0a0a0;
    border-color: #808080;
}

.character.non-gsm {
    background-color: #ffd2d2;
    border-color: #e53e3e;
}
