:root {
    --dot-active: #4f46e5;
    --dot-inactive: #e2e8f0;
}

.reader-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.instruction {
    text-align: center;
    margin-bottom: 0.5rem;
}

.instruction h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.instruction p {
    color: var(--muted-text);
    font-size: 0.85rem;
    margin: 0;
}

.braille-input-cell {
    display: grid;
    grid-template-columns: repeat(2, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 15px;
    background: #f1f5f9;
    padding: 25px;
    border-radius: 1.5rem;
    border: 2px solid #e2e8f0;
}

.dot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--dot-inactive);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #94a3b8;
    font-size: 1.1rem;
}

.dot-toggle.active {
    background-color: var(--dot-active);
    color: white;
    transform: scale(1.05);
}

.reader-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn.secondary {
    background-color: #6366f1;
}

.btn.danger {
    background-color: var(--accent-color);
}

.result-display-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
}

.result-display-wrapper label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.result-display-wrapper label:first-child {
    margin-bottom: 0.5rem;
}

.result-display-wrapper label:last-of-type {
    margin-top: 1.5rem;
}

.result-display {
    width: 100%;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 80px;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    box-sizing: border-box;
}

.history-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    justify-content: center;
    background: #f8fafc;
    padding: 15px;
    border-radius: 0.75rem;
    min-height: 70px;
}
