/* Layout Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.navbar {
    grid-area: navbar;
    height: 100px;
}

.main-content {
    grid-area: main;
    padding: 2rem;
    flex: 1;
    width: 100%;
}

.footer {
    grid-area: footer;
    background: #f7fafc;
    padding: 2rem;
    text-align: center;
}

/* Main Content Styles */
.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #425466;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #635bff;
    text-decoration: none;
}

.breadcrumb i {
    font-size: 0.75rem;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0a2540;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.125rem;
    color: #425466;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.75rem;
    color: #0a2540;
    margin-bottom: 1.5rem;
}

/* Code Section Styles */
.code-section {
    margin-bottom: 3rem;
}

.code-preview {
    background-color: #1a1f36;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-preview pre {
    margin: 0;
    color: #ffffff;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Table Styles */
.table-section {
    margin-bottom: 3rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e6ebf1;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #0a2540;
}

tr:hover {
    background-color: #f7fafc;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a1f36;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-menu-container {
    padding: 1rem;
}

.mobile-menu-container a {
    display: block;
    padding: 1rem;
    color: #1a1f36;
    text-decoration: none;
    border-bottom: 1px solid #e6ebf1;
}

.mobile-menu-buttons {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "navbar"
            "main"
            "footer";
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .content-container {
        padding: 0 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        display: none;
    }

    .mobile-menu-buttons {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
} 