body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #191919;
    line-height: 1.6;
}

header {
    background-color: #191919;
    color: #FFFFFF;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 4px solid #F1B300;
}

.site-title {
    color: #F1B300;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1rem;
}

h1,
h2,
h3 {
    color: #191919;
}

.section {
    margin-bottom: 2rem;
}

.methods,
.datasets {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card {
    background-color: #FFFFFF;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 250px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border-top: 2px solid #808080;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(241, 179, 0, 0.2);
    transform: translateY(-2px);
    border-top-color: #F1B300;
}

.card a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card h3 {
    margin-top: 0;
    color: #191919;
}

img.plot {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #808080;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.metric-table {
    width: 100%;
    border-collapse: collapse;
}

.metric-table th,
.metric-table td {
    padding: 0.5rem 0;
}

.metric-table th {
    border-bottom: 2px solid #F1B300;
    white-space: nowrap;
    color: #191919;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.results-note {
    margin-top: 1rem;
    color: #808080;
}

.result-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #808080;
}

footer {
    background-color: #191919;
    color: #FFFFFF;
    padding: 3rem 1rem 1.5rem;
    font-size: 0.95rem;
    border-top: 4px solid #F1B300;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #F1B300;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin: 0.5rem 0;
    line-height: 1.7;
    color: #FFFFFF;
}

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

.footer-section li {
    margin: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.footer-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #F1B300;
}

footer a {
    color: #F1B300;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #808080;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #808080;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(241, 179, 0, 0.1);
    border: 1px solid #F1B300;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #F1B300;
    transform: translateY(-3px);
}

.social-icons img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

.social-icons a:hover img {
    filter: brightness(0);
}

footer strong {
    color: #F1B300;
}

.chart-controls {
    margin: 2rem 0 1.5rem 0;
    padding: 1rem;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #F1B300;
}

.chart-controls label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #191919;
}

.chart-controls select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #808080;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #191919;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chart-controls select:hover {
    border-color: #F1B300;
}

.chart-controls select:focus {
    outline: none;
    border-color: #F1B300;
    box-shadow: 0 0 5px rgba(241, 179, 0, 0.3);
}

.charts-container {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 2rem;
    border-top: 4px solid #F1B300;
}

.charts-container div {
    margin-bottom: 1.5rem;
}

.charts-container div:last-child {
    margin-bottom: 0;
}

.detailed-results {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-left: 4px solid #808080;
    transition: border-color 0.3s ease;
}

.detailed-results summary {
    font-size: 1.1rem;
    padding: 0.5rem;
    user-select: none;
    color: #191919;
    transition: color 0.3s ease;
}

.detailed-results summary:hover {
    color: #F1B300;
}

.detailed-results[open] {
    border-left-color: #F1B300;
}

.detailed-results[open] summary {
    color: #191919;
    margin-bottom: 1rem;
}

.plotly-graph-div {
    border-radius: 6px;
    position: relative;
}

.plotly-graph-div .modebar {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.plotly-graph-div .modebar-btn {
    padding: 6px 8px !important;
    font-size: 12px !important;
}

@media (max-width: 768px) {
    .methods,
    .datasets {
        flex-direction: column;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }
}
