@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #0a0f15;
    --surface: #101820;
    --surface-2: #151f29;
    --line: #263440;
    --text: #f1f7f7;
    --muted: #9cadb3;
    --accent: #2ed8c3;
    --accent-strong: #62f1df;
}

* { box-sizing: border-box; }

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text);
    background: var(--bg);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
    text-align: center;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 75% 0%, rgba(46, 216, 195, .10), transparent 32rem);
}

.instructions-container {
    padding: 20px;
    color: var(--text);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.platform-instructions {
    max-width: 800px;
    margin: auto;
}

.platform-instructions h1 {
    margin: 0 0 .5em;
    font: 700 2em 'Space Grotesk', Inter, sans-serif;
}

.platform-instructions p { margin: 0; color: var(--muted); }

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.button,
.phone-links a {
    appearance: none;
    display: inline-block;
    min-height: 60px;
    margin: 10px;
    padding: 16px 24px;
    border: 2px solid #27b9a8;
    border-radius: 15px;
    color: #04201d;
    background: var(--accent);
    font: 600 16px Inter, system-ui, sans-serif;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    user-select: none;
    touch-action: manipulation;
}

.button:disabled {
    border-color: #52616a;
    color: #a1adb2;
    background: #35414a;
    cursor: not-allowed;
    opacity: .65;
}

.button:not(:disabled):hover,
.phone-links a:hover {
    color: #04201d;
    background: var(--accent-strong);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    transform: translateY(-2px);
}

.button:active,
.phone-links a:active { transform: translateY(0); }

.button:focus-visible,
.phone-links a:focus-visible,
input:focus-visible { outline: 3px solid rgba(98, 241, 223, .4); outline-offset: 3px; }

label[for="fileInput"] { cursor: pointer; }

.search-section { margin-top: 20px; }

#textBoxSearch {
    width: 200px;
    min-height: 45px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    font: inherit;
}

.radio-buttons,
.checkbox-container { margin-top: .65rem; }

.radio-buttons label,
.checkbox-container label {
    margin-right: 15px;
    color: var(--muted);
    font-weight: 600;
}

.radio-buttons input,
.checkbox-container input {
    margin-right: 5px;
    accent-color: var(--accent);
}

#listBox1 {
    width: 80%;
    max-height: 400px;
    margin: 20px auto 0;
    padding: 0;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    list-style: none;
}

#listBox1:empty { display: none; }

#listBox1 li {
    display: grid;
    grid-template-columns: minmax(90px, 140px) 1fr;
    gap: 1rem;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

#listBox1 li:last-child { border-bottom: 0; }
#listBox1 li:hover { background: #1b2731; }
#listBox1 li.filter { color: #04201d; background: rgba(46, 216, 195, .75); }
.message-user { overflow: hidden; color: var(--accent); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.message-text { overflow-wrap: anywhere; }
.message-info { grid-column: 2; display: none; color: var(--muted); font: .75rem ui-monospace, monospace; overflow-wrap: anywhere; }
#listBox1 li.expanded .message-info { display: block; }
#listBox1 li.filter .message-user, #listBox1 li.filter .message-info { color: #073c37; }

.phone-links { margin-top: 50px; padding-bottom: 40px; }
.phone-links a { min-height: auto; margin: 10px 5px; border-color: transparent; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }

@media (max-width: 600px) {
    .button-container { flex-direction: column; }
    .button { width: 100%; margin: 5px 0; }
    #textBoxSearch { width: calc(100% - 32px); }
    #listBox1 { width: calc(100% - 32px); }
    #listBox1 li { grid-template-columns: 1fr; gap: .3rem; }
    .message-info { grid-column: 1; }
    .radio-buttons label { display: block; margin: .45rem 0; }
}
