/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(253, 203, 110, 0.2);
    /* theme-primary with opacity */
    border-radius: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 203, 110, 0.5);
}

/* Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typography styles for Marked.js renderer */
.prose {
    color: var(--color-text);
}

.prose h1 {
    margin-bottom: 0.5em;
    font-size: 2.25rem;
    font-weight: 800;
    tracking: tight;
    color: #f8fafc;
}

.prose h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FDCB6E;
    border-bottom: 1px solid #3D331D;
    padding-bottom: 0.25rem;
}

.prose h3 {
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    font-size: 1.125rem;
    font-weight: 600;
    color: #FFEAA7;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.prose ul {
    margin-bottom: 1em;
    padding-left: 1.5em;
    list-style-type: disc;
}

.prose ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.25em;
}

.prose strong {
    font-weight: 600;
    color: #f8fafc;
}

.prose code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.1em 0.3em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    color: #FFEAA7;
}

/* Time input styling */
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(350deg);
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(350deg);
    cursor: pointer;
}