/* ---------------- Coluna Central ---------------- */
body {
    font-family: Arial, sans-serif;
    background: #f4f7fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    /* Largura compactada de 450px para alinhar com os inputs */
    width: 450px; 
    max-width: 90%;
    background: #fff;
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.section-title, .result-title, .comb-title {
    font-weight: bold;
    font-size: 0.95em;
    color: #34495e;
    margin-top: 18px;
    margin-bottom: 6px;
    text-align: center;
}

input[type=text], input[type=number] {
    width: 100%;
    padding: 7px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 0.95em;
}

.hash-algorithms {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
    /* Espaçamento de 15px entre os botões de Hash */
    gap: 15px; 
}

label.tag {
    display: flex; 
    align-items: center;
    justify-content: center;
    /* Altura reduzida para 30px */
    height: 30px;
    background: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.90em;
    transition: 0.2s;
    border: 1px solid #ccc;
    padding: 0 8px;
    /* CRUCIAL: width: 100% removido */
    text-align: center;
    box-sizing: border-box; 
}

label.tag:hover {
    background: #cce0ff;
}

/* Regra para os botões de Hash (Flexbox) */
.hash-algorithms label.tag {
    flex: 1; 
    width: auto; 
    margin: 0;
}

input.tag-radio, input.tag-checkbox {
    display: none;
}

input:checked + label.tag {
    background: #4CAF50;
    color: #fff;
}

.options-grid, .comb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Espaçamento horizontal e vertical consistentes */
    gap: 10px 15px; 
    margin-bottom: 18px;
}

.result-row {
    display: flex;
    align-items: center;
    column-gap: 6px;
    position: relative;
}

#ValueHash {
    font-family: monospace;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    height: 50px;
    resize: none;
    overflow-y: auto;
    white-space: pre-wrap;
    box-sizing: border-box;
    font-size: 0.95em;
}

.button-icon {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5em;
}