body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    color: #222831;
}

header {
    background: linear-gradient(90deg, #4b9988 0%, #6c5b7b 100%);
    color: #fff;
    padding: 32px 0 24px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    position: relative;
}

.menu-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    cursor: pointer;
}

nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

.hidden {
    display: none;
}

h1, h2, h3, h4 {
    margin: 0 0 16px 0;
    font-weight: 600;
}

h2 {
    color: #4b9988;
    border-left: 4px solid #6c5b7b;
    padding-left: 12px;
    margin-top: 32px;
}

main {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 20px;
}

section {
    background: #fff;
    margin-bottom: 32px;
    padding: 28px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    transition: box-shadow 0.2s;
}

section:hover {
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.13);
}

ul, ol {
    padding-left: 24px;
}

a {
    color: #6c5b7b;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #4b9988;
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reduced-size-1 {
    width: 50%;
    height: auto;
}

.reduced-size-2 {
    width: 70%;
    height: auto;
}

figure {
    margin: 0 0 32px 0;
    text-align: center;
}

figcaption {
    font-size: 0.95em;
    color: #888;
    margin-top: 8px;
}

/* Floating figure for text wrap */
.figure-wrap {
    float: right;
    width: 33%;
    margin: 0 0 16px 20px;
    text-align: center;
}

.figure-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.text-wrap {
    text-align: justify;
}

/* Figure positioned below floating figure */
.figure-wrap-below {
    width: 48%;
    text-align: center;
    margin: 0;
}

.figure-wrap-below img {
    width: 100%;
    height: auto;
    display: block;
}

/* Container for side-by-side figures */
.figures-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 32px 0;
}

.figures-container figure {
    margin: 0;
}

footer {
    background: #222831;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 8px rgba(44, 62, 80, 0.08);
}

/* DRC file display styles */
.drc-file-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.drc-file-content {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    margin: 0;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    background: #ffffff;
    color: #2d3748;
    white-space: pre;
    border-radius: 5px;
}

.drc-file-content code {
    background: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

/* Custom scrollbar for DRC file */
.drc-file-content::-webkit-scrollbar {
    width: 8px;
}

.drc-file-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

.drc-file-content::-webkit-scrollbar-thumb {
    background: #c1c7d0;
    border-radius: 4px;
}

.drc-file-content::-webkit-scrollbar-thumb:hover {
    background: #9aa0ac;
}

/* LVS file display styles */
.lvs-file-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lvs-file-content {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    margin: 0;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    background: #ffffff;
    color: #2d3748;
    white-space: pre;
    border-radius: 5px;
}

.lvs-file-content code {
    background: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

/* Custom scrollbar for LVS file */
.lvs-file-content::-webkit-scrollbar {
    width: 8px;
}

.lvs-file-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

.lvs-file-content::-webkit-scrollbar-thumb {
    background: #c1c7d0;
    border-radius: 4px;
}

.lvs-file-content::-webkit-scrollbar-thumb:hover {
    background: #9aa0ac;
}

/* Dropdown submenu styles */
.has-submenu {
    position: relative;
}

.has-submenu > a:after {
    content: " ▼";
    font-size: 0.7em;
}

.submenu {
    display: none;
    position: static;
    left: auto;
    top: auto;
    background: transparent;
    padding: 0;
    margin: 10px 0 0 60px;
    min-width: auto;
    border-radius: 4px;
    box-shadow: none;
    z-index: auto;
}

.submenu li {
    margin: 5px 0;
}

.submenu li a {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    display: block;
    text-align: center;
    font-size: 0.9em;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

@media (max-width: 700px) {
    main {
        padding: 0 8px;
    }
    section {
        padding: 16px 8px;
    }
    .reduced-size-1 {
        width: 80%;
    }
    .reduced-size-2 {
        width: 90%;
    }
    .submenu {
        margin-left: 20px;
    }
    .figure-wrap {
        float: none;
        width: 80%;
        margin: 16px auto;
        display: block;
    }
    .figure-wrap-below {
        width: 100%;
        margin: 12px 0;
    }
    .figures-container {
        flex-direction: column;
        gap: 16px;
    }
    .text-wrap {
        text-align: left;
    }
    
    .drc-file-content {
        height: 250px;
        font-size: 0.8em;
        padding: 12px;
    }
    
    .lvs-file-content {
        height: 250px;
        font-size: 0.8em;
        padding: 12px;
    }
}
