/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Loading spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.app-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e1e3e4;
    border-top-color: #630ed4;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Blazor error UI */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #b32121;
    color: white;
    padding: 0.75rem 1rem;
    z-index: 9999;
    font-family: Inter, sans-serif;
    font-size: 14px;
}
#blazor-error-ui .reload { color: white; text-decoration: underline; margin-left: 0.5rem; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* Prose styles for markdown content in Detail view */
.prose { color: #4a4455; font-size: 16px; line-height: 1.6; }
.prose p { margin-bottom: 1.5rem; }
.prose h1 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #191c1d; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h2 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: #191c1d; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { font-size: 18px; font-weight: 600; line-height: 1.4; color: #191c1d; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose ul, .prose ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: #630ed4; text-decoration: underline; }
.prose a:hover { opacity: 0.8; }
.prose pre {
    background: #f3f4f5;
    border: 1px solid #e1e3e4;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 14px;
    line-height: 1.5;
}
.prose code {
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #f3f4f5;
    border: 1px solid #e1e3e4;
    border-radius: 0.25rem;
    padding: 0.1em 0.4em;
}
.prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}
.prose blockquote {
    border-left: 3px solid #ccc3d8;
    padding-left: 1rem;
    color: #7b7487;
    margin-bottom: 1.5rem;
}
.prose strong { font-weight: 600; color: #191c1d; }
.prose hr { border: none; border-top: 1px solid #e1e3e4; margin: 2rem 0; }


/* ── Tool cards ────────────────────────────────────────────── */
.tool-card {
    transition: box-shadow 0.15s ease;
    border-radius: .5rem;
}

.tool-card:hover {
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.12) !important;
}

/* ── Tool detail article ────────────────────────────────────── */
.tool-content h1,
.tool-content h2,
.tool-content h3 {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.tool-content pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: .4rem;
    padding: 1rem;
    overflow-x: auto;
}

.tool-content code {
    font-size: .9em;
}

.tool-content a {
    color: #006bb7;
    text-decoration: underline;
}