@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nimbus+Sans+L:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --md-primary-fg-color: #000000;
  --md-primary-fg-color--light: #000000;
  --md-primary-fg-color--dark: #000000;
  --md-accent-fg-color: #d8eb00;
  --md-accent-fg-color--transparent: rgba(216, 235, 0, 0.1);
  --nimbus-font: 'Nimbus Sans L', sans-serif;
  --code-font: 'Red Hat Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #000000;
  --md-primary-fg-color--light: #000000;
  --md-primary-fg-color--dark: #000000;
  --md-accent-fg-color: #d8eb00;
  --md-accent-fg-color--transparent: rgba(216, 235, 0, 0.1);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #000000;
  --md-primary-fg-color--light: #000000;
  --md-primary-fg-color--dark: #000000;
  --md-accent-fg-color: #d8eb00;
  --md-accent-fg-color--transparent: rgba(216, 235, 0, 0.1);
}

/* Global font override for entire website */
* {
  font-family: var(--nimbus-font) !important;
}

/* Override Material Design theme fonts */
body, .md-typeset {
  font-family: var(--nimbus-font) !important;
}

/* Headers/Titles with bold Nimbus Sans */
h1, h2, h3, h4, h5, h6,
.md-typeset h1, .md-typeset h2, .md-typeset h3, 
.md-typeset h4, .md-typeset h5, .md-typeset h6,
.md-header__title, .md-nav__title, .md-footer__title {
  font-family: 'Nimbus Sans L';
  font-weight: 700 !important;
}

/* Navigation elements */
.md-nav__item, .md-nav__link, .md-tabs__item, .md-tabs__link {
  font-family: var(--nimbus-font) !important;
}

p, span, div, a, li, td, th, label, input, button {
  font-family: var(--nimbus-font) !important;
}

code, pre, kbd, samp,
.md-typeset code, .md-typeset pre, .md-typeset kbd, .md-typeset samp,
.highlight, .codehilite, .highlight pre, .codehilite pre,
.md-typeset .highlight pre, .md-typeset .codehilite pre,
.md-typeset .highlight code, .md-typeset .codehilite code,
.md-content code, .md-content pre,
.md-content .highlight code, .md-content .highlight pre,
div[class*="highlight"] code, div[class*="highlight"] pre,
.md-typeset div[class*="highlight"] code, .md-typeset div[class*="highlight"] pre,
.language-bash, .language-python, .language-yaml, .language-javascript,
.language-css, .language-html, .language-markdown, .language-json,
pre[class*="language-"], code[class*="language-"],
.md-typeset pre[class*="language-"], .md-typeset code[class*="language-"],
.highlight-bash code, .highlight-bash pre,
.highlight-python code, .highlight-python pre,
.highlight-yaml code, .highlight-yaml pre,
.highlight-javascript code, .highlight-javascript pre,
.highlight-css code, .highlight-css pre,
.highlight-html code, .highlight-html pre,
.highlight-markdown code, .highlight-markdown pre,
.highlight-json code, .highlight-json pre,
.highlight-shell code, .highlight-shell pre,
.highlight-console code, .highlight-console pre,
.highlight-text code, .highlight-text pre,
.codehilite .code code, .codehilite .code pre,
.highlight .code code, .highlight .code pre,
.md-typeset .highlight-bash code, .md-typeset .highlight-bash pre,
.md-typeset .highlight-python code, .md-typeset .highlight-python pre,
.md-typeset .highlight-yaml code, .md-typeset .highlight-yaml pre,
.md-typeset .highlight-javascript code, .md-typeset .highlight-javascript pre,
.md-typeset .highlight-css code, .md-typeset .highlight-css pre,
.md-typeset .highlight-html code, .md-typeset .highlight-html pre,
.md-typeset .highlight-markdown code, .md-typeset .highlight-markdown pre,
.md-typeset .highlight-json code, .md-typeset .highlight-json pre,
.md-typeset .highlight-shell code, .md-typeset .highlight-shell pre,
.md-typeset .highlight-console code, .md-typeset .highlight-console pre,
.md-typeset .highlight-text code, .md-typeset .highlight-text pre {
  font-family: var(--code-font) !important;
  font-feature-settings: "liga" 0, "calt" 0 !important;
}

