@tailwind base;
@tailwind components;
@tailwind utilities;

.border-b-3 {
    border-bottom-width: 3px;
}

.logo-size {
    width: 19px;
}

/* text size */
.text-size-10 {
    font-size: 10px;
}
.text-size-11 {
    font-size: 11px;
}
.text-size-12 {
    font-size: 12px;
}
.text-size-13 {
    font-size: 13px;
}
.text-size-14 {
    font-size: 14px;
}
.text-size-15 {
    font-size: 15px;
}
.text-size-16 {
    font-size: 16px;
}

.terminal-info {
    height: 34px;
}

/* context menu */


/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* works in Safari + Chromium (not Firefox) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(128, 128, 128, 0.3);
    border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb {
    background-color: rgba(128, 128, 128, 0.4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(128, 128, 128, 0.6);
}

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

.editor-bg-dark {
    background-color: #1e1e1e;
}

.editor-bg-light .cm-gutter {
    background-color: #f4f4f4;
}

/* markdown */
.markdown-wrapper a {
    color: #06B6D4;
    font-style: italic;
    text-decoration: underline;
}
.markdown-wrapper h1,
.markdown-wrapper h2,
.markdown-wrapper h3 {
    font-weight: bold;
    color: #c59571;
    margin: 0.5rem 0;
}

.dark .markdown-wrapper pre:nth-child(1) {
    border-bottom-color: #5e5e5e;
}
.markdown-wrapper pre:nth-child(1) {
    border-radius: 0;
    border-bottom: 1px solid #dadada;
    background-color: transparent;
    padding: 0 0 0.5rem;
}
.markdown-wrapper pre:last-child {
    border-bottom: none;
    padding: 0;
}
.markdown-wrapper hr {
    display: none;
}

.markdown-wrapper p:last-child {
    margin-bottom: 0;
}

.markdown-wrapper ul,
.markdown-wrapper p {
    font-weight: 300;
    line-height: 1.5;
    margin: 0.9rem 0;
}
.dark .markdown-wrapper a {
    color: #49e3ff;
}

/* CodeMirror */
/* for see definition by hover and click */
.cm-token-link {
    text-decoration: underline;
    cursor: pointer;
}

/* for see usages */
.cm-usage-highlight {
    background-color: rgba(0, 255, 178, 0.4); /* light yellow */
    border-bottom: 1px dashed blue;
    cursor: pointer;
}
.dark .cm-usage-highlight {
    background-color: rgba(255, 166, 0, 0.25); /* light yellow */
    border-bottom: 1px dashed orange;
    cursor: pointer;
}
.inline-highlight {
    background: orange;
    padding: 0 3px;
}

.cm-tooltip.cm-tooltip-hover {
    border: none;
}
.cm-tooltip-autocomplete .cm-completionDetail {
    color: #aaa; /* Change the color */
    font-weight: lighter;
    font-style: italic; /* Optional */
    margin-left: 1rem; /* Add spacing from label */
}

.progress-bar {
    /* 定义动画：名称 progressAnimation，持续 5 秒，线性过渡，动画结束后保持最终状态 */
    animation: progressAnimation 10s linear forwards;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
