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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #f52225 0%, #c41e20 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 8px;
    font-weight: 700;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.version {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Main Content */
main {
    background: white;
    margin: 30px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.documentation-wrapper {
    margin-top: 30px;
    display: flex;
    gap: 40px;
    position: relative;
}

.content-main {
    flex: 1;
    min-width: 0;
}

/* Right Sidebar Navigation */
.sidebar-nav {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-nav-inner {
    margin-top: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
    bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #f52225;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-nav h4 {
    color: #f52225;
    font-size: 1.1em;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f52225;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav ul li {
    margin: 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9em;
}

.sidebar-nav ul li a:hover {
    background: #fff;
    color: #f52225;
    padding-left: 16px;
}

.sidebar-nav ul li a.active {
    background: #f52225;
    color: white;
    font-weight: 600;
}

/* Scrollbar styles for sidebar */
.sidebar-nav-inner::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar-nav-inner::-webkit-scrollbar-thumb {
    background: #f52225;
    border-radius: 10px;
}

.sidebar-nav-inner::-webkit-scrollbar-thumb:hover {
    background: #c41e20;
}

section {
    margin-bottom: 50px;
    padding-top: 20px;
}

h2 {
    color: #f52225;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f52225;
}

h3 {
    color: #c41e20;
    font-size: 1.5em;
    margin: 25px 0 15px;
}

h4 {
    color: #555;
    font-size: 1.2em;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul,
ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* Code Blocks */
pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.9em;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

th {
    background: #f52225;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background: #f5f5f5;
}

/* Boxes */
.info-box {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box {
    background: #fff4e6;
    border-left: 4px solid #f39c12;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.success-box {
    background: #e8f8f5;
    border-left: 4px solid #27ae60;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    color: #f52225;
    margin-top: 0;
}

/* File Structure */
.file-tree {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.file-tree ul {
    list-style: none;
    margin-left: 20px;
}

.file-tree li {
    margin: 5px 0;
}

.file-tree .folder::before {
    content: "📁 ";
}

.file-tree .file::before {
    content: "📄 ";
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    main {
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .documentation-wrapper {
        flex-direction: column;
    }

    .sidebar-nav {
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }

    .sidebar-nav-inner {
        position: relative;
        top: 0;
        max-height: 300px;
    }
}

/* Print Styles */
@media print {
    .sidebar-nav {
        display: none;
    }

    main {
        box-shadow: none;
    }
}