/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Checkbox styling override */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 150ms ease;
}
input[type="checkbox"]:checked {
    background: #059669;
    border-color: #059669;
}
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Number input styling */
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Details/summary animation */
details summary {
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}

/* Pulse animation for status badges */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.animate-subtle-pulse {
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* Table row transitions */
tbody tr {
    transition: background-color 150ms ease;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 150ms ease;
}

/* Prose / markdown rendering */
.prose h1 { font-size: 1.25rem; font-weight: 700; margin: 1.25em 0 0.5em; color: #111827; }
.prose h2 { font-size: 1.125rem; font-weight: 600; margin: 1.25em 0 0.5em; color: #1f2937; }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 1em 0 0.4em; color: #1f2937; }
.prose h4 { font-size: 0.875rem; font-weight: 600; margin: 1em 0 0.4em; color: #374151; }
.prose p { margin: 0.5em 0; }
.prose ul, .prose ol { margin: 0.5em 0; padding-left: 1.5em; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin: 0.25em 0; }
.prose strong { font-weight: 600; color: #111827; }
.prose em { font-style: italic; }
.prose code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8em;
    background: #f3f4f6;
    padding: 0.15em 0.35em;
    border-radius: 4px;
    color: #374151;
}
.prose pre {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75em 1em;
    overflow-x: auto;
    margin: 0.75em 0;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
    border-left: 3px solid #d1d5db;
    padding-left: 1em;
    color: #6b7280;
    margin: 0.75em 0;
}
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.5em 0; }
.prose a { color: #059669; text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 0.75em 0; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: 0.4em 0.75em; text-align: left; }
.prose th { background: #f9fafb; font-weight: 600; }
