:root {
    --primary-color: #5d8aeb;
    --primary-hover: #4a75d1;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-code: #0b0f19;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding-top: 60px;
    line-height: 1.6;
}

/* Custom Navbar styling to align with Dark Mode theme */
#navbar.bar {
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
#navbar a.button {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}
#navbar a.button:hover {
    background-color: var(--border-color) !important;
    color: var(--primary-color) !important;
}

.container {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .grid {
        grid-template-columns: 2fr 3fr;
    }
}

.card-modern {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

/* Step items styling */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.step-item::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.step-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-main);
}

.step-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Code Tabs styling */
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.4);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background-color: rgba(255,255,255,0.02);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(93, 138, 235, 0.05);
}

.tabs-content {
    position: relative;
    background-color: var(--bg-code);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.code-panel {
    display: none;
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.code-panel.active {
    display: block;
}


