/* Scientific Calculator Specific UI */

.sci-calc-wrapper {
    width: 100%;
    max-width: 480px;
    background: #1e293b;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.1);
    margin: 0 auto;
    box-sizing: border-box;
}

.sci-screen {
    background: #0f172a;
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 25px;
    position: relative;
    border: 2px solid #334155;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
}

.sci-history {
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: right;
    min-height: 22px;
    margin-bottom: 8px;
    font-family: 'Consolas', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sci-display {
    width: 100%;
    background: transparent;
    color: #10b981;
    border: none;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: right;
    font-family: 'Consolas', monospace;
    outline: none;
    padding: 0;
}

.sci-indicators {
    position: absolute;
    top: 12px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.sci-indicators span {
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 1px;
}

.sci-indicators span.active { color: #f59e0b; }
.sci-indicators span.hidden { display: none; }

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

.sci-btn {
    padding: 14px 5px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    user-select: none;
}

.sci-btn:active { transform: scale(0.92); }

/* Advanced Color Coding */
.btn-num { background: #334155; color: #fff; font-size: 1.2rem; }
.btn-num:hover { background: #475569; }

.btn-func { background: #0f172a; color: #cbd5e1; font-size: 0.9rem; }
.btn-func:hover { background: #1e293b; color: #fff; }

.btn-op { background: #2563eb; color: #fff; font-size: 1.3rem; }
.btn-op:hover { background: #3b82f6; }

.btn-mode { background: #f59e0b; color: #fff; font-size: 0.85rem; }
.btn-mem { background: #64748b; color: #fff; font-size: 0.85rem; }

.btn-ac { background: #ef4444; color: #fff; }
.btn-del { background: #f43f5e; color: #fff; font-size: 1.1rem; }

.btn-eq { background: #10b981; color: #fff; font-size: 1.5rem; grid-column: span 2; }
.btn-eq:hover { background: #34d399; }

@media (max-width: 480px) {
    .sci-calc-wrapper { padding: 15px; border-radius: 20px; }
    .sci-btn { padding: 12px 2px; font-size: 0.9rem; border-radius: 8px; }
    .sci-display { font-size: 2rem; }
}
