/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
}

.header-container {
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100%;
    width: auto;
}

/* Main Container */
.main-container {
    margin-top: 60px;
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
}

/* Sidebar Navigation */
.sidebar {
    display: none;
    width: 100%;
    background: #fff;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    padding: 1rem;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    z-index: 999;
}

.sidebar.active {
    display: block;
}

.nav-group {
    margin-bottom: 1rem;
}

.nav-group-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0.75rem 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.nav-group-header h3 {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.nav-group-header i {
    font-size: 0.875rem;
    color: #666;
    transition: transform 0.3s ease;
}

.nav-group-content {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-group-content.expanded {
    max-height: 500px; /* Adjust this value based on your content */
}

.nav-group-content li a {
    display: block;
    padding: 0.5rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.nav-group-content li a:hover,
.nav-group-content li a.active {
    background: #f0f0f0;
    color: #007bff;
}

.nav-group-header.expanded i {
    transform: rotate(180deg);
}

/* Content Area */
.content {
    flex: 1;
    padding: 1rem;
    max-width: 100%;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #007bff;
}

.breadcrumb i {
    font-size: 0.75rem;
    color: #999;
}

/* Tutorial Content */
.tutorial-content {
    max-width: 800px;
    margin: 0 auto;
}

.tutorial-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tutorial-section {
    margin-bottom: 2rem;
}

.tutorial-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tutorial-section h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
}

.tutorial-section p {
    margin-bottom: 1rem;
}

.tutorial-section ul,
.tutorial-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.tutorial-section li {
    margin-bottom: 0.5rem;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .header-container {
        max-width: 1200px;
        /* margin: 0 auto; */
    }

    .menu-toggle {
        display: none;
    }

    .sidebar {
        display: block;
        width: 280px;
        position: sticky;
        top: 60px;
        z-index: 1;
    }

    .content {
        padding: 2rem;
    }
}