[class*="highlight"] *, [class*="language-"] *, [class*="codehilite"] * {
  font-family: var(--code-font) !important;
}

.md-typeset code {
  background: var(--md-code-bg-color);
  color: var(--md-code-fg-color);
  border-radius: 0.1rem;
  padding: 0.125rem 0.25rem;
  font-size: 0.875em;
  font-family: var(--code-font) !important;
}

/* Code block container styling with reduced margins and border radius */
.md-typeset .highlight {
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--md-code-bg-color);
  margin: 0.5rem 0;
}

.md-typeset .highlight pre {
  margin: 0;
  padding: 0rem;
  background: transparent;
  border-radius: 0;
  font-family: var(--code-font) !important;
  line-height: 1.4;
  overflow-x: auto;
}


.md-clipboard:hover {
  background: rgba(216, 235, 0, 0.8);
  color: #000000;
  border-color: #d8eb00;
  transform: scale(1.05);
}

.md-clipboard:active {
  transform: scale(0.95);
}

/* Dark mode copy button */
[data-md-color-scheme="slate"] .md-clipboard {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-md-color-scheme="slate"] .md-clipboard:hover {
  background: rgba(216, 235, 0, 0.9);
  color: #000000;
  border-color: #d8eb00;
}

/* Light mode copy button */
[data-md-color-scheme="default"] .md-clipboard {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="default"] .md-clipboard:hover {
  background: rgba(216, 235, 0, 0.8);
  color: #000000;
  border-color: #d8eb00;
}

/* Libre Baskerville for italic text in markdown and contributor roles 
em, i, .md-typeset em, .md-typeset i,
.contributor-role {
  font-family: 'Libre Baskerville', serif !important;
  font-style: italic !important;
}*/

/* Dark mode - only change HOVER states and ACTIVE/CURRENT links to green */
[data-md-color-scheme="slate"] a:hover,
[data-md-color-scheme="slate"] .md-typeset a:hover {
  color: #d8eb00 !important;
}

/* Active/current navigation items in dark mode */
[data-md-color-scheme="slate"] .md-nav__link--active,
[data-md-color-scheme="slate"] .md-tabs__link--active {
  color: #d8eb00 !important;
}

.contributors-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--nimbus-font);
}

.contributor-card {
    background: rgba(216, 235, 0, 0.05);
    border: 2px solid #d8eb00;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(216, 235, 0, 0.1);
    font-family: var(--nimbus-font);
}

.contributor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(216, 235, 0, 0.2);
    border-color: #c4d400;
}

.contributor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contributor-info {
    flex: 1;
}

.contributor-name {
    margin: 0 0 0.2rem 0;
    color: #c4d400;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--nimbus-font);
}

.contributor-role {
    margin: 0;
    color: #8fa000;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    font-family: 'Libre Baskerville', serif;
    opacity: 0.8;
}

.contributor-image-container {
    flex-shrink: 0;
}

.contributor-image {
    width: 200px; 
    height: 200px; 
    border-radius: 8px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.contributor-card:hover .contributor-image {
    opacity: 0.9;
}

.contributor-bio {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--md-default-fg-color);
    font-family: var(--nimbus-font);
}

.contributor-bio p {
    margin: 0;
}

.contributor-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Style the social links properly */
.contributor-socials a.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #d8eb00 !important;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    background: rgba(216, 235, 0, 0.1);
}

.contributor-socials a.social-link:hover {
    color: #f0ff33 !important;
    background: rgba(216, 235, 0, 0.2);
    transform: translateY(-2px) scale(1.1);
}

/* Style the SVG icons */
.contributor-socials a.social-link .social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.contributor-socials a.social-link:hover .social-icon {
    fill: #f0ff33;
}

