:root {
    --bg-color: #ffffff;
    --text-color: #1e1e2f;
    --card-bg: #f9f9fb;
    --border-color: #e0e0e0;
    --code-bg: #f4f4f6;
    --code-text: #d14;
    --table-header-bg: #f0f0f2;
    --table-row-hover: #f5f5f7;
    --button-bg: #f0f0f2;
    --button-hover: #e0e0e2;
}

.dark {
    --bg-color: #1e1e2f;
    --text-color: #e0e0e0;
    --card-bg: #2d2d3a;
    --border-color: #3a3a4a;
    --code-bg: #2a2a36;
    --code-text: #ff8c8c;
    --table-header-bg: #3a3a4a;
    --table-row-hover: #3f3f4f;
    --button-bg: #3a3a4a;
    --button-hover: #4a4a5a;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 0.3rem;
}

h2 {
    font-size: 1.8rem;
    border-left: 5px solid #4a90e2;
    padding-left: 1rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.2em;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}

pre {
    background: var(--code-bg);
    border-left: 4px solid #4a90e2;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

code {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: var(--code-text);
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

pre code {
    background: none;
    padding: 0;
    color: var(--text-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: var(--table-header-bg);
    font-weight: 600;
}

tr:hover {
    background-color: var(--table-row-hover);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

#theme-switch {
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-switch:hover {
    background: var(--button-hover);
    transform: scale(1.05);
}

.process-steps ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.note {
    background: rgba(74, 144, 226, 0.1);
    border-left: 4px solid #4a90e2;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 8px;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .card {
        padding: 1rem;
    }
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
    #theme-switch {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
.nav-links {
    margin-bottom: 0.5rem;
}
.back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #4a90e2;
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: all 0.2s;
}
.back-link:hover {
    background: var(--button-bg);
    text-decoration: none;
}
