/* Ultimate Scientific Calculator Stylesheet */
.sc-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.sc-container {
    background: #27272a; 
    padding: 12px 10px 15px 10px; 
    border-radius: 8px; 
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.4), 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 320px; 
    box-sizing: border-box;
    margin: 0 auto; 
}

.sc-top-bar {
    display: flex;
    justify-content: space-between;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: bold;
    padding: 0 4px 4px;
}

.sc-display {
    width: 100%;
    background: #d4d4d8; 
    border: inset 2px #a1a1aa;
    border-radius: 4px; 
    padding: 10px 8px; 
    font-size: 1.5rem; 
    text-align: right;
    color: #18181b;
    box-sizing: border-box;
    margin-bottom: 12px;
    outline: none;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.sc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px; 
}

.sc-btn {
    padding: 7px 0; 
    border: none;
    border-radius: 4px; 
    font-size: 1.1rem; 
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    box-shadow: 0 3px 0 rgba(0,0,0,0.3); 
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
}

.sc-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 rgba(0,0,0,0.3);
}

/* Specific Font Sizes for complex names */
.sc-btn.fn, .sc-btn.mem, .sc-btn.mode { 
    font-size: 0.75rem; 
    font-weight: 600;
}

/* Colors matching physical calculators */
.sc-btn.num { background: #3f3f46; color: #f4f4f5; }
.sc-btn.op { background: #ea580c; color: #fff; } 
.sc-btn.fn { background: #52525b; color: #e4e4e7; }
.sc-btn.action { background: #dc2626; color: #fff; }
.sc-btn.eval { background: #16a34a; color: #fff; }
.sc-btn.mem { background: #71717a; color: #fff; }
.sc-btn.mode { background: #18181b; color: #fbbf24; border: 1px solid #52525b; }
.sc-btn.var { color: #38bdf8; } /* Variables colored light blue */