.excel-grid-container {
    overflow-x: auto;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.excel-grid {
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.excel-grid th, .excel-grid td {
    border: 1px solid #d4d4d4;
    text-align: center;
    vertical-align: middle;
}

.excel-header-corner {
    background: #f0f0f0;
    width: 30px;
    height: 30px;
    border-color: #c0c0c0 !important;
}

.excel-header-col, .excel-header-row {
    background: #f0f0f0;
    color: #444;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: default;
    user-select: none;
    border-color: #c0c0c0 !important;
}

.excel-header-col {
    width: 70px;
    height: 30px;
}

.excel-header-row {
    width: 30px;
    height: 35px;
}

.excel-cell {
    width: 70px;
    height: 35px;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
    font-size: 0.9rem;
    color: #333;
}

.excel-cell:hover {
    background-color: #e9ecef;
    border: 2px solid #217346;
}

.excel-cell.correct {
    background-color: #d1e7dd;
    animation: pulse-success 0.4s;
}

.excel-cell.wrong {
    background-color: #f8d7da;
    animation: shake-error 0.4s;
}

@keyframes pulse-success {
    0% { background-color: white; transform: scale(1); }
    50% { background-color: #198754; color: white; transform: scale(1.05); }
    100% { background-color: #d1e7dd; transform: scale(1); }
}

@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

#target-cell {
    transition: all 0.2s;
}
