:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --header-bg: #007BFF;
    --header-hover: #0056b3;
    --sidebar-bg: #007BFF;
    --accordion-bg: #fff;
    --table-border: #ddd;
    --highlight-bg: #e7f3ff;
    --highlight-border: #007BFF;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accordion-bg: #2a2a2a;
    --table-border: #444;
    --highlight-bg: #2a3a5a;
    --highlight-border: #4da8ff;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    background-color: var(--header-bg);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

#menu-btn, #theme-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
}

#menu-btn:hover, #theme-toggle:hover {
    transform: scale(1.1);
}

#menu-btn:focus, #theme-toggle:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

#sidebar {
    position: fixed;
    top: 70px;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--sidebar-bg);
    color: white;
    transition: left 0.3s ease;
    z-index: 999;
}

#sidebar.active {
    left: 0;
}

#sidebar ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

#sidebar ul li {
    margin: 15px 0;
}

#sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 5px;
}

#sidebar ul li a:hover, #sidebar ul li a:focus {
    text-decoration: underline;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

main {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.accordion {
    margin-bottom: 20px;
    border: 1px solid var(--table-border);
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--header-bg);
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover, .accordion-header:focus {
    background-color: var(--header-hover);
    outline: none;
}

.accordion-content {
    padding: 15px;
    display: none;
    background-color: var(--accordion-bg);
    color: var(--text-color);
}

.accordion-content.active {
    display: block;
}

.section-image {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.comparison-table th, .comparison-table td {
    border: 1px solid var(--table-border);
    padding: 10px;
    text-align: left;
}

.comparison-table th {
    background-color: var(--header-bg);
    color: white;
}

body.dark-mode .comparison-table th {
    background-color: var(--header-hover);
}

.highlight-box {
    background-color: var(--highlight-bg);
    border-left: 5px solid var(--highlight-border);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 20px;
    }

    #sidebar {
        width: 200px;
        left: -200px;
    }

    main {
        padding: 15px;
    }

    .accordion-header {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    #menu-btn, #theme-toggle {
        font-size: 20px;
    }

    main {
        margin-top: 60px;
    }
}
