:root {
    --azure-navy: #0a1628;
    --azure-blue: #0078d4;
    --azure-blue-light: #50a0e4;
    --azure-blue-hover: #005a9e;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    background-color: #f4f6f9;
    color: #1a1a2e;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Navbar */
.site-navbar {
    background-color: var(--azure-navy);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.site-navbar .brand {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-navbar .brand svg {
    fill: var(--azure-blue-light);
}

.site-navbar nav a {
    color: #c8d8e8;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.site-navbar nav a:hover,
.site-navbar nav a.active {
    color: #ffffff;
    border-bottom-color: var(--azure-blue-light);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Hero section on home page */
.hero {
    background: linear-gradient(135deg, var(--azure-navy) 0%, #0f2d5a 100%);
    color: white;
    border-radius: 10px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0,120,212,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 220px;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.hero-content p {
    color: #a8c4dc;
    font-size: 1.05rem;
    margin: 0;
}

.hero-images {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.azure-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(80,160,228,0.25);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    width: 100px;
    transition: background 0.2s, transform 0.2s;
}

.azure-service-card:hover {
    background: rgba(0,120,212,0.2);
    transform: translateY(-3px);
}

.azure-service-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.azure-service-card span {
    color: #c8d8e8;
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.3;
}

.hero .azure-badge {
    display: inline-block;
    background: var(--azure-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Tables */
.table thead.table-dark th {
    background-color: var(--azure-navy) !important;
    border-color: #1e3a5f;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0,120,212,0.04);
}

.table {
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background-color: var(--azure-navy);
    color: #6a8aaa;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
}

/* ── Docs Layout ─────────────────────────────────────── */
.docs-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.docs-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem 0.75rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
}

.docs-nav-group {
    margin-bottom: 1rem;
}

.docs-nav-group-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8899aa;
    padding: 0.25rem 0.5rem 0.4rem;
}

.docs-nav-link {
    display: block;
    padding: 0.3rem 0.6rem;
    font-size: 0.855rem;
    color: #334155;
    text-decoration: none;
    border-radius: 5px;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    margin-bottom: 1px;
}

.docs-nav-link:hover {
    background: #f0f6ff;
    color: var(--azure-blue);
}

.docs-nav-link.active {
    background: #e8f2fc;
    color: var(--azure-blue);
    border-left-color: var(--azure-blue);
    font-weight: 600;
}

.docs-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ── Markdown Body ───────────────────────────────────── */
.markdown-body h1 { font-size: 1.9rem; font-weight: 700; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.4rem; margin-bottom: 1rem; color: var(--azure-navy); }
.markdown-body h2 { font-size: 1.35rem; font-weight: 700; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.3rem; margin-top: 2rem; margin-bottom: 0.75rem; color: #1a2e4a; }
.markdown-body h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #1a2e4a; }
.markdown-body h4 { font-size: 0.95rem; font-weight: 600; margin-top: 1rem; color: #334155; }

.markdown-body p { line-height: 1.75; margin-bottom: 1rem; color: #374151; }

.markdown-body a { color: var(--azure-blue); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
}
.markdown-body table th {
    background-color: var(--azure-navy);
    color: #fff;
    padding: 0.55rem 0.85rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
}
.markdown-body table td {
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid #e5eaf0;
    vertical-align: top;
    color: #374151;
}
.markdown-body table tr:last-child td { border-bottom: none; }
.markdown-body table tr:nth-child(even) td { background: #f8fafc; }

.markdown-body code {
    background: #f1f5f9;
    color: #0f4c81;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
}

.markdown-body pre {
    background: #0f1e33;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}
.markdown-body pre code {
    background: none;
    color: #c9d9e8;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.markdown-body ul, .markdown-body ol { padding-left: 1.5rem; margin-bottom: 1rem; color: #374151; }
.markdown-body li { margin-bottom: 0.3rem; line-height: 1.7; }

.markdown-body blockquote {
    border-left: 4px solid var(--azure-blue-light);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: #f0f6ff;
    border-radius: 0 6px 6px 0;
    color: #334155;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
