/* Calculator App Styles */
.calculator-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: var(--window-bg);
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.calculator-display {
    background-color: var(--window-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.calculator-expression {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    min-height: 20px;
    word-wrap: break-word;
    text-align: right;
}

.calculator-result {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-color);
    word-wrap: break-word;
    text-align: right;
    line-height: 1.2;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex: 1;
}

.calc-btn {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

.calc-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.calc-btn:active {
    background-color: rgba(0, 0, 0, 0.12);
    transform: scale(0.98);
}

.calc-btn.operator {
    background-color: rgba(0, 0, 0, 0.05);
    font-size: 20px;
}

.calc-btn.operator:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.calc-btn.equals {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.calc-btn.equals:hover {
    background-color: #005a9e;
    border-color: #005a9e;
}

.calc-btn.clear {
    background-color: rgba(255, 0, 0, 0.08);
    color: #d32f2f;
}

.calc-btn.clear:hover {
    background-color: rgba(255, 0, 0, 0.15);
}

.calc-btn.function {
    background-color: rgba(0, 0, 0, 0.02);
    font-size: 16px;
}

.calc-btn.function:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .calculator-expression {
        color: #94a3b8;
    }

    .calc-btn {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .calc-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .calc-btn:active {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .calc-btn.operator {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .calc-btn.operator:hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .calc-btn.clear {
        background-color: rgba(255, 0, 0, 0.15);
        color: #ff6b6b;
    }

    .calc-btn.clear:hover {
        background-color: rgba(255, 0, 0, 0.25);
    }

    .calc-btn.function {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .calc-btn.function:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }
}