/* LIGHT MODE IMPROVEMENTS */
[data-md-color-scheme="default"] .contributor-card {
    background: rgba(216, 235, 0, 0.08);
    border-color: #b8cc00;
    box-shadow: 0 2px 8px rgba(184, 204, 0, 0.15);
}

[data-md-color-scheme="default"] .contributor-card:hover {
    box-shadow: 0 4px 16px rgba(184, 204, 0, 0.25);
    border-color: #9db300;
}

[data-md-color-scheme="default"] .contributor-name {
    color: #7a9900;
}

[data-md-color-scheme="default"] .contributor-role {
    color: #5c7300;
    opacity: 0.9;
}

[data-md-color-scheme="default"] .contributor-socials a.social-link {
    background: rgba(184, 204, 0, 0.15);
    color: #7a9900 !important;
}

[data-md-color-scheme="default"] .contributor-socials a.social-link:hover {
    background: rgba(184, 204, 0, 0.25);
    color: #5c7300 !important;
}

[data-md-color-scheme="default"] .contributor-socials a.social-link .social-icon {
    fill: #7a9900;
}

[data-md-color-scheme="default"] .contributor-socials a.social-link:hover .social-icon {
    fill: #5c7300;
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .contributor-card {
    background: rgba(216, 235, 0, 0.08);
    border-color: #b8cc00;
}

[data-md-color-scheme="slate"] .contributor-name {
    color: #d8eb00;
}

[data-md-color-scheme="slate"] .contributor-role {
    color: #c4d400;
}

[data-md-color-scheme="slate"] .contributor-socials a.social-link {
    background: rgba(216, 235, 0, 0.15);
    color: #d8eb00 !important;
}

[data-md-color-scheme="slate"] .contributor-socials a.social-link:hover {
    background: rgba(216, 235, 0, 0.25);
    color: #f0ff33 !important;
}

[data-md-color-scheme="slate"] .contributor-socials a.social-link .social-icon {
    fill: #d8eb00;
}

[data-md-color-scheme="slate"] .contributor-socials a.social-link:hover .social-icon {
    fill: #f0ff33;
}

/* Responsive design */
@media (max-width: 768px) {
    .contributor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contributor-socials {
        justify-content: center;
    }
}

/* ============================================================================
   HEADER AUTHENTICATION STYLES - GREEN THEME
   Add these styles to the end of your existing docs/stylesheets/extra.css
   ============================================================================ */

/* Header Authentication Styles */
.md-header__auth {
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.md-auth-login,
.md-auth-profile {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #d8eb00 !important;
    border: none !important;
    color: #000000 !important;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-family: var(--nimbus-font);
    text-decoration: none;
    font-weight: 600;
    height: 1.75rem;
    min-width: auto;
}

.md-auth-login:hover,
.md-auth-profile:hover {
    background: #d8eb00 !important;
    color: #000000 !important;
    transform: none;
    box-shadow: none;
}

.md-auth-login .md-icon,
.md-auth-profile .md-icon {
    width: 14px;
    height: 14px;
    fill: #000000 !important;
}

.md-auth-text {
    color: #000000 !important;
    font-weight: 600;
    font-size: 0.75rem;
}

.md-auth-icon {
    font-size: 1rem;
}

.md-auth-arrow {
    width: 10px;
    height: 10px;
    fill: #000000 !important;
    transition: transform 0.2s ease;
}

.md-auth-profile[aria-expanded="true"] .md-auth-arrow {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.md-auth-dropdown {
    position: relative;
}

.md-auth-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--md-default-bg-color);
    border: 1px solid rgba(216, 235, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(216, 235, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.md-auth-menu--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-md-color-scheme="slate"] .md-auth-menu {
    background: var(--md-default-bg-color);
    border-color: rgba(216, 235, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.md-auth-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(216, 235, 0, 0.2);
    background: rgba(216, 235, 0, 0.05);
}

.md-auth-avatar {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(216, 235, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.md-auth-info {
    flex: 1;
    min-width: 0;
}

.md-auth-name {
    font-weight: 600;
    color: var(--md-default-fg-color);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-auth-role {
    font-size: 0.8rem;
    color: #d8eb00;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-auth-menu-items {
    padding: 0.5rem 0;
}

.md-auth-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--md-default-fg-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.md-auth-menu-item:hover {
    background: rgba(216, 235, 0, 0.1);
    color: #000000;
}

.md-auth-menu-item .md-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.md-auth-logout {
    color: #dc3545 !important;
}

.md-auth-logout:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.md-auth-menu-divider {
    height: 1px;
    background: rgba(216, 235, 0, 0.2);
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md-auth-text {
        display: inline;
    }
    
    .md-auth-login,
    .md-auth-profile {
        padding: 0.25rem 0.75rem;
        height: 1.75rem;
    }
}

@media (max-width: 768px) {
    .md-header__auth {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    /* Consistent mobile spacing */
    .md-header__source,
    .md-header__option,
    [data-md-component="search"] {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    .md-auth-text {
        display: none;
    }
    
    .md-auth-login,
    .md-auth-profile {
        padding: 0.3rem;
        min-width: 32px;
        height: 32px;
        justify-content: center;
    }
    
    .md-auth-menu {
        right: -1rem;
        min-width: 200px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .md-auth-login,
    .md-auth-profile {
        padding: 0.25rem;
        border-radius: 4px;
        width: 30px;
        height: 30px;
    }
    
    .md-auth-login .md-icon,
    .md-auth-profile .md-icon {
        width: 16px;
        height: 16px;
    }
}

/* Ensure proper positioning and consistent spacing for all header elements */
.md-header__inner {
    display: flex;
    align-items: center;
}

/* Consistent spacing for all header elements */
.md-header__source,
.md-header__option,
.md-header__auth,
[data-md-component="search"] {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
}

/* Override any default margins */
.md-header__source {
    margin: 0 0.75rem !important;
}

.md-header__option {
    margin: 0 0.75rem !important;
}

[data-md-component="search"] {
    margin: 0 0.75rem !important;
}

/* Element order */
.md-header__auth {
    order: 10; /* Position before theme toggle and GitHub source */
}

.md-header__option {
    order: 11; /* Theme toggle after login */
}

.md-header__source {
    order: 12; /* GitHub repo last */
}

/* Dark Mode Adjustments */
[data-md-color-scheme="slate"] .md-auth-login,
[data-md-color-scheme="slate"] .md-auth-profile {
    background: #d8eb00 !important;
    color: #000000 !important;
}

[data-md-color-scheme="slate"] .md-auth-login:hover,
[data-md-color-scheme="slate"] .md-auth-profile:hover {
    background: #d8eb00 !important;
    color: #000000 !important;
    transform: none;
    box-shadow: none;
}

[data-md-color-scheme="slate"] .md-auth-login .md-icon,
[data-md-color-scheme="slate"] .md-auth-profile .md-icon,
[data-md-color-scheme="slate"] .md-auth-arrow {
    fill: #000000 !important;
}

[data-md-color-scheme="slate"] .md-auth-text {
    color: #000000 !important;
}

[data-md-color-scheme="slate"] .md-auth-role {
    color: #d8eb00;
}

/* Animation for smooth transitions */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.md-auth-menu--open {
    animation: fadeInDown 0.2s ease-out;
}

/* Fix for potential z-index issues */
.md-header {
    position: relative;
    z-index: 1000;
}

.md-auth-menu {
    z-index: 1001;
}

/* ============================================================================
   SEARCH BAR STYLING - DARKER GREEN FOR SIZE REFERENCE
   ============================================================================ */

/* Search bar grey styling with matching border radius */
.md-search__input {
    background-color: #3b3b3b !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 2px !important;
}

.md-search__input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Search button */
.md-search__icon {
    color: #ffffff !important;
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__input {
    background-color: #3b3b3b !important;
}

/* Dark mode adjustments for search */
[data-md-color-scheme="slate"] .md-search__input {
    background-color: #3b3b3b !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 2px !important;
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-md-color-scheme="slate"] .md-search__icon {
    color: #ffffff !important;
}