/* 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;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar .logo img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.sidebar .logo h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.sidebar .logo .version {
    font-size: 12px;
    opacity: 0.8;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.nav-menu a.active {
    background: rgba(255,255,255,0.25);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-footer a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.sidebar-footer a:hover {
    opacity: 1;
}

/* Main Content */
.content {
    margin-left: 280px;
    padding: 40px 60px;
    max-width: 1200px;
    flex: 1;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.page-header h1 {
    font-size: 36px;
    color: #1a202c;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 18px;
    color: #718096;
}

/* Section Styles */
.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.section h3 {
    font-size: 22px;
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
}

.section h4 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 10px;
}

.section p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.7;
}

.section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.section li {
    margin-bottom: 8px;
    color: #4a5568;
}

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

.feature-card {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2d3748;
}

.feature-card p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
}

/* Steps */
.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.step-content ul {
    margin-left: 20px;
}

/* Menu Structure */
.menu-structure {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.menu-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.menu-item strong {
    display: block;
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 8px;
}

.menu-item p {
    margin-bottom: 8px;
    color: #4a5568;
}

.menu-tabs {
    display: inline-block;
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #4a5568;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-left: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Tables */
.requirements-table, .version-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.requirements-table td,
.version-table th,
.version-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
}

.version-table th {
    background: #f7fafc;
    font-weight: 600;
    text-align: left;
}

.requirements-table td:first-child {
    background: #f7fafc;
    width: 200px;
}

/* Info Boxes */
.info-box, .note {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.note {
    background: #fef5e7;
    border-left-color: #f39c12;
}

/* Option Boxes */
.option-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.option-box h4 {
    color: #667eea;
    margin-bottom: 15px;
}

/* Code Blocks */
code {
    background: #2d3748;
    color: #68d391;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-block {
    display: block;
    background: #2d3748;
    color: #68d391;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Scenario Boxes */
.scenario {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #48bb78;
}

.scenario ol {
    margin-left: 20px;
    margin-top: 10px;
}

.scenario ul {
    margin-left: 40px;
    margin-top: 5px;
}

/* Next Steps */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.next-link {
    display: block;
    padding: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.next-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.next-link strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.next-link p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .content {
        margin-left: 0;
        padding: 20px;
    }
    
    .feature-grid, .next-steps {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}
