@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;700&family=Roboto+Mono:wght@400;700&display=swap');

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden
}

.font-lab {
    font-family: 'Teko', sans-serif
}

.lab-bg {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    position: relative
}

.beaker-decoration {
    position: absolute;
    opacity: 0.1;
    pointer-events: none
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1)
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 20px
}

.cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #94a3b8;
    position: relative
}

.cell.dividend {
    color: #38bdf8;
    font-weight: bold;
    border-bottom: 2px solid #38bdf8
}

.cell.divisor {
    color: #facc15;
    font-weight: bold;
    border-right: 2px solid #38bdf8
}

.cell.quotient {
    color: #4ade80;
    font-weight: bold
}

.cell.working {
    color: #e2e8f0
}

.cell.input-active {
    background: rgba(56, 189, 248, 0.2);
    border: 2px solid #38bdf8;
    border-radius: 4px;
    color: #fff;
    animation: pulse 1.5s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4)
    }

    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0)
    }
}

.step-indicator {
    position: absolute;
    left: -150px;
    top: 0;
    width: 140px;
    text-align: right
}

.step-bubble {
    background: #334155;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: all 0.3s
}

.step-bubble.active {
    opacity: 1;
    background: #38bdf8;
    color: #0f172a;
    font-weight: bold;
    transform: scale(1.05)
}

.chem-btn {
    background: #334155;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 4px 0 #1e293b
}

.chem-btn:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1e293b
}

.chem-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1e293b
}

.chem-btn.action {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 4px 0 #0284c7
}

.chem-btn.action:hover {
    background: #7dd3fc;
    box-shadow: 0 6px 0 #0284c7
}