@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #FFC107;
    /* NPU Gold */
    --primary-dark: #FFA000;
    --secondary-color: #2c3e50;
    --accent-color: #34495e;
    --text-color: #333333;
    --bg-color: #f4f6f9;
    --sidebar-width: 280px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid #e1e4e8;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.02);
}

.brand {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 1px solid #eee;
    background: linear-gradient(to right, #fff, #fefefe);
}

.brand i {
    color: var(--primary-color);
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-links li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: #fff8e1;
    /* Light yellow bg */
    color: var(--primary-dark);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

.visitor-stats {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e9ecef;
}

.visitor-stats i {
    color: var(--primary-color);
}

.visitor-stats strong {
    color: var(--primary-dark);
}

/* Main Content */
.content {
    margin-left: var(--sidebar-width);
    padding: 2rem 4rem;
    flex: 1;
    max-width: 1200px;
}

header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Sections */
.section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
    /* Smooth scroll offset */
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.section-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.section-header h2 {
    font-size: 1.8rem;
    border-bottom: none;
    margin: 0;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #e1e4e8;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h3 i {
    color: var(--primary-dark);
    font-size: 1.1em;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

/* Lists */
.steps-list {
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.steps-list li {
    margin-bottom: 0.8rem;
    color: #444;
}

/* Special Elements */
.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    overflow-x: auto;
    border-left: 4px solid var(--primary-color);
}

.alert-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 4px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-box i {
    color: #2196f3;
    margin-top: 3px;
}

.solution-box {
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    color: #e65100;
}

.download-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.download-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e1e4e8;
    }

    .nav-links {
        display: none;
        /* Hide nav on mobile, maybe add hamburger later if needed, or just list */
    }

    .content {
        margin-left: 0;
        padding: 2rem;
    }
}

.tutorial-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: block;
}