* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

header {
    text-align: center;
    padding: 10px;
    background: #1e2937;
    border-radius: 8px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 2.2rem;
    color: #60a5fa;
}

.status {
    margin-top: 5px;
    font-size: 1.1rem;
    color: #94a3b8;
}

.screen {
    display: none;
    flex: 1;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

.text-area {
    flex: 1;
    background: #1e2937;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

#output-text {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1.8rem;
    line-height: 1.4;
    resize: none;
    outline: none;
}

.prediction-bar {
    background: #1e2937;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 80px;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.suggestion-btn {
    background: #334155;
    color: #e2e8f0;
    border: none;
    padding: 12px 18px;
    border-radius: 9999px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.suggestion-btn:hover, .suggestion-btn.active {
    background: #60a5fa;
    color: #0f172a;
    transform: scale(1.05);
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    background: #1e2937;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.key {
    background: #334155;
    color: #e2e8f0;
    border: none;
    padding: 18px 8px;
    font-size: 1.3rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:hover {
    background: #475569;
}

.key.active {
    background: #22c55e;
    color: #0f172a;
    transform: scale(1.08);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    font-size: 1.2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn.large {
    padding: 18px 36px;
    font-size: 1.35rem;
    flex: 1;
    min-width: 220px;
}

.speak { background: #22c55e; color: #0f172a; }
.danger { background: #ef4444; color: white; }
.secondary { background: #64748b; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

/* Calibration points */
.calibration-point {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 20px #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
