/* Shared styles for QuantSim Terminal */

:root {
    --accent-color: #3b82f6;
}

body {
    font-family: "IBM Plex Mono", monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: var(--accent-color);
    border: 2px solid #1e293b;
    cursor: pointer;
    margin-top: -6px;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #334155;
}

/* Grid Background Pattern */
.bg-grid-pattern {
    background-image:
        linear-gradient(to right, #1e293b 1px, transparent 1px),
        linear-gradient(to bottom, #1e293b 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(
        circle at center,
        black,
        transparent 80%
    );
}

.glass-panel {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Checkbox styling for terminal look */
input[type="checkbox"] {
    accent-color: var(--accent-color);
}

/* Markdown-like styling for AI responses (index page) */
.ai-response strong {
    color: #60a5fa;
    font-weight: 600;
}
.ai-response em {
    color: #cbd5e1;
    font-style: italic;
}
.ai-response ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.ai-response p {
    margin-bottom: 0.75rem;
}

/* Typing cursor animation */
.cursor-blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
