mirror of
https://github.com/plexguide/Huntarr.io.git
synced 2026-04-20 11:56:52 -04:00
697 lines
15 KiB
CSS
697 lines
15 KiB
CSS
/* ==========================================================================
|
|
Requestarr User Management & Services
|
|
========================================================================== */
|
|
|
|
/* ── User List ────────────────────────────────────────────── */
|
|
|
|
.requsers-page {
|
|
padding: 0;
|
|
}
|
|
|
|
.requsers-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.requsers-toolbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.requsers-toolbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.requsers-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.requsers-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast), opacity var(--transition-fast);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.requsers-btn-primary {
|
|
background: var(--button-primary-bg);
|
|
color: var(--button-primary-text);
|
|
}
|
|
.requsers-btn-primary:hover {
|
|
background: var(--button-primary-hover);
|
|
}
|
|
|
|
.requsers-btn-plex {
|
|
background: #e5a00d;
|
|
color: #000;
|
|
}
|
|
.requsers-btn-plex:hover {
|
|
background: #f0b429;
|
|
}
|
|
|
|
.requsers-btn-danger {
|
|
background: var(--button-danger-bg);
|
|
color: #fff;
|
|
}
|
|
.requsers-btn-danger:hover {
|
|
background: var(--button-danger-hover);
|
|
}
|
|
|
|
.requsers-btn-sm {
|
|
padding: 5px 10px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* ── User Table ───────────────────────────────────────────── */
|
|
|
|
.requsers-table-wrap {
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
backdrop-filter: blur(var(--glass-blur));
|
|
}
|
|
|
|
.requsers-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.requsers-table thead {
|
|
background: rgba(99, 102, 241, 0.08);
|
|
}
|
|
|
|
.requsers-table th {
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.requsers-table td {
|
|
padding: 12px 16px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
border-bottom: 1px solid rgba(71, 85, 105, 0.15);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.requsers-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.requsers-table tbody tr:hover {
|
|
background: rgba(99, 102, 241, 0.04);
|
|
}
|
|
|
|
.requsers-user-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.requsers-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--bg-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.requsers-avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.requsers-user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
|
|
.requsers-user-name {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.requsers-user-email {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ── Role Badges ──────────────────────────────────────────── */
|
|
|
|
.requsers-role-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.requsers-role-owner {
|
|
background: rgba(234, 179, 8, 0.15);
|
|
color: #eab308;
|
|
}
|
|
|
|
.requsers-role-user {
|
|
background: rgba(99, 102, 241, 0.15);
|
|
color: #818cf8;
|
|
}
|
|
|
|
/* ── Actions ──────────────────────────────────────────────── */
|
|
|
|
.requsers-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* ── Pagination ───────────────────────────────────────────── */
|
|
|
|
.requsers-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* ── Modal ─────────────────────────────────────────────────── */
|
|
|
|
.requsers-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 9999;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.requsers-modal {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-xl);
|
|
width: 100%;
|
|
max-width: 520px;
|
|
max-height: 85vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.requsers-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 24px 0;
|
|
}
|
|
|
|
.requsers-modal-title {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.requsers-modal-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 1.2rem;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
}
|
|
.requsers-modal-close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.requsers-modal-body {
|
|
padding: 20px 24px;
|
|
}
|
|
|
|
.requsers-modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 0 24px 20px;
|
|
}
|
|
|
|
/* ── Form Fields ──────────────────────────────────────────── */
|
|
|
|
.requsers-field {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.requsers-field label {
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.requsers-field input,
|
|
.requsers-field select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: var(--input-radius);
|
|
color: var(--input-text);
|
|
font-size: 0.9rem;
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.requsers-field input:focus,
|
|
.requsers-field select:focus {
|
|
outline: none;
|
|
border-color: var(--input-focus-border);
|
|
box-shadow: var(--input-focus-glow);
|
|
}
|
|
|
|
.requsers-field-hint {
|
|
font-size: 0.78rem;
|
|
color: var(--text-dim);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ── Permissions Grid ─────────────────────────────────────── */
|
|
|
|
.requsers-perms-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.requsers-perm-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.83rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.requsers-perm-item input[type="checkbox"] {
|
|
width: auto;
|
|
accent-color: var(--accent-color);
|
|
}
|
|
|
|
/* ── Services Page ────────────────────────────────────────── */
|
|
|
|
/* ── Services Page (uses shared instance-card system from instances-card.css) ── */
|
|
/* Matches Media Hunt Instances bordered-section design exactly */
|
|
|
|
.reqservices-group {
|
|
background: rgba(15, 23, 42, 0.4);
|
|
border: 1px solid rgba(148, 163, 184, 0.08);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
margin: 12px 0 20px 0;
|
|
}
|
|
|
|
.reqservices-group .profiles-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.reqservices-group .profiles-header h3 {
|
|
margin: 0;
|
|
padding: 0 0 12px 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #f1f5f9;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
|
|
}
|
|
|
|
.reqservices-group .profiles-help {
|
|
color: rgba(255, 255, 255, 0.55);
|
|
font-size: 13px;
|
|
margin: 12px 0 0;
|
|
}
|
|
|
|
.reqservices-group .instances-card-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 14px;
|
|
margin-top: 16px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.reqservices-group .instances-card-grid .add-instance-card {
|
|
min-height: 100px;
|
|
}
|
|
|
|
.reqservices-group .instances-card-grid .add-instance-card .add-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.reqservices-group .instances-card-grid .add-instance-card .add-text {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* 4K inline badge (next to instance name in card header) */
|
|
.reqservices-badge-4k-inline {
|
|
font-size: 0.65rem;
|
|
background: rgba(234, 179, 8, 0.25);
|
|
color: #eab308;
|
|
padding: 2px 7px;
|
|
border-radius: 12px;
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
margin-left: 6px;
|
|
}
|
|
|
|
/* ── Plex Import Modal ────────────────────────────────────── */
|
|
|
|
.requsers-plex-list {
|
|
max-height: 350px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.requsers-plex-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid rgba(71, 85, 105, 0.15);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.requsers-plex-item:hover {
|
|
background: rgba(99, 102, 241, 0.04);
|
|
}
|
|
|
|
.requsers-plex-item input[type="checkbox"] {
|
|
accent-color: var(--accent-color);
|
|
}
|
|
|
|
.requsers-plex-thumb {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* ── Responsive ───────────────────────────────────────────── */
|
|
|
|
@media (max-width: 768px) {
|
|
.requsers-toolbar {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
.requsers-perms-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.requsers-table th:nth-child(2),
|
|
.requsers-table td:nth-child(2) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ── Requests Management ─────────────────────────────────── */
|
|
|
|
.reqrequests-filters {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.reqrequests-filters .control-select {
|
|
min-width: 140px;
|
|
}
|
|
|
|
.reqrequests-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.reqrequests-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.reqrequests-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
transition: border-color 0.15s ease;
|
|
}
|
|
|
|
.reqrequests-card:hover {
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.reqrequests-poster {
|
|
width: 46px;
|
|
height: 69px;
|
|
border-radius: 4px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.reqrequests-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.reqrequests-title {
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.reqrequests-year {
|
|
font-weight: 400;
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.reqrequests-meta {
|
|
display: flex;
|
|
gap: 14px;
|
|
margin-top: 4px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.reqrequests-meta i {
|
|
margin-right: 4px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.reqrequests-notes {
|
|
margin-top: 4px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-dim);
|
|
font-style: italic;
|
|
}
|
|
|
|
.reqrequests-notes i {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.reqrequests-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.reqrequests-status {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.reqrequests-status-pending {
|
|
background: rgba(234, 179, 8, 0.15);
|
|
color: #eab308;
|
|
}
|
|
|
|
.reqrequests-status-approved {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: #22c55e;
|
|
}
|
|
|
|
.reqrequests-status-denied {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.reqrequests-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Mobile responsive */
|
|
@media (max-width: 640px) {
|
|
.reqrequests-card {
|
|
flex-wrap: wrap;
|
|
}
|
|
.reqrequests-right {
|
|
flex-direction: row;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.reqrequests-filters {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
/* ── Pending Request Badge (sidebar) ─────────────────────── */
|
|
|
|
.nav-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
border-radius: 9px;
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
background: #ef4444;
|
|
color: #fff;
|
|
margin-left: auto;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* ── Request Status Buttons (detail pages) ───────────────── */
|
|
|
|
.mh-btn-warning {
|
|
background: rgba(234, 179, 8, 0.2) !important;
|
|
color: #eab308 !important;
|
|
border: 1px solid rgba(234, 179, 8, 0.4) !important;
|
|
cursor: default !important;
|
|
}
|
|
|
|
.mh-btn-denied {
|
|
background: rgba(239, 68, 68, 0.15) !important;
|
|
color: #f87171 !important;
|
|
border: 1px solid rgba(239, 68, 68, 0.3) !important;
|
|
cursor: pointer !important;
|
|
}
|
|
|
|
.mh-btn-denied:hover {
|
|
background: rgba(239, 68, 68, 0.25) !important;
|
|
}
|
|
|
|
.requsers-btn-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
}
|
|
.requsers-btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ── Non-owner flat sidebar (no accordion, sub-items as top-level) ── */
|
|
|
|
.nav-group-body.non-owner-flat {
|
|
display: block !important;
|
|
}
|
|
|
|
.nav-group-body.non-owner-flat .nav-item-sub {
|
|
padding-left: 16px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ── Hidden Media Scope Badges ─────────────────────────────── */
|
|
|
|
.hidden-scope-badge {
|
|
position: absolute;
|
|
top: 6px;
|
|
left: 6px;
|
|
padding: 2px 7px;
|
|
border-radius: 8px;
|
|
font-size: 0.6rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
z-index: 2;
|
|
}
|
|
|
|
.hidden-scope-global {
|
|
background: rgba(234, 179, 8, 0.85);
|
|
color: #000;
|
|
}
|
|
|
|
.hidden-scope-personal {
|
|
background: rgba(99, 102, 241, 0.85);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ── Non-owner mode: hide everything outside Requests via CSS !important ── */
|
|
/* This is the nuclear option — no JS race condition can override these rules */
|
|
|
|
body.non-owner-mode #homeNav,
|
|
body.non-owner-mode #nav-group-core-label,
|
|
body.non-owner-mode #nav-group-system,
|
|
body.non-owner-mode #nav-group-apps-label,
|
|
body.non-owner-mode #nav-group-media-hunt,
|
|
body.non-owner-mode #nzb-hunt-sidebar-group,
|
|
body.non-owner-mode #nav-group-apps,
|
|
body.non-owner-mode .requestarr-header-bar,
|
|
body.non-owner-mode .sidebar-footer {
|
|
display: none !important;
|
|
}
|