/* Assamese Virtual Keyboard Styles */
.assamese-keyboard {
    width: 100%;
    max-width: 900px;
    margin: 1rem auto;
    padding: 1rem;
    background: var(--white);

    border .keyboard-toggle-icon {
        width: 24px;
        height: 24px;
        bottom: 4px;
        right: 4px;
        font-size: 12px;
    }

    .keyboard-status-message {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Assamese Virtual Keyboard Styles */
.assamese-keyboard {
    width: 100%;
    max-width: 900px;
    margin: 1rem auto;
    padding: 1rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    box-sizing: border-box;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.keyboard-key {
    min-width: 45px;
    height: 45px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    color: var(--text-primary, #333);
    font-size: 1.2rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.keyboard-key:hover {
    background: #e9ecef;
    border-color: #1976d2;
    transform: translateY(-1px);
}

.keyboard-key:active {
    background: #dee2e6;
    transform: translateY(0);
}

/* Special keys */
.space-key {
    flex: 1;
    min-width: 200px;
}

.enter-key {
    min-width: 80px;
    background: #1976d2;
    color: white;
}

.enter-key:hover {
    background: #1565c0;
}

.shift-key {
    min-width: 80px;
    background: #ff9800;
    color: white;
}

.shift-key:hover {
    background: #f57c00;
}

.backspace-key {
    min-width: 60px;
    background: #f44336;
    color: white;
    font-size: 1.4rem;
}

.backspace-key:hover {
    background: #d32f2f;
}

.switch-key {
    min-width: 60px;
    background: #4caf50;
    color: white;
    font-size: 0.9rem;
}

.switch-key:hover {
    background: #388e3c;
}

.mode-key {
    min-width: 80px;
    background: #9c27b0;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.mode-key:hover {
    background: #7b1fa2;
}

/* Keyboard status message */
.keyboard-status-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #388e3c;
    text-align: center;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyboard toggle icon */
.keyboard-toggle-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(25, 118, 210, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.keyboard-toggle-icon:hover {
    background: rgba(25, 118, 210, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.keyboard-toggle-icon:active {
    transform: scale(0.95);
}

/* Responsive design */
@media (max-width: 768px) {
    .assamese-keyboard {
        padding: 0.5rem;
        margin: 0.5rem auto;
    }

    .keyboard-key {
        min-width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 0.3rem;
    }

    .keyboard-row {
        gap: 0.2rem;
        margin-bottom: 0.2rem;
    }

    .space-key {
        min-width: 150px;
    }

    .enter-key,
    .shift-key {
        min-width: 60px;
    }

    .backspace-key,
    .switch-key,
    .mode-key {
        min-width: 45px;
        font-size: 0.8rem;
    }

    .keyboard-toggle-icon {
        width: 28px;
        height: 28px;
        bottom: 6px;
        right: 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .keyboard-key {
        min-width: 30px;
        height: 30px;
        font-size: 0.9rem;
        padding: 0.2rem;
    }

    .space-key {
        min-width: 120px;
    }

    .enter-key,
    .shift-key,
    .mode-key {
        min-width: 50px;
        font-size: 0.8rem;
    }

    .keyboard-toggle-icon {
        width: 24px;
        height: 24px;
        bottom: 4px;
        right: 4px;
        font-size: 12px;
    }

    .keyboard-toggle-btn {
        font-size: 0.9rem;
    }
}
