:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --border-color: #bdc3c7;
    --success-color: #2ecc71;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    padding: 0;
    margin: 0;
}

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

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.logo .subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    background-color: var(--secondary-color);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--dark-color);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-color);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.download {
    padding: 80px 0;
    background-color: #f5f7fa;
    text-align: center;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.download-card {
    background-color: white;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.download-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.download-card p {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.version {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.system-requirements {
    background-color: white;
    padding: 60px 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.requirement-card {
    background-color: var(--light-color);
    border-radius: 5px;
    padding: 25px;
    text-align: center;
}

.requirement-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.requirement-card ul {
    list-style: none;
    text-align: left;
}

.requirement-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.requirement-card li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
}

.installation-steps {
    background-color: #f5f7fa;
    padding: 60px 0;
}

.steps {
    max-width: 800px;
    margin: 40px auto 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-number {
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #bbb;
}

/* License page styles */
.license-content {
    padding: 60px 0;
    background-color: white;
}

.license-section {
    margin-bottom: 40px;
}

.license-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.license-section h3 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.license-section p, .license-section ul {
    margin-bottom: 15px;
}

.license-section ul {
    padding-left: 20px;
}

.license-section li {
    margin-bottom: 8px;
}

.highlight-box {
    background-color: var(--light-color);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

/* License page specific styles */
.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.license-item {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 5px;
    background: #f9f9f9;
}

.license-item h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.compliance-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
}

.compliance-notice p {
    margin: 0;
    color: #856404;
}

.note {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    margin: 1rem 0;
}

.note p {
    margin: 0.5rem 0;
}

.license-item p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Documentation page styles - UPDATED FOR VERTICAL TOC */
.doc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.toc {
    flex: 0 0 280px;
    background-color: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: flex-start;
}

.toc h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.2rem;
}

.toc > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.toc > ul > li {
    margin-bottom: 8px;
    display: block;
    width: 100%;
}

.toc a {
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    padding: 8px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.toc a:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding-left: 10px;
}

.toc a.active {
    background-color: var(--secondary-color);
    color: white;
}

/* Dropdown styles - UPDATED FOR VERTICAL LAYOUT */
.toc .dropdown {
    position: relative;
}

.toc .dropdown > a {
    font-weight: 500;
    padding-right: 30px;
}

.toc .dropdown > a::after {
    content: "▼";
    font-size: 0.7em;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.toc .dropdown.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.toc .dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc .dropdown.active .dropdown-content {
    max-height: 500px;
}

.toc .dropdown-content ul {
    list-style: none;
    padding-left: 10px;
    margin: 8px 0;
    flex-direction: column;
}

.toc .dropdown-content li {
    margin-bottom: 6px;
}

.toc .dropdown-content a {
    font-size: 0.9rem;
    padding: 6px 5px;
    color: #5a6c7d;
}

.toc .dropdown-content a:hover {
    background-color: #e8f4f8;
    color: var(--secondary-color);
}

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

.doc-section {
    background-color: white;
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.doc-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.8rem;
}

.doc-section h3 {
    color: var(--secondary-color);
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.doc-section h4 {
    color: var(--dark-color);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.doc-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.doc-section ul, .doc-section ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.doc-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.code-block {
    background-color: var(--light-color);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.note {
    background-color: #e8f4fd;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.warning p {
    margin: 0;
    color: #856404;
}

.keyboard-shortcut {
    display: inline-block;
    background-color: var(--dark-color);
    color: white;
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    margin: 0 2px;
}

.interface-element {
    font-weight: 600;
    color: var(--secondary-color);
    background-color: var(--light-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Download page specific styles */
.download-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.download-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.main-download {
    background-color: white;
    padding: 60px 0;
    text-align: center;
}

.main-download-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 10px;
    padding: 50px 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-download-card h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 20px;
}

.main-download-card .version {
    background-color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.file-info {
    background-color: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}

.file-info ul {
    list-style: none;
    padding: 0;
}

.file-info li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.file-info li:before {
    content: "•";
    position: absolute;
    left: 0;
}

.alternative-downloads {
    background-color: #f5f7fa;
    padding: 60px 0;
}

.alternative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.alternative-card {
    background-color: white;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.alternative-card:hover {
    transform: translateY(-5px);
}

.alternative-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.alternative-card .btn {
    margin-top: 15px;
}

/* Responsive styles */
@media (max-width: 968px) {
    .doc-container {
        flex-direction: column;
    }
    
    .toc {
        flex: 0 0 auto;
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }
    
    .doc-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}