:root {
    --bg-page: #fdfdfd;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #e5e5e5;
    --accent: #000000;
    --bg-code: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.document-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.doc-header {
    margin-bottom: 40px;
}

.doc-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.doc-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Table of Contents */
.toc {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.toc strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 8px;
}

.toc li:last-child {
    margin-bottom: 0;
}

.toc a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Typography & Content Sections */
section {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    padding-top: 10px;
}

.step {
    margin-bottom: 28px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.step p {
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Data box (for Object Properties) */
.data-box {
    background-color: var(--bg-code);
    border-radius: 6px;
    padding: 16px;
    margin-top: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.data-row {
    display: flex;
    margin-bottom: 6px;
}

.data-row:last-child {
    margin-bottom: 0;
}

.label {
    color: var(--text-secondary);
    width: 140px;
    flex-shrink: 0;
}

.value {
    color: var(--text-primary);
}

/* Lists and Codes */
ul.ip-list {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

ul.ip-list li {
    margin-bottom: 6px;
}

code {
    background-color: var(--bg-code);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

/* Dividers */
.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 50px 0;
}

/* Footer */
.doc-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Copyable Elements */
.copy-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}

.copy-btn {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.copy-btn .btn-label {
    color: var(--text-secondary);
    font-weight: 400;
    margin-right: 6px;
}

.copy-btn:hover {
    border-color: #bbbbbb;
    background-color: #f9f9f9;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #111111;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .doc-header h1 {
        font-size: 2rem;
    }
    
    .document-wrapper {
        padding: 40px 20px;
    }
    
    .data-row {
        flex-direction: column;
    }
    
    .label {
        width: 100%;
        margin-bottom: 2px;
        font-size: 0.85rem;
    }
}
