:root {
    --primary: #00DCDC;
    --primary-dark: #00AEAE;
    --bg-dark: #0a0a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #f0f0f0;
    --text-muted: #a0a0b0;
    --border: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(0, 220, 220, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 4rem;
}

.doc-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.task-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border);
}

pre[class*="language-"] {
    margin: 0 !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    background: #0a0f1a !important; /* Even deeper dark background */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

code[class*="language-"] {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    font-family: 'JetBrains Mono', monospace !important;
    color: #e2e8f0 !important;
}

/* Premium Syntax Highlighting (Dracula-inspired) */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #94a3b8 !important; font-style: italic; }
.token.punctuation { color: #94a3b8 !important; }
.token.property, .token.tag, .token.constant, .token.symbol, .token.deleted { color: #f472b6 !important; }
.token.boolean, .token.number { color: #c084fc !important; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #4ade80 !important; }
.token.operator, .token.entity, .token.url, .variable { color: #94a3b8 !important; }
.token.atrule, .token.attr-value, .token.function, .token.class-name { color: #60a5fa !important; }
.token.keyword { color: #fb7185 !important; font-weight: 600; }
.token.regex, .token.important { color: #fbbf24 !important; }

.task-item p {
    margin-top: 0;
    margin-bottom: 1rem;
}

header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-shadow: 0 0 10px var(--primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(45deg, var(--primary), transparent) border-box;
    background-clip: padding-box, border-box; /* Fixed compatibility */
    border: 1px solid transparent;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #fff;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--primary);
}

pre {
    background: #0d1117;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

pre code {
    background: none;
    padding: 0;
    color: #e6edf3;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    background: var(--accent-glow);
    margin-bottom: 1.5rem;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(0, 220, 220, 0.1);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

strong {
    color: #fff;
}

.highlight {
    color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@media (max-width: 768px) {
    .doc-container {
        padding: 1.5rem;
    }
    h1 {
        font-size: 2rem;
    }
}
