body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #343a40;
}

.docs-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.docs-header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}
.docs-header .logo img {
    height: 40px;
}
.docs-header .logo h1 {
    font-size: 1.5em;
    margin: 0;
}
.header-nav a {
    text-decoration: none;
    color: #c62307;
    font-weight: bold;
}

.docs-main {
    display: flex;
    flex-grow: 1;
}

.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #fdfdff;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    box-sizing: border-box;
}
.docs-sidebar h3 {
    font-size: 1.1em;
    color: #c62307;
    margin-top: 20px;
    margin-bottom: 10px;
}
.docs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.docs-sidebar a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #495057;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.docs-sidebar a:hover {
    background-color: #e9ecef;
}
.docs-sidebar a.active {
    background-color: #e8eaf6;
    color: #c62307;
    font-weight: bold;
}

.docs-content {
    flex-grow: 1;
    padding: 40px;
    line-height: 1.7;
}
.docs-content h1 {
    font-size: 2.5em;
    margin-top: 0;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
}
.docs-content h2 {
    font-size: 1.8em;
    margin-top: 40px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}
.docs-content p {
    margin-bottom: 1.2em;
}
.docs-content code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
.docs-content img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 10px;
    margin-bottom: 10px;
}

/* --- Docs Language Switcher Styles --- */
.docs-header .header-nav {
    display: flex;
    align-items: center;
    gap: 25px; /* Adds space between the switcher and the login link */
}

.page-language-switcher {
    display: flex;
    gap: 8px;
}

.page-language-switcher button {
    padding: 8px 14px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #374151;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.page-language-switcher button:hover {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}

.page-language-switcher button.active-lang {
    background-color: #c62307; /* Your primary brand color */
    color: #ffffff;
    border-color: #c62307;
}