@import url('https://fonts.googleapis.com/css2?family=Sofadi+One&display=swap');

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: "Sofadi One", system-ui;
}

.calculator {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    width: 320px;
    text-align: center;
}

h1 {
    margin-bottom: 15px;
    font-size: 26px;
    color: #f5f5f5;
}

.input {
    width: 100%;
    font-size: 24px;
    padding: 15px;
    border-radius: 12px;
    border: none;
    text-align: right;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #00ffcc;
    font-weight: bold;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6),
        inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}

.row {
    display: flex;
    justify-content: center;
    margin: 6px 0;
}

button {
    width: 65px;
    height: 65px;
    margin: 6px;
    border-radius: 15px;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6),
        -2px -2px 6px rgba(255, 255, 255, 0.05);
}

button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
    background: rgba(0, 255, 204, 0.3);
}

/* Memory buttons styled differently */
.memory {
    background: rgba(0, 255, 204, 0.15);
    color: #00ffcc;
}

.operator {
    background: rgba(255, 140, 0, 0.2);
    color: #ffb347;
}

.equal {
    background: rgba(0, 255, 150, 0.3);
    color: #00ff99;
}

.clear {
    background: rgba(255, 0, 80, 0.25);
    color: #ff4d6d;
}