:root {
    --kb-bg: #0f172a;
    --key-main: #ffffff;
    --key-text: #1e293b;
    --accent: #3b82f6;
    --accent-soft: #dbeafe;
    --key-shadow: #cbd5e1;
}

.app-container {
    width: 98%;
    max-width: 1400px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto;
}

/* Keyboard Styling */
.keyboard {
    background: var(--kb-bg);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    user-select: none;
}

.row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.key {
    flex: 1;
    min-width: 40px;
    max-width: 70px;
    height: 55px;
    background: var(--key-main);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.1s ease;
    border-bottom: 3px solid var(--key-shadow);
}

.key.active-press {
    transform: translateY(2px);
    border-bottom-width: 1px;
    background: var(--accent-soft);
}

/* Specialized widths */
.key.modifier { 
    background: #e2e8f0; 
    font-weight: bold; 
    font-size: 11px; 
    max-width: 100px; 
}

.key.space { 
    max-width: 500px; 
    flex: 4; 
}

.eng { 
    position: absolute; 
    top: 3px; 
    right: 5px; 
    font-size: 10px; 
    color: #94a3b8; 
}

.normal { 
    font-size: 18px; 
    color: var(--key-text); 
}

.shift-val { 
    position: absolute; 
    bottom: 3px; 
    left: 5px; 
    font-size: 10px; 
    color: #64748b; 
}

/* Input Area */
textarea#inputField {
    width: 100%;
    margin-top: 20px;
    height: 350px;
    font-size: 26px;
    padding: 25px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    line-height: 1.8;
}

textarea#inputField:focus { 
    border-color: var(--accent); 
}