html,
body,
#root {
    margin: 0;
    min-height: 100%;
}

body {
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 76, 129, 0.26);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 76, 129, 0.06);
}

/* Wiki content body — Google Cloud Console doc style */
.wiki-body {
    font-family: Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.625;
    color: #3c4043;
}

.wiki-body h2 {
    font-size: 1.375rem;
    font-weight: 500;
    color: #202124;
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eaed;
}

.wiki-body h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #202124;
    margin: 28px 0 8px;
}

.wiki-body h4 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #202124;
    margin: 20px 0 6px;
}

.wiki-body p {
    margin: 0 0 16px;
    color: #3c4043;
}

.wiki-body ul,
.wiki-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.wiki-body li {
    margin-bottom: 6px;
    line-height: 1.6;
    color: #3c4043;
}

.wiki-body a {
    color: #1a73e8;
    text-decoration: none;
}
.wiki-body a:hover {
    text-decoration: underline;
}

.wiki-body strong {
    font-weight: 500;
    color: #202124;
}

.wiki-body code {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.8125rem;
    background: #f8f9fa;
    color: #c5221f;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e8eaed;
}

.wiki-body pre {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-left: 4px solid #4285f4;
    border-radius: 0 4px 4px 0;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 0 0 24px;
    line-height: 1.5;
}

.wiki-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: #3c4043;
    font-size: 0.8125rem;
}

.wiki-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 0.875rem;
}

.wiki-body th {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    padding: 10px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #3c4043;
}

.wiki-body td {
    border: 1px solid #e8eaed;
    padding: 10px 16px;
    color: #3c4043;
    vertical-align: top;
}

.wiki-body tr:hover td {
    background: #f8f9fa;
}

.wiki-body hr {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 24px 0;
}

.wiki-body .mermaid {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
}

/* Terminal styling for bash code blocks */
.terminal {
    margin: 20px 0 !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.terminal-header {
    background: #2a2a2a !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #3a3a3a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.terminal-header::before {
    content: "" !important;
    width: 12px !important;
    height: 12px !important;
    background: #ff5f56 !important;
    border-radius: 50% !important;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f !important;
}

.terminal-title {
    display: none !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #888 !important;
    font-family: 'Roboto Mono', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.terminal pre {
    background: #1a1a1a !important;
    border: none !important;
    border-left: none !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    overflow-x: auto !important;
    color: #e0e0e0 !important;
}

.terminal pre code {
    color: #e0e0e0 !important;
    background: none !important;
    font-size: 0.85rem !important;
    font-family: 'Roboto Mono', monospace !important;
    line-height: 1.3 !important;
    border: none !important;
    padding: 0 !important;
}
