

/* CSS code from prismscroll.css*/
/* Over-ride the prism.css 
   forcing Scrollbars to be visible  */
pre[class*="language-"] {
    scrollbar-width: auto !important;
}

/* Works on Firefox */
pre[class*="language-"] {
  scrollbar-color: rgb( 59, 64, 67) rgb( 30, 30, 30);
}

/* Works on Chrome, Edge, and Safari */
pre[class*="language-"]::-webkit-scrollbar {
}

pre[class*="language-"]::-webkit-scrollbar-track {
  background: rgb( 100, 100, 150);
}

pre[class*="language-"]::-webkit-scrollbar-thumb {
  background-color: rgb( 59, 64, 67);
  border-radius: 20px;
  border: 3px solid rgb( 100, 100, 150);
}

/* Download Link Styling - Theme Friendly */
.syntax-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    /* Remove fixed colors - inherit from theme */
    background: rgba(255, 255, 255, 0.1); /* Subtle overlay */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-decoration: none;
    color: inherit; /* Inherit theme text color */
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.syntax-download:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: inherit;
}

/* Dark theme specific adjustments */
@media (prefers-color-scheme: dark) {
    .syntax-download {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .syntax-download:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* CSS Icon with Fallback */
.download-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    font-size: 0;
    color: transparent;
}

.download-icon::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Colored Download Icons - matching fold mark colors */
.download-icon-blue::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234a90e2" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-green::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237ed321" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-red::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e74c3c" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-yellow::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23f1c40f" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-cyan::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2317a2b8" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-gray::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-white::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-ltblue::before,
.download-icon-lightblue::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2387ceeb" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

.download-icon-black::before {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000000" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7,10 12,15 17,10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
}

/* Fallback for browsers that don't support SVG data URLs */
@supports not (background-image: url('data:image/svg+xml')) {
    .download-icon::before {
        content: attr(data-fallback);
        background-image: none;
        font-size: 14px;
        color: inherit;
    }
}