/* Global Reset & Basics */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #ffffff; color: #333; line-height: 1.5; }
p { margin-bottom: 0.8rem; }
ul, ol { margin: 0.8rem 0; margin-left: 1.2rem; }
li { margin-bottom: 0.3rem; }
.container a { color: #0000EE; text-decoration: underline; }

/* Top Navigation */
.top-nav { 
    background: #116688; 
    padding: 0.3rem 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    min-width: 100px;
    padding: 0 1rem;
}

/* Rest of the navigation styles remain the same */
.nav-title-link { text-decoration: none; color: #ffffff; }
.nav-title { font-weight: bold; color: #ffffff; font-size: 1rem; }
.nav-title-link:hover { opacity: 0.8; }

/* Desktop Navigation Links */
.main-nav-links { display: flex; align-items: center; justify-content: flex-end; }
.nav-item { position: relative; }
.nav-item > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0 1rem;
    display: block;
    line-height: 1;
}
.nav-item > a:hover { text-decoration: underline; }

/* Keep all the dropdown styles the same */
.category-dropdown {
    position: relative;
    padding: 0 1rem;
}
.category-label {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0;
}
.category-label:hover { text-decoration: underline; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #116688;
    min-width: 275px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    right: 0;
    padding: 0;
    border-radius: 0 0 4px 4px;
    text-align: right;
}

/* Keep all the dropdown item styles the same */
.dropdown-item-block {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem 1rem 1.2rem 1rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown-item-block:last-of-type {
    border-bottom: none;
}

.dropdown-item-block:hover {
    background-color: #0e5770;
    text-decoration: none;
}

.dropdown-item-title {
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 0.2rem;
    padding-top: 5px;
    padding-bottom: 5px;
}

.dropdown-item-subtitle {
    color: #f0f8ff;
    font-size: 0.75em;
    font-weight: normal;
    line-height: 1.3;
}

/* Show the dropdown menu on hover */
.category-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Default (Desktop) State */
.menu-section { display: none; }
.desktop-nav-only { display: flex; }
.mobile-menu-button { 
    display: none; 
    cursor: pointer; 
    padding: 0.5rem; 
    border: none; 
    background: transparent; 
    z-index: 20; 
}
.mobile-menu-button .bar { 
    width: 22px; 
    height: 2px; 
    background-color: #ffffff; 
    margin: 4px 0; 
    display: block; 
    transition: all 0.3s ease-in-out; 
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modified container styles for modern look */
.container-wrapper { 
    display: flex; 
    justify-content: center; 
    padding: 1rem;
    width: 80%;
    min-width: 100px;
    margin: 0 auto;
}

.container { 
    background: transparent; 
    border-left: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.highlight { background: #e8f7ff; border-left: 3px solid #116688; padding: 0.8rem; margin-bottom: 1rem; border-radius: 4px; }
.highlight .icon { font-size: 1.2rem; color: #116688; margin-top: 0.1rem; float: left;}
.highlight p, .highlight ul, .highlight li {margin-left: 35px;}

/* Modified heading styles for modern look */
h1 { font-size: 1.3rem; margin-bottom: 1rem; color: #116688; }
h2 { font-size: 1.25rem; margin-bottom: 0.8rem; color: #116688; padding-bottom: 0.6rem; border-bottom: 3px solid #116688; font-weight: bold; }
p.subtitle { font-weight: normal; font-style: italic; font-size: 1rem; color: #666; margin-top: -0.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: #116688; background-color: #f0f8ff; padding: 0.5rem 0.8rem; border-radius: 4px; display: inline-block; }

/* Keep the rest of the styles the same */
.controls { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.5rem; overflow-x: auto; padding-bottom: 0.3rem; border-bottom: 1px solid #ddd; }
.controls::-webkit-scrollbar { height: 4px; }
.controls::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.controls label { display: flex; flex-direction: column; font-size: 0.85rem; white-space: nowrap; }
#traffic, #frequency { width: 100px; }
#cr { width: 70px; }
.controls input, .controls select { margin-top: 0.2rem; padding: 0.4rem; border: 1px solid #ccc; border-radius: 3px; font-size: 0.9rem; }
.checkbox-label { display: flex; align-items: center; font-size: 0.85rem; }
.checkbox-label input { margin-right: 0.3rem; }
#copyBtn { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: #116688; padding: 0.2rem; position: relative; }
#copyBtn:hover { color: #0e5770; }
#copyMsg { font-size: 0.8rem; color: #116688; margin-left: 0.3rem; opacity: 0; transition: opacity 0.2s; }
canvas { width: 100% !important; height: auto !important; display: block; }

/* Modified footer styles */
.site-footer { 
    text-align: center; 
    padding: 0.8rem 0; 
    margin-top: 1.5rem; 
    font-size: 0.8rem; 
    color: #666;
    width: 80%;
    min-width: 100px;
    margin: 1.5rem auto 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: #116688;
        flex-direction: column;
        align-items: flex-end;
        padding: 1rem 0;
        z-index: 10;
        box-shadow: 0 44px 6px rgba(0, 0, 0, 0.1);
    }
    .main-nav-links.is-open { 
        display: flex; 
        padding-top: calc(0.3rem + 1rem + 1rem); 
    }
    .desktop-nav-only { 
        display: none !important; 
    }
    .menu-section { 
        display: block; 
        width: 100%; 
        padding: 0.5rem 1.5rem; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    }
    .main-nav-links .menu-section:last-of-type { 
        border-bottom: none; 
    }
    .main-nav-links .menu-section-title { 
        color: #ffffff; 
        font-weight: bold; 
        font-size: 1rem; 
        margin-bottom: 0.5rem; 
        display: flex; 
        align-items: center; 
        justify-content: flex-end; 
        gap: 0.5rem; 
    }
    .main-nav-links .menu-section-title .icon { 
        font-size: 1.2em; 
        line-height: 1; 
    }
    .main-nav-links .menu-section-links { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-end; 
        padding: 0.5rem 0; 
    }
    .main-nav-links a {
        width: auto;
        text-align: right;
        padding: 0.4rem 0;
        margin-right: 0;
        color: #ffffff;
        text-decoration: none;
    }
    .main-nav-links a:not(:last-child)::after { 
        content: none; 
    }
    .mobile-menu-button { 
        display: block; 
    }
    .nav-title { 
        font-size: 0.9rem; 
    }
    
    /* Adjust container width for mobile */
    .container-wrapper,
    .top-nav,
    .site-footer {
        width: 100%;
    }
    
    .nav-content {
        width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .controls { flex-wrap: nowrap; }
    .controls label, #copyBtn, #copyMsg { white-space: nowrap; font-size: 0.8rem; }
}

/* Keep accordion styles the same */
.accordion { margin-bottom: 1rem; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.accordion-summary { background-color: #f5f5f5; padding: 0.8rem 1rem; cursor: pointer; font-weight: bold; color: #333; display: flex; justify-content: space-between; align-items: center; }
.accordion-summary::after { content: '▼'; font-size: 0.8em; transition: transform 0.2s; }
.accordion[open] .accordion-summary::after { transform: rotate(180deg); }
.accordion-content { padding: 1rem; border-top: 1px solid #eee; }

/* Keep cookie notification styles the same */
#cookie-notification-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #333; color: #fff; padding: 1rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1rem; z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); font-size: 0.9rem; line-height: 1.4; }
#cookie-notification-banner p { margin-bottom: 0; text-align: center; }
#cookie-notification-banner a { color: #88ccee; text-decoration: underline; }
#cookie-notification-banner button { background-color: #116688; color: #fff; border: none; padding: 0.7rem 1.2rem; border-radius: 5px; cursor: pointer; font-weight: bold; transition: background-color 0.3s ease; }
#cookie-notification-banner button:hover { background-color: #0e5770; }
body.has-cookie-banner { padding-bottom: 80px; }

@media (min-width: 769px) {
    #cookie-notification-banner { flex-direction: row; text-align: left; }
    #cookie-notification-banner p { text-align: left; }
} 