/* ============================================================
   CALCULATOR APP
   Windows 95 Standard Calculator style
   ============================================================ */

.calc-container {
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--win95-bg);
    height: 100%;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

/* ---- Display ---- */
.calc-display {
    background: var(--win95-white);
    box-shadow:
        inset 1px 1px var(--win95-dark),
        inset -1px -1px var(--win95-white),
        inset 2px 2px var(--win95-gray),
        inset -2px -2px var(--win95-light);
    padding: 3px 8px;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 18px;
    text-align: right;
    height: 30px;
    line-height: 24px;
    overflow: hidden;
    white-space: nowrap;
    color: var(--win95-text);
    flex-shrink: 0;
}

/* ---- Button grid ---- */
.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    flex: 1;
}

/* ---- Base button style (Win95 raised border) ---- */
.calc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--win95-bg);
    border: none;
    box-shadow:
        inset -1px -1px var(--win95-black),
        inset 1px 1px var(--win95-white),
        inset -2px -2px var(--win95-gray),
        inset 2px 2px var(--win95-light);
    height: 28px;
    font-family: var(--win95-font);
    font-size: 11px;
    cursor: default;
    outline: none;
    padding: 0 4px;
    color: var(--win95-text);
    white-space: nowrap;
}

.calc-btn:active {
    box-shadow:
        inset -1px -1px var(--win95-white),
        inset 1px 1px var(--win95-black),
        inset -2px -2px var(--win95-light),
        inset 2px 2px var(--win95-gray);
    padding: 1px 3px 0 5px;
}

/* ---- Memory buttons — red label ---- */
.calc-btn.memory {
    color: #aa0000;
    font-size: 10px;
}

/* ---- Operator buttons ---- */
.calc-btn.operator {
    color: var(--win95-text);
}

/* ---- Backspace — red background tint on the label ---- */
.calc-btn.backspace {
    color: #aa0000;
    font-size: 10px;
    font-weight: bold;
}

/* ---- Digit buttons ---- */
.calc-btn.digit {
    color: var(--win95-text);
    font-family: "Arial", sans-serif;
    font-weight: bold;
}

/* ---- Equals — slightly wider look ---- */
.calc-btn.equals {
    background: var(--win95-bg);
    color: var(--win95-text);
    font-weight: bold;
}
