/* Custom CSS overrides */

/* Remove padding from sidebar header and brand */
.sidebar-header {
    padding: 0 !important;
}

.sidebar-brand {
    padding: 0 4px 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Sidebar brand link styling */
.sidebar-brand-link {
    text-decoration: none;
    display: inline-block;
}

.sidebar-brand-link:hover {
    text-decoration: none;
}

/* Logo image styling */
.sidebar-brand-full,
.sidebar-brand-narrow {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}

.sidebar-brand-full:hover,
.sidebar-brand-narrow:hover {
    opacity: 0.8;
}

/* Fallback text styling */
.sidebar-brand-full-fallback,
.sidebar-brand-narrow-fallback {
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: none;
    line-height: 1;
    font-size: 18px;
}

/* Header toggler styling */
.header-toggler {
    margin-inline-start: -14px;
}

/* Toast container styling */
.toast-container-custom {
    z-index: 1055;
    margin-top: 60px;
}

/* Dropdown menu styling */
.dropdown-menu-custom {
    --cui-dropdown-min-width: 8rem;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .sidebar-brand-full {
        max-width: 80px;
    }
}

/* Dark theme adjustments */
[data-coreui-theme="dark"] .sidebar-brand-full-fallback,
[data-coreui-theme="dark"] .sidebar-brand-narrow-fallback {
    color: #ffffff;
}

/* Fix code block text colors in light backgrounds */
.bg-light pre,
.bg-light code,
.bg-light pre code {
    color: #212529 !important;
    background: transparent !important;
}

/* Ensure Prism.js doesn't override our colors in light containers */
.bg-light .token {
    color: inherit !important;
}

/* Response format code blocks */
.bg-light pre.language-json,
.bg-light code.language-json {
    color: #212529 !important;
}