/* Custom dark theme enhancements */
:root {
    --md-primary-fg-color: #7c3aed;
    --md-primary-fg-color--light: #8b5cf6;
    --md-primary-fg-color--dark: #6d28d9;
}

/* Dark mode specific customizations */
[data-md-color-scheme="slate"] {
    --md-default-bg-color: #0f0f0f;
    --md-default-fg-color: #e4e4e7;
    --md-code-bg-color: #1a1a1a;
    --md-code-fg-color: #f1f5f9;
    --md-footer-bg-color: #0a0a0a;
    --md-footer-fg-color: #9ca3af;
}

/* Navigation improvements */
.md-nav__title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.md-nav__item--nested>.md-nav__link {
    font-weight: 500;
}

/* Code block improvements */
.md-typeset pre>code {
    background-color: var(--md-code-bg-color);
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Header customization */
.md-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

/* Sidebar enhancements */
.md-sidebar--primary {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}

/* Search box styling */
.md-search__input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 0.5rem;
}

.md-search__input:focus {
    border-color: var(--md-primary-fg-color);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* Button styling */
.md-button {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.md-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Accent color for links and highlights */
.md-typeset a {
    color: #a855f7;
}

.md-typeset a:hover {
    color: #c084fc;
}

/* Table styling */
.md-typeset table:not([class]) {
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}

.md-typeset table:not([class]) th {
    background-color: rgba(124, 58, 237, 0.1);
    font-weight: 600;
}

/* Admonition styling */
.md-typeset .admonition {
    border-radius: 0.5rem;
    border-left: 4px solid var(--md-primary-fg-color);
}

/* Scroll bar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}