:root {
    --primary: #10b981;
    --error: #ef4444;
    --primary-dark: #059669;
    --bg-pattern: #f8fafc;
}
body {
    font-family: 'Quicksand', sans-serif;
    background-color: #000000;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}
.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}
canvas {
    background-color: transparent !important;
    touch-action: none;
    cursor: crosshair;
}
.canvas-container {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: border-color 0.3s;
}
.canvas-container.active {
    border-color: #10b981;
}
.canvas-container.error-state {
    border-color: #ef4444;
}
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover:not(.disabled-button) {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(16, 185, 129, 0.4);
}
.disabled-button {
    background: #cbd5e1 !important;
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* Animations */
@keyframes popIn {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes successPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes slideInUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.panel-anim {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.success-icon-anim {
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.stagger-1 { animation: slideInUp 0.5s ease 0.4s both; }
.stagger-2 { animation: slideInUp 0.5s ease 0.6s both; }
.stagger-3 { animation: slideInUp 0.5s ease 1.2s both; }

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confetti 2s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

.formula-line {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    border-left: 3px solid #10b981;
    padding-left: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #064e3b;
    opacity: 0;
    transform: translateX(-10px);
    animation: formulaReveal 0.4s ease forwards;
}

@keyframes formulaReveal {
    to { opacity: 1; transform: translateX(0); }
}

.accuracy-shake {
    animation: shake 0.3s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}
