/* Styles specific to the Caesar Hacking demos */

/* Brute Force Demo */
.result-grid {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shift-result {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.shift-result:last-child {
    border-bottom: none;
}

/* Frequency Analysis Demo */
.frequency-chart {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.freq-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.freq-letter {
    width: 30px;
    font-weight: bold;
    text-align: center;
}

.freq-bar-outer {
    flex-grow: 1;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin: 0 1rem;
    overflow: hidden;
}

.freq-bar-inner {
    height: 100%;
    background-color: var(--primary-color);
}

.freq-percent {
    width: 50px;
    text-align: right;
}