/* ConfNG Documentation - TestNG-inspired Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Header */
.site-header {
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.site-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.site-header nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-header nav a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.site-header nav a:hover {
    text-decoration: underline;
}

/* Main Content Layout */
main {
    padding: 40px 0;
}

main .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.toc {
    font-size: 14px;
}

.toc ol {
    list-style: none;
    padding-left: 0;
}

.toc > ol > li {
    margin-bottom: 10px;
}

.toc ol ol {
    padding-left: 20px;
    margin-top: 5px;
}

.toc ol ol li {
    margin-bottom: 5px;
}

.toc a {
    color: #0066cc;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Content */
.content {
    max-width: 900px;
}

.content section {
    margin-bottom: 60px;
}

.content h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #444;
}

.content p {
    margin-bottom: 15px;
}

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

.content li {
    margin-bottom: 8px;
}

.content a {
    color: #0066cc;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
}

/* Code Blocks */
.content pre {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.content table th,
.content table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.content table th {
    background: #f5f5f5;
    font-weight: 600;
}

.content table tr:nth-child(even) {
    background: #fafafa;
}

/* Footer */
footer {
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

footer p {
    color: #666;
    font-size: 14px;
}

footer a {
    color: #0066cc;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    main .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        position: static;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .site-header nav {
        flex-direction: column;
        gap: 10px;
    }

    .content h1 {
        font-size: 26px;
    }

    .content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 24px;
    }

    .content h1 {
        font-size: 22px;
    }

    .content h3 {
        font-size: 18px;
    }

    .content pre {
        padding: 10px;
        font-size: 12px;
    }
}

