body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.calculator-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.calculator {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 300px;
}

#display {
    width: 100%;
    height: 60px;
    font-size: 2em;
    text-align: right;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

button {
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}

button:hover {
    background-color: #ddd;
}

.graph-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#graphCanvas {
    border: 1px solid #ccc;
    background-color: white;
}
