:root {
    /* Primary brand color - deep orange */
    --md-primary-fg-color: #cf7b43;
    --md-primary-fg-color--light: #e89560;
    --md-primary-fg-color--dark: #b3662c;
    
    /* Accent color - amber */
    --md-accent-fg-color: #ffa726;
    --md-accent-fg-color--transparent: rgba(255, 167, 38, 0.1);
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
    --md-primary-fg-color: #cf7b43;
    --md-code-bg-color: #1e1e1e;
}

/* Custom styling for code blocks */
.highlight pre {
    border-radius: 8px;
    border-left: 4px solid var(--md-primary-fg-color);
}

/* Improve admonition styling */
.admonition {
    border-left: 4px solid var(--md-primary-fg-color);
    border-radius: 6px;
}

.admonition.note {
    border-left-color: #448aff;
}

.admonition.warning {
    border-left-color: #ff9800;
}

.admonition.danger {
    border-left-color: #ff5252;
}

.admonition.info {
    border-left-color: #00acc1;
}

/* Better table styling */
table {
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background-color: var(--md-primary-fg-color);
    color: white;
}

table thead th {
    padding: 12px;
    font-weight: 600;
}

table tbody tr:hover {
    background-color: var(--md-accent-fg-color--transparent);
}

/* Code inline styling */
code {
    background-color: var(--md-code-bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Navigation tabs enhancement */
.md-tabs {
    background-color: var(--md-primary-fg-color);
}

/* Header logo spacing */
.md-header__title {
    margin-left: 0.5rem;
}

/* Improve link hover effects */
a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Better spacing for content */
.md-content {
    padding: 0 1rem;
}

/* Custom styling for method signatures */
h4 code {
    background-color: var(--md-primary-fg-color);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 1em;
}

/* Highlight important parameters in tables */
table td:first-child {
    font-weight: 600;
    color: var(--md-primary-fg-color);
}

/* Better code block title styling */
.md-typeset .highlighttable {
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Enhance search results */
.md-search-result__meta {
    color: var(--md-primary-fg-color);
}

/* Custom footer styling */
.md-footer {
    background-color: var(--md-primary-fg-color);
}

/* Better mobile responsiveness */
@media screen and (max-width: 76.1875em) {
    .md-nav--primary .md-nav__title {
        background-color: var(--md-primary-fg-color);
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Version badge styling */
.md-version__current {
    background-color: var(--md-primary-fg-color);
}

/* Better spacing for lists in content */
.md-typeset ul,
.md-typeset ol {
    margin: 1em 0;
}

.md-typeset li {
    margin: 0.5em 0;
}

/* Enhance blockquotes */
blockquote {
    border-left: 4px solid var(--md-primary-fg-color);
    padding-left: 1rem;
    color: var(--md-default-fg-color--light);
}

/* Custom hero section for homepage */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-accent-fg-color) 100%);
    color: white;
    border-radius: 12px;
    margin: 2rem 0;
}

.hero-section h1 {
    color: white;
    margin-bottom: 1rem;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 1.5rem;
    border: 2px solid var(--md-primary-fg-color);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(207, 123, 67, 0.2);
}

.feature-card h3 {
    color: var(--md-primary-fg-color);
    margin-top: 0;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-stable {
    background-color: #4caf50;
    color: white;
}

.badge-beta {
    background-color: #ff9800;
    color: white;
}

.badge-deprecated {
    background-color: #f44336;
    color: white;
}