/* Video Reports - Frontend Dark Theme */

/* Report Button */
.vr-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 0 12px;
    height: 32px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    margin-left: 8px;
    transition: all .18s;
    vertical-align: middle;
}
.vr-open-btn:hover { color: #fff; border-color: #64748b; background: rgba(255,255,255,.06); }

/* Overlay */
.vr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.vr-overlay.open { display: flex; }

/* Modal — exactly like screenshot */
.vr-modal {
    background: #1e2535;
    border: 1px solid #2d3748;
    border-radius: 10px;
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: vrPop .2s ease;
    color: #e2e8f0;
}
@keyframes vrPop { from { transform: translateY(14px); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* Header */
.vr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #2d3748;
}
.vr-modal-header h2 { margin:0; font-size:18px; font-weight:700; color:#f1f5f9; }
.vr-close {
    background: none; border: none;
    color: #64748b; font-size: 18px;
    cursor: pointer; padding: 2px 6px;
    border-radius: 4px; transition: all .15s;
    font-family: inherit;
}
.vr-close:hover { background: #2d3748; color: #fff; }

/* Form body */
#vr-form { padding: 20px 24px 24px; }

.vr-field { margin-bottom: 18px; }
.vr-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}
.vr-opt { font-weight: 400; color: #64748b; font-size: 11px; }

/* Select dropdown */
.vr-select-wrap { position: relative; }
.vr-select {
    width: 100%;
    background: #0f1623;
    border: 1.5px solid #2563eb;
    border-radius: 7px;
    color: #e2e8f0;
    font-size: 14px;
    padding: 10px 36px 10px 12px;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}
.vr-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.2); }
.vr-select option { background: #1a2030; }
.vr-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 14px;
}

/* Textarea */
.vr-textarea {
    width: 100%;
    background: #0f1623;
    border: 1.5px solid #2d3748;
    border-radius: 7px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 10px 12px;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
}
.vr-textarea:focus { border-color: #3b82f6; }
.vr-textarea::placeholder { color: #475569; }

/* Upload area */
.vr-upload-area {
    display: block;
    border: 2px dashed #2d3748;
    border-radius: 7px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all .15s;
}
.vr-upload-area:hover { border-color: #3b82f6; background: rgba(59,130,246,.04); }
.vr-file-input { position: absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.vr-upload-inner { display:flex; align-items:center; justify-content:center; gap:8px; }
.vr-upload-inner svg { color:#475569; flex-shrink:0; }
.vr-upload-txt { font-size:13px; color:#64748b; }
.vr-img-preview { display:none; max-width:100%; max-height:100px; border-radius:5px; margin-top:10px; object-fit:cover; }

/* IP note */
.vr-ip-note { font-size: 11px; color: #475569; margin: 4px 0 14px; }

/* Notice */
.vr-notice { border-radius:6px; padding:9px 13px; font-size:13px; display:none; margin-bottom:12px; }
.vr-notice.ok  { background:rgba(34,197,94,.1); border:1px solid #22c55e; color:#4ade80; }
.vr-notice.err { background:rgba(239,68,68,.1);  border:1px solid #ef4444; color:#f87171; }

/* Footer buttons */
.vr-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}
.vr-btn-cancel {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 9px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.vr-btn-cancel:hover { background:#1e293b; color:#fff; }
.vr-btn-submit {
    background: #2563eb;
    border: none;
    color: #fff;
    padding: 9px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex; align-items: center; gap: 8px;
    transition: all .15s;
    box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.vr-btn-submit:hover { background:#1d4ed8; }
.vr-btn-submit:disabled { opacity:.55; cursor:not-allowed; }

/* Spinner */
.vr-spinner {
    display: none;
    width:14px; height:14px;
    border: 2px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vrSpin .7s linear infinite;
}
@keyframes vrSpin { to { transform:rotate(360deg); } }

@media (max-width:520px) {
    .vr-modal-header, #vr-form { padding-left:16px; padding-right:16px; }
}
