:root {
    --bg: #000000;
    --panel: #0a0a0a;
    --cyan: #00cccc;
    --red: #ff3333;
    --green: #00ff00;
    --gray: #333;
    --font: 'Courier New', Courier, monospace;
}

body {
    font-family: var(--font); background-color: var(--bg); color: white;
    display: flex; justify-content: center; align-items: center;
    height: 100vh; margin: 0; overflow: hidden; letter-spacing: 1px;
}

.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px; z-index: -1; pointer-events: none; opacity: 0.3;
}

.container {
    background-color: var(--panel); padding: 2rem; border: 2px solid var(--gray);
    box-shadow: 0 0 20px rgba(0, 204, 204, 0.1); width: 550px;
    position: relative; max-height: 90vh; display: flex; flex-direction: column;
}

.agency-logo { color: var(--red); font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; text-align: center; }
h1 { font-size: 1.1rem; margin: 0; text-align: center; }
.subtitle { font-size: 0.7rem; color: #666; margin-bottom: 2rem; text-align: center; }

.user-status-bar { text-align: right; font-size: 0.7rem; color: #888; border-bottom: 1px solid var(--gray); padding-bottom: 5px; margin-bottom: 10px; }
.highlight { color: var(--cyan); font-weight: bold; }

.form-group { margin-bottom: 1.2rem; }
label { display: block; font-size: 0.7rem; color: var(--cyan); margin-bottom: 5px; font-weight: bold; }

input {
    width: 100%; padding: 12px; background: #000; border: 1px solid var(--gray);
    color: white; font-family: var(--font); box-sizing: border-box; outline: none;
}

button {
    width: 100%; padding: 12px; border: 1px solid var(--cyan); background: transparent;
    color: var(--cyan); cursor: pointer; font-family: var(--font); font-weight: bold; transition: 0.3s;
}
button:hover { background: var(--cyan); color: #000; }

.error { color: #000; background: var(--red); padding: 8px; margin-top: 15px; font-weight: bold; text-align: center; }

/* 検索・結果 */
.search-section { display: flex; gap: 10px; margin-bottom: 15px; }
.search-btn { width: 100px; }

.results-container {
    flex-grow: 1; overflow-y: auto; border: 1px solid var(--gray); background: #000; margin-bottom: 15px; min-height: 200px;
}

.result-item { padding: 12px; border-bottom: 1px solid #1a1a1a; cursor: pointer; }
.result-item:hover { background: #111; border-left: 4px solid var(--cyan); }
.result-item.locked { opacity: 0.3; border-left: 4px solid var(--red); cursor: not-allowed; }

.res-title { color: var(--cyan); display: block; font-weight: bold; font-size: 0.9rem; }
.res-meta { color: #555; font-size: 0.7rem; margin-top: 4px; }

/* 複数画像表示 */
.images-list-container {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px;
}

.evidence-img {
    width: calc(50% - 5px); height: 140px; border: 1px solid var(--gray);
    background: #000; object-fit: cover; filter: grayscale(1) contrast(1.2);
    transition: 0.3s;
}
.evidence-img:hover { filter: none; border-color: var(--cyan); }

/* 詳細ポップアップ */
.detail-box {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 100; padding: 2rem; box-sizing: border-box;
    text-align: left; overflow-y: auto; border: 2px solid var(--cyan);
}
.close-btn { width: auto; margin-bottom: 1rem; padding: 5px 15px; font-size: 0.7rem; }
.divider { border: 0; border-top: 1px solid var(--gray); margin: 15px 0; }
#detail-content { line-height: 1.6; color: #ccc; white-space: pre-wrap; font-size: 0.9rem; }

.success-text { color: var(--green); font-size: 1.3rem; margin: 0; text-align: center; }
.clearance-tag { background: var(--green); color: #000; padding: 2px 8px; font-size: 0.7rem; font-weight: bold; margin-bottom: 1rem; display: inline-block; }
.logout-btn { border-color: #444; color: #444; margin-top: auto; }

.hidden { display: none; }