* {
    scrollbar-width: thin;
    scrollbar-color: #3f3f46 #18181b;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #18181b;
}

*::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

html {
    scroll-behavior: smooth;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.toast-enter {
    animation: slideIn 0.3s ease-out;
}

.toast-exit {
    animation: slideOut 0.3s ease-in;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #3f3f46;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -4px;
    background-color: #8b5cf6;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    background: #3f3f46;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    background-color: #8b5cf6;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    cursor: pointer;
}

.calc-rich-content h1 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #a78bfa !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    display: block !important;
}

.calc-rich-content h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #34d399 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    display: block !important;
}

.calc-rich-content h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #f472b6 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    display: block !important;
}

.calc-rich-content h4 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #fbbf24 !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    display: block !important;
}

.calc-rich-content h5 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #38bdf8 !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    display: block !important;
}

.calc-rich-content h6 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #fb923c !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.5 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    display: block !important;
}

.calc-rich-content p {
    color: #a1a1aa !important;
    font-size: 0.9375rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

.calc-rich-content ul,
.calc-rich-content ol {
    color: #a1a1aa !important;
    font-size: 0.9375rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1rem !important;
    padding-left: 1.5rem !important;
}

.calc-rich-content ul {
    list-style-type: disc !important;
}

.calc-rich-content ol {
    list-style-type: decimal !important;
}

.calc-rich-content li {
    margin-bottom: 0.25rem !important;
}

.calc-rich-content a {
    color: #8b5cf6 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.calc-rich-content a:hover {
    color: #a78bfa !important;
}

.calc-rich-content strong,
.calc-rich-content b {
    color: #e4e4e7 !important;
    font-weight: 600 !important;
}

.calc-rich-content em,
.calc-rich-content i {
    font-style: italic !important;
}

.calc-rich-content blockquote {
    border-left: 3px solid #8b5cf6 !important;
    padding-left: 1rem !important;
    margin: 1rem 0 !important;
    color: #a1a1aa !important;
    font-style: italic !important;
}

.calc-rich-content code {
    background: #27272a;
    color: #e4e4e7;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: monospace;
}

.calc-rich-content pre {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.calc-rich-content pre code {
    background: none;
    padding: 0;
}

.calc-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.calc-rich-content th,
.calc-rich-content td {
    border: 1px solid #3f3f46;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.875rem;
}

.calc-rich-content th {
    background: #27272a;
    color: #e4e4e7;
    font-weight: 600;
}

.calc-rich-content td {
    color: #a1a1aa;
}

.calc-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.calc-rich-content hr {
    border: none;
    border-top: 1px solid #3f3f46;
    margin: 1.5rem 0;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}
