:root {
    --width-sidebar: 0;
    --width-artifacts-panel: 100%;
}

.sidebar.open {
    --width-sidebar: 14em;
    display: block;
}

@media (min-width: 768px) {
    :root{
        --width-sidebar: 14em;
        --width-artifacts-panel: 30%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner-container {
    position: fixed;
    margin-left: var(--width-sidebar);
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: margin 0.5s ease;
    background: none; /* Ensure background is fully transparent */
}

.margin-right-artifacts {
    margin-right: var(--width-artifacts-panel);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 4px solid transparent;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

.markdown-body ul {
    list-style-type: disc;
    padding-left: 1.5em;
}

.markdown-body ol {
    list-style-type: decimal;
    padding-left: 1.5em;
}

.details-box summary {
    cursor: pointer;
}

.sidebar {
    width: var(--width-sidebar);
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
}

.artifacts-panel {
    width: var(--width-artifacts-panel);
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: fixed;
    top: 0;
    right: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-panel {
    transition: margin 0.5s ease, width 0.5s ease;
    margin-left: var(--width-sidebar);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.main-panel-full {
    margin-right: 0;
    max-width: calc(100% - var(--width-sidebar));
}

.main-panel-artifacts {
    margin-right: var(--width-artifacts-panel);
    max-width: calc(100% - var(--width-sidebar) - var(--width-artifacts-panel));
}

.icon-emoji {
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 1px;
    margin-right: 1px;
}

.button {
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff; /* text-white */
    padding: 0.5rem 1rem; /* Tailwind py-2 px-4 */
    border-radius: 0.375rem; /* rounded */
    transition-property: all; /* transition */
    transition-duration: 300ms; /* duration-300 */
    transition-timing-function: ease-in-out; /* ease-in-out */
    font-size: 1.125rem; /* Tailwind text-lg */
    line-height: 1.75rem; /* Tailwind text-lg */
    cursor: pointer;
}

.button:hover {
    transform: scale(1.05); /* hover:scale-105 */
}

.button:disabled {
    background-color: #a3a3a3; /* Gray background */
    color: #e5e5e5; /* Light gray text */
    cursor: not-allowed;
    transform: none; /* Disable hover effect */
}