body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.calculator {
    background: white;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.display {
    background: #222;
    color: white;
    font-size: 2rem;
    text-align: right;
    padding: 20px;
    box-sizing: border-box;
    height: 80px;
    overflow-x: auto;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 10px;
    box-sizing: border-box;
}

.btn {
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #dcdcdc;
}

.operator {
    background: #ffc107;
    color: white;
}

.operator:hover {
    background: #ffb007;
}

.equal {
    background: #28a745;
    color: white;
    grid-column: span 2;
}

.equal:hover {
    background: #218838;
}
