/* Bug reports: the /report form, the list on the account page and the inbox in /admin. Tokens from style.css. */

textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line-strong);
    color: #fff;
    border-radius: var(--radius-sm);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(143, 123, 255, 0.18);
}
textarea::placeholder { color: var(--faint); }

.report-panel { max-width: 760px; margin: 0 auto; }
.report-done { max-width: 760px; margin: 0 auto; }
.report-ref { color: var(--accent-hi); font-family: var(--font-head); font-size: 1.15em; }
.report-panel .note-box a, .report-panel .form-hint a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }

.report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.report-optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }
.report-hint-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.report-count { flex: none; font-variant-numeric: tabular-nums; }

/* Same look as the form labels; the real <label> is the "Add screenshots" button. */
.report-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.report-drop {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s, background 0.2s;
}
.report-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.report-drop .form-hint { margin: 0; flex: 1 1 220px; }
.report-drop.full .report-add { opacity: 0.45; pointer-events: none; }
.report-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.report-file-input:focus-visible + .report-add { box-shadow: 0 0 0 3px rgba(143, 123, 255, 0.35); }
label.report-add {
    margin: 0;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.8rem;
    color: var(--text);
    cursor: pointer;
}

.report-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.report-files:empty { display: none; }
.report-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.84rem;
    min-width: 0;
}
.report-file img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: #000; }
.report-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.report-file-size { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }

/* Admin and account views */
.report-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text);
    margin: 0;
}
.report-title-cell { overflow-wrap: anywhere; }
.report-shots { display: flex; flex-wrap: wrap; gap: 12px; }
.report-shot { display: grid; gap: 4px; max-width: 240px; }
.report-shot img { max-width: 240px; max-height: 170px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line-strong); background: #000; }
.report-edit { display: grid; gap: 10px; margin-top: 14px; }
.report-edit textarea { min-height: 90px; }
.report-edit select { max-width: 260px; }

@media (max-width: 600px) {
    .report-row { grid-template-columns: 1fr; }
    .report-hint-row { flex-direction: column; gap: 4px; }
    .report-file-size { display: none; }
}
