/* Navigation */
.top-nav {
    position: fixed;
    top: 0rem;
    left: 0rem;
    right: 0rem;
    z-index: 1000;
    background: var(--contentbg);
    margin-bottom: 2rem;
    box-shadow: 0rem 0.2rem 0.3rem var(--shadow)
}

.nav-tabs {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    padding: 0 2rem;
}

.nav-tab {
    border-bottom: 0.3rem solid transparent;
    font-size: 1rem;
    color: var(--textlight);
    background: transparent;
    border-radius: 0rem;
    padding: 1rem 1.5rem;
    transition: all 0.2s;
    font-weight: 500;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.nav-tab:hover {
    background: var(--bgtint);
    color: var(--textdark);
    border-bottom-color: var(--bgtintdark);
}

.nav-tab.active {
    background: transparent;
    color: var(--accent);
    font-weight: 500;
    border-bottom-color: var(--accent);
}

.content-box{
    background: var(--contentbg);
    border-radius: 0.7rem;
    padding: 1rem 2rem 2rem 2rem;
    box-shadow: 0rem 0.2rem 0.3rem var(--shadow);
    margin-bottom: 2rem;
}

/* Utility components */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--textlight);
}

.error {
    background-color: var(--warninglight);
    border: 1px solid var(--warning);
    border-radius: 0.3rem;
    padding: 1rem;
    color: var(--warning);
    margin: 1rem 0;
}

.citation-container {
    position: relative;
    margin-bottom: 1rem;
}

.citation-box {
    background-color: var(--background);
    border: 1px solid var(--bgtint);
    border-radius: 0.3rem;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-bottom: 0;
    white-space: pre;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background-color: var(--bgtint);
    color: var(--textdark);
    border: 1px solid var(--bgtintdark);
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.copy-button:hover {
    background-color: #d0d0d0;
    border-color: #b0b0b0;
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background-color: #10b981;
    color: white;
    border-color: #059669;
}

.copy-icon {
    width: 16px;
    height: 16px;
}

.chart-container h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.performance-chart {
    max-width: 100%;
    height: auto;
}

.highlight-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.highlight-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.highlight-checkbox span {
    color: var(--textdark);
    font-size: 0.9rem;
}

.table-controls {
    display: none;
}

.details-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.details-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.details-checkbox span {
    color: var(--textdark);
    font-size: 0.9rem;
}

/* Search bar */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--textlight);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--bgtint);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--textdark);
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 167, 189, 0.1);
}

.search-input::placeholder {
    color: var(--textlight);
    opacity: 0.6;
}

.search-results {
    position: absolute;
    right: 1rem;
    color: var(--textlight);
    font-size: 0.85rem;
    pointer-events: none;
}

.txtlink {
  color: var(--accent);
  text-decoration: none;
}

ul li::marker {
    color: var(--textlight);
}

/* Responsive Design - Navigation */
@media screen and (max-width: 768px) {
    .nav-tabs {
        padding: 0 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .content-box {
        padding: 1rem 1rem 1.5rem 1rem;
    }

    .citation-box {
        font-size: 0.75rem;
        padding: 0.8rem;
    }

    .copy-button {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .citation-container {
        display: flex;
        flex-direction: column;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.65rem 1rem 0.65rem 2.5rem;
    }

    .search-icon {
        left: 0.75rem;
        width: 18px;
        height: 18px;
    }

    .search-results {
        font-size: 0.75rem;
        right: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-tabs {
        padding: 0 0.25rem;
    }

    .nav-tab {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .content-box {
        padding: 0.8rem;
    }

    .citation-box {
        font-size: 0.7rem;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem 0.6rem 2.3rem;
    }

    .search-icon {
        left: 0.6rem;
        width: 16px;
        height: 16px;
    }

    .search-results {
        display: none;
    }
}
