/* Notion-like Styles */
:root {
    --bg-color: #FFFFFF;
    --text-color: #37352F;
    --gray-bg: #F7F6F3;
    --selection-color: #cce9ff;
    --code-bg: #F7F6F3;
    --link-color: #2e86de;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    /* Top padding increased for fixed breadcrumb */
}

/* Headers */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    padding-bottom: 5px;
    border-bottom: 1px solid #E0E0E0;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Text */
p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

strong {
    font-weight: 600;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(55, 53, 47, 0.4);
    transition: background 0.1s ease;
}

a:hover {
    background: rgba(55, 53, 47, 0.08);
}

.nav-link {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #37352F;
    border-bottom: 1px solid #E0E0E0;
    /* Reset default link style */
}

.nav-link:hover {
    background: var(--gray-bg);
    border-color: #D3D1CB;
    transform: translateX(4px);
}

.emoji-icon {
    margin-right: 12px;
}

/* Lists */
ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code Blocks */
pre {
    background: var(--code-bg);
    padding: 30px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

p code,
li code {
    background: rgba(135, 131, 120, 0.15);
    color: #EB5757;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 85%;
}

/* Callout/Info Box */
.callout {
    padding: 16px 16px 16px 12px;
    background: var(--gray-bg);
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.callout-icon {
    margin-right: 12px;
    font-size: 1.25rem;
    line-height: 1.5;
}

.callout-content {
    flex: 1;
    font-size: 1rem;
}

/* Breadcrumb Fixed Top (Navbar Style) */
.breadcrumb-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb-fixed-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

/* Old breadcrumb style (kept for compatibility) */
.breadcrumb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E0E0E0;
    z-index: 1000;
    font-size: 0.9rem;
    color: #888;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    padding: 0;
}

.breadcrumb-inner {
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb a {
    width: 100%;
    max-width: 900px;
    padding: 12px 20px;
    color: #666;
    border: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    box-sizing: border-box;
}

.breadcrumb a:hover {
    text-decoration: none;
    color: #2e86de;
    background: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    background: none;
}

/* ============================================
   VS CODE EDITOR STYLE - For Code Blocks
   ============================================ */

.code-editor {
    background: #1e1e1e;
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-editor-header {
    background: #252526;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.code-editor-dots {
    display: flex;
    gap: 0.375rem;
}

.code-editor-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.code-editor-dot.red {
    background: #ff5f56;
}

.code-editor-dot.yellow {
    background: #ffbd2e;
}

.code-editor-dot.green {
    background: #27c93f;
}

.code-editor-filename {
    color: #cccccc;
    font-size: 0.75rem;
    margin-left: 0.75rem;
}

.code-editor-copy {
    background: #0e639c;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.code-editor-copy:hover {
    background: #1177bb;
}

.code-editor-copy.copied {
    background: #238636;
}

.code-editor-body {
    display: flex;
    overflow-x: auto;
}

.code-editor-lines {
    background: #1e1e1e;
    color: #858585;
    padding: 0.75rem 0.5rem 0.75rem 0.75rem;
    text-align: right;
    user-select: none;
    border-right: 1px solid #333;
    min-width: 2.8rem;
}

.code-editor-line-num {
    display: block;
    line-height: 1.6;
}

.code-editor-content {
    padding: 0.75rem 1rem;
    overflow-x: auto;
    flex: 1;
}

.code-editor-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre;
    word-wrap: normal;
    color: #d4d4d4;
}

/* ============================================
   SYNTAX HIGHLIGHTING - UNTUK SEMUA FILE DOC
   ============================================ */

.code-editor .token-keyword {
    color: #c084fc;
}

.code-editor .token-property {
    color: #93c5fd;
}

.code-editor .token-string {
    color: #86efac;
}

.code-editor .token-number {
    color: #fca5a5;
}

.code-editor .token-comment {
    color: #94a3b8;
    font-style: italic;
}

.code-editor .token-operator {
    color: #d4d4d4;
}

.code-editor .token-punctuation {
    color: #d4d4d4;
}

.info-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.container-custom {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
}