body {
    font-family: Arial, sans-serif;
    background-color: #212121;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #ccc;
}

h1 {
    color: #ccc;
    margin-top: 20px;
}

h3 {
    color: #ddd;
    margin-top: 10px;
}

textarea {
    font-size: 16px;
    padding: 8px;
    margin-top: 10px;
    resize: none;
    border-radius: 4px;
}

button {
    font-size: 16px;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
    background-color: rgb(153, 207, 255);
}

button:hover {
    background-color: rgb(102, 179, 255);
}

select {
    font-size: 16px;
    padding: 8px;
    margin-top: 10px;
    border-radius: 4px;
}

#result {
    margin: 16px auto;
    max-width: 720px;
    color: #e6f3ff;
    background: rgba(255,255,255,0.04);
    padding: 12px;
    border-radius: 6px;
    white-space: pre-wrap;
}

/* hidden by default until a lookup produces a result */
#result { display: none; }

.topnav {
    display: flex;
    background: #111;
    padding: 8px 12px;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.topnav .navlink {
    color: #cfd8e3;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
}

.topnav .navlink.active {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.content-img {
    width: 60%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
}

main { padding: 18px; }

.page h1 { margin-top: 10px; }

/* Responsive: mobile-friendly layout */
/* Nav toggle button (hidden on desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    color: #cfd8e3;
    border: none;
    font-size: 20px;
    padding: 6px 8px;
    cursor: pointer;
}

@media (max-width: 800px) {
    /* Make topnav a hidden left sidebar that slides in */
    .topnav {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        width: 240px;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 8px;
        gap: 6px;
        justify-content: flex-start;
        transition: left 220ms ease;
        z-index: 10000;
    }
    .topnav.open { left: 0; }

    .topnav .navlink { display: block; padding: 12px 10px; border-radius: 6px; }

    /* show toggle */
    .nav-toggle { display: block; position: fixed; left: 12px; top: 12px; z-index: 10001; width: auto; min-width: 40px; height: 40px; padding: 6px 10px; border-radius: 8px; }

    /* push main content slightly when nav open (optional) */
    .topnav.open ~ main { margin-left: 240px; }

    /* Make inputs full width for mobile; exclude the hamburger toggle button */
    select, textarea, button:not(.nav-toggle) { width: 100%; box-sizing: border-box; }
    textarea { min-height: 40px; }
    .modal { margin: 0 12px; }
    #result { margin: 8px 12px; max-width: none; }

    .content-img {
    width: 90%;
    height: auto;
    }
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 12px auto;
}
.guide-item select { width: 100%; padding: 6px; border-radius: 4px; }

.guide-section details { background: rgba(255,255,255,0.02); padding: 8px; border-radius: 4px; }
.guide-section h4 { margin-bottom: 6px; }

/* Startup modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
}
.modal {
    background: #1e1e1e;
    color: #e6eef8;
    padding: 20px 22px;
    border-radius: 10px;
    max-width: 720px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.modal h2 { margin: 0 0 8px 0; font-size: 20px; }
.modal p { margin: 6px 0 12px 0; color: #cfdff0; }
.modal .modal-actions { text-align: right; }
.btn-primary {
    background: #99cfff;
    color: #012033;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-primary:hover { background: #66b3ff; }
.modal-overlay[hidden] { display: none; }

label { color: #ddd; font-size: 16px; }

.collapsible {
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 10px 10px 10px 40px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 10px;
    position: relative;
    transition: background-color 0.3s ease;
}

.collapsible::before {
    content: '▶';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s ease;
}
.collapsible.active, .collapsible:hover {
    background-color: #555;
}

.collapsible.active::before {
    transform: translateY(-50%) rotate(90deg);
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #414141;
  border-radius: 0 0 8px 8px;
}

.collapsible.active {
    border-radius: 8px 8px 0 0;
}

/* Help page: file upload and date input styling */
#screenshotInput, #sampleImage {
    display: inline-block;
    padding: 6px;
    background: #141414;
    border: 1px dashed rgba(255,255,255,0.06);
    color: #ddd;
    border-radius: 6px;
}

#screenshotPreview img {
    max-width: 320px;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* date input */
input[type="date"] {
    padding: 8px;
    border-radius: 6px;
    background: #121212;
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.04);
}

/* submit button style for help page */
#submitDataButton, #submitDataButton:focus, #submitDataButton:hover, #submitDataButton:active,
#submitDataButton, #submitDataButton:focus, #submitDataButton:hover, #submitDataButton:active,
#submitDataButton, #submitDataButton:visited {
    background: #3fb0ff;
    color: #022433;
    border: none;
}

#submitDataButton { padding: 10px 14px; border-radius: 8px; cursor: pointer; }

#submitResult, #sampleResult { margin-top: 10px; color: #dbefff; }

.submitForm {
    border: 2px solid #ffffff;
    padding: 16px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 50px;
}

.uid-input {
    font-size: 16px;
    padding: 8px;
    margin-top: 10px;
    border-radius: 4px;
}

@media (max-width: 800px) {
    .submitForm {
        padding-inline: 20px;
    }
}

/* Info box style */
.infobox {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    max-width: 720px;
    margin: 16px auto;
    color: #dbefff;
}