/* Custom styles for Charl website */

/* Code blocks */
pre {
    background-color: #1e293b;
    border-radius: 0.5rem;
    overflow-x: auto;
    padding: 1.5rem;
}

pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e2e8f0;
}

code {
    background-color: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
}

/* Copy button styling */
button[onclick*="copyCode"] {
    transition: all 0.2s;
}

button[onclick*="copyCode"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #475569;
}

table tr:nth-child(even) {
    background-color: #f8fafc;
}

table tr:hover {
    background-color: #f1f5f9;
}

/* Documentation navigation */
.doc-nav {
    position: sticky;
    top: 5rem;
}

.doc-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.doc-nav a:hover {
    color: #2563eb;
    border-left-color: #2563eb;
    background-color: #f8fafc;
}

.doc-nav a.active {
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 500;
}

/* Benchmark tables */
.benchmark-table {
    overflow-x: auto;
}

.benchmark-table table {
    min-width: 600px;
}

/* Syntax highlighting adjustments */
.hljs {
    background: #1e293b !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem;
    color: #e2e8f0 !important;
}

.hljs-comment {
    color: #94a3b8 !important;
}

.hljs-string {
    color: #86efac !important;
}

.hljs-keyword {
    color: #93c5fd !important;
}

.hljs-number {
    color: #fbbf24 !important;
}

/* Alert boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    nav, footer, button {
        display: none;
    }
}
