mirror of
https://github.com/plexguide/Huntarr.git
synced 2026-02-12 13:48:32 -06:00
1166 lines
22 KiB
CSS
1166 lines
22 KiB
CSS
:root {
|
|
/* Light Theme Colors */
|
|
--bg-primary: #f8f9fa;
|
|
--bg-secondary: #ffffff;
|
|
--bg-tertiary: #f1f3f5;
|
|
--text-primary: #212529;
|
|
--text-secondary: #495057;
|
|
--text-muted: #6c757d;
|
|
--border-color: #dee2e6;
|
|
--accent-color: #3498db;
|
|
--accent-hover: #2980b9;
|
|
--success-color: #27ae60;
|
|
--warning-color: #f39c12;
|
|
--error-color: #e74c3c;
|
|
--info-color: #2980b9;
|
|
--debug-color: #7f8c8d;
|
|
|
|
/* Component Colors */
|
|
--sidebar-bg: #2c3e50;
|
|
--sidebar-text: #ecf0f1;
|
|
--sidebar-item-hover: #34495e;
|
|
--sidebar-item-active: #3498db;
|
|
--topbar-bg: var(--bg-secondary);
|
|
--card-bg: var(--bg-secondary);
|
|
--switch-bg: #cbd2d9;
|
|
--switch-active: #3498db;
|
|
|
|
/* Button Colors */
|
|
--button-primary-bg: #3498db;
|
|
--button-primary-text: #ffffff;
|
|
--button-primary-hover: #2980b9;
|
|
--button-danger-bg: #e74c3c;
|
|
--button-danger-hover: #c0392b;
|
|
--button-success-bg: #27ae60;
|
|
--button-success-hover: #219955;
|
|
|
|
/* Status Colors */
|
|
--status-connected: #27ae60;
|
|
--status-not-connected: #e74c3c;
|
|
|
|
/* Logs Colors */
|
|
--log-bg: var(--bg-secondary);
|
|
--log-border: var(--border-color);
|
|
}
|
|
|
|
.dark-theme {
|
|
--bg-primary: #1a1d24;
|
|
--bg-secondary: #252a34;
|
|
--bg-tertiary: #2d3748;
|
|
--text-primary: #f8f9fa;
|
|
--text-secondary: #e9ecef;
|
|
--text-muted: #adb5bd;
|
|
--border-color: #4a5568;
|
|
--accent-color: #3498db;
|
|
--accent-hover: #2980b9;
|
|
|
|
/* Component Colors */
|
|
--sidebar-bg: #121212;
|
|
--sidebar-text: #ecf0f1;
|
|
--sidebar-item-hover: #2d3748;
|
|
--sidebar-item-active: #3498db;
|
|
--topbar-bg: #252a34;
|
|
--card-bg: #252a34;
|
|
--switch-bg: #4a5568;
|
|
|
|
/* Logs Colors */
|
|
--log-bg: #252a34;
|
|
--log-border: #4a5568;
|
|
}
|
|
|
|
/* Base Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* Layout Structure */
|
|
.app-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 240px;
|
|
background-color: var(--sidebar-bg);
|
|
color: var(--sidebar-text);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px 0;
|
|
height: 100%;
|
|
overflow: auto;
|
|
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.logo-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 20px 20px;
|
|
margin-bottom: 10px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
min-height: 64px; /* Ensures container doesn't collapse while loading */
|
|
}
|
|
|
|
/* Updated logo size */
|
|
.logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin-right: 10px;
|
|
object-fit: contain;
|
|
transition: none !important; /* Prevent transition animations */
|
|
}
|
|
|
|
.login-logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin-bottom: 10px;
|
|
object-fit: contain;
|
|
transition: none !important; /* Prevent transition animations */
|
|
}
|
|
|
|
.sidebar h1 {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 20px;
|
|
color: var(--sidebar-text);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.nav-item i {
|
|
margin-right: 12px;
|
|
font-size: 18px;
|
|
width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background-color: var(--sidebar-item-hover);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background-color: var(--sidebar-item-active);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Theme Switch */
|
|
.theme-switcher {
|
|
padding: 20px;
|
|
margin-top: 20px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.switch-label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.light-icon, .dark-icon {
|
|
color: var(--sidebar-text);
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 100%;
|
|
height: 26px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--switch-bg);
|
|
transition: .4s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
transition: .4s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: var(--switch-active);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(calc(100% + 4px));
|
|
}
|
|
|
|
.slider.round {
|
|
border-radius: 34px;
|
|
width: 48px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Top Bar */
|
|
.top-bar {
|
|
height: 60px;
|
|
background-color: var(--topbar-bg);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-info span {
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.logout-btn {
|
|
color: var(--text-secondary);
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
/* Content Sections */
|
|
.content-section {
|
|
display: none;
|
|
height: calc(100vh - 60px);
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.content-section.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Cards */
|
|
.dashboard-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.card {
|
|
background-color: var(--card-bg);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
|
padding: 20px;
|
|
}
|
|
|
|
.card h2, .card h3 {
|
|
margin-bottom: 15px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.card h2 i, .card h3 i {
|
|
margin-right: 10px;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.welcome-card {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
/* Status Card */
|
|
.status-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.status-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.status-badge i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.status-badge.connected {
|
|
background-color: rgba(39, 174, 96, 0.2);
|
|
color: var(--status-connected);
|
|
}
|
|
|
|
.status-badge.not-connected {
|
|
background-color: rgba(231, 76, 60, 0.2);
|
|
color: var(--status-not-connected);
|
|
}
|
|
|
|
/* Stats Card */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.8rem;
|
|
font-weight: bold;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 5px;
|
|
}
|
|
|
|
/* Action Card */
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 12px 20px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
transition: background-color 0.3s, transform 0.2s;
|
|
}
|
|
|
|
.action-button i {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.action-button.start {
|
|
background-color: var(--button-success-bg);
|
|
color: white;
|
|
}
|
|
|
|
.action-button.start:hover {
|
|
background-color: var(--button-success-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.action-button.stop {
|
|
background-color: var(--button-danger-bg);
|
|
color: white;
|
|
}
|
|
|
|
.action-button.stop:hover {
|
|
background-color: var(--button-danger-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Logs Section */
|
|
.section-header {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.app-tabs, .log-controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.app-tab, .settings-tab {
|
|
padding: 8px 20px;
|
|
background-color: var(--bg-tertiary);
|
|
border: none;
|
|
border-radius: 20px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.app-tab.active, .settings-tab.active {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.app-tab:hover, .settings-tab:hover {
|
|
background-color: var(--accent-hover);
|
|
color: white;
|
|
}
|
|
|
|
.log-tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin-bottom: 15px; /* Add some space below the tabs */
|
|
}
|
|
|
|
.log-tab {
|
|
padding: 8px 20px;
|
|
background-color: var(--bg-tertiary);
|
|
border: none;
|
|
border-radius: 20px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
cursor: pointer; /* Add cursor pointer */
|
|
}
|
|
|
|
.log-tab.active {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.log-tab:hover {
|
|
background-color: var(--accent-hover);
|
|
color: white;
|
|
}
|
|
|
|
/* Adjust log controls layout if needed */
|
|
.log-controls {
|
|
display: flex;
|
|
justify-content: flex-end; /* Align controls to the right */
|
|
align-items: center;
|
|
gap: 15px;
|
|
flex-grow: 1; /* Allow controls to take remaining space */
|
|
}
|
|
|
|
/* Ensure section header handles flex layout properly */
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap; /* Allow wrapping on smaller screens */
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.app-tabs, .log-controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.app-tab, .settings-tab {
|
|
padding: 8px 20px;
|
|
background-color: var(--bg-tertiary);
|
|
border: none;
|
|
border-radius: 20px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.app-tab.active, .settings-tab.active {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.app-tab:hover, .settings-tab:hover {
|
|
background-color: var(--accent-hover);
|
|
color: white;
|
|
}
|
|
|
|
.log-options {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.auto-scroll {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.clear-button {
|
|
padding: 6px 12px;
|
|
background-color: var(--button-danger-bg);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.clear-button:hover {
|
|
background-color: var(--button-danger-hover);
|
|
}
|
|
|
|
.logs {
|
|
/* Reduce height by 15% from original calc(100vh - 160px) */
|
|
height: calc(85vh - 160px);
|
|
background-color: var(--log-bg);
|
|
border: 1px solid var(--log-border);
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
overflow-y: auto;
|
|
font-family: monospace;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
line-height: 1.5;
|
|
font-size: 14px;
|
|
margin-bottom: 20px; /* Add margin to create space between logs and footer */
|
|
}
|
|
|
|
.log-entry {
|
|
margin-bottom: 5px;
|
|
padding: 2px 5px; /* Add some horizontal padding */
|
|
display: flex; /* Use flexbox for alignment */
|
|
align-items: baseline; /* Align items based on text baseline */
|
|
gap: 8px; /* Space between elements */
|
|
}
|
|
|
|
.log-timestamp {
|
|
color: var(--text-muted); /* Muted color for timestamp */
|
|
font-size: 0.85em;
|
|
white-space: nowrap; /* Prevent timestamp from wrapping */
|
|
}
|
|
|
|
.log-app {
|
|
color: var(--accent-color); /* Use accent color for app name */
|
|
font-weight: bold;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.log-level {
|
|
font-weight: bold;
|
|
padding: 1px 5px;
|
|
border-radius: 3px;
|
|
font-size: 0.8em;
|
|
text-transform: uppercase;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.log-level-info {
|
|
background-color: var(--info-bg, #d1ecf1); /* Use CSS variables with fallbacks */
|
|
color: var(--info-color, #0c5460);
|
|
}
|
|
|
|
.log-level-warning {
|
|
background-color: var(--warning-bg, #fff3cd);
|
|
color: var(--warning-color, #856404);
|
|
}
|
|
|
|
.log-level-error {
|
|
background-color: var(--error-bg, #f8d7da);
|
|
color: var(--error-color, #721c24);
|
|
}
|
|
|
|
.log-level-debug {
|
|
background-color: var(--debug-bg, #e2e3e5);
|
|
color: var(--debug-color, #383d41);
|
|
}
|
|
|
|
/* Apply level colors directly to the entry for fallback */
|
|
.log-info .log-message {
|
|
color: var(--info-color, #0c5460);
|
|
}
|
|
|
|
.log-warning .log-message {
|
|
color: var(--warning-color, #856404);
|
|
}
|
|
|
|
.log-error .log-message {
|
|
color: var(--error-color, #721c24);
|
|
}
|
|
|
|
.log-debug .log-message {
|
|
color: var(--debug-color, #383d41);
|
|
}
|
|
|
|
.log-logger {
|
|
color: var(--text-muted); /* Muted color for logger name */
|
|
font-size: 0.85em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.log-message {
|
|
flex-grow: 1; /* Allow message to take remaining space */
|
|
word-break: break-word; /* Break long words */
|
|
}
|
|
|
|
.status-connected {
|
|
color: var(--status-connected);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-disconnected {
|
|
color: var(--status-not-connected);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Settings Section */
|
|
.settings-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.save-button, .reset-button {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.save-button {
|
|
background-color: var(--button-success-bg);
|
|
color: white;
|
|
}
|
|
|
|
.save-button:hover {
|
|
background-color: var(--button-success-hover);
|
|
}
|
|
|
|
.reset-button {
|
|
background-color: var(--button-danger-bg);
|
|
color: white;
|
|
}
|
|
|
|
.reset-button:hover {
|
|
background-color: var(--button-danger-hover);
|
|
}
|
|
|
|
.settings-form {
|
|
padding: 0;
|
|
overflow-y: auto;
|
|
height: calc(100vh - 150px);
|
|
}
|
|
|
|
.app-settings-panel {
|
|
display: none;
|
|
}
|
|
|
|
.app-settings-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
.settings-group {
|
|
background-color: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.settings-group h3 {
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.setting-item {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.setting-item label {
|
|
width: 200px;
|
|
font-weight: 500;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.setting-item input[type="text"],
|
|
.setting-item input[type="number"],
|
|
.setting-item input[type="password"] {
|
|
width: 300px;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.setting-help {
|
|
width: 100%;
|
|
margin-top: 5px;
|
|
margin-left: 215px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Responsive Adjustments */
|
|
@media (max-width: 992px) {
|
|
.sidebar {
|
|
width: 70px;
|
|
}
|
|
|
|
.sidebar h1, .nav-item span, .switch-label {
|
|
display: none;
|
|
}
|
|
|
|
.nav-item i {
|
|
margin-right: 0;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.logo-container {
|
|
justify-content: center;
|
|
}
|
|
|
|
.logo {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.settings-group {
|
|
padding: 15px;
|
|
}
|
|
|
|
.setting-item label {
|
|
width: 100%;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.setting-help {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* Make inputs responsive on narrow screens */
|
|
.setting-item input[type="text"],
|
|
.setting-item input[type="number"],
|
|
.setting-item input[type="password"] {
|
|
width: 100%;
|
|
max-width: 300px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.dashboard-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.section-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.app-tabs, .settings-actions {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
padding-bottom: 5px; /* Prevent cut-off of button shadows */
|
|
}
|
|
|
|
.app-tab, .settings-tab {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
min-width: 100px; /* Minimum button width */
|
|
}
|
|
|
|
/* Layout improvements for user cards on mobile */
|
|
.user-card {
|
|
padding: 15px;
|
|
}
|
|
|
|
.verification-container {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.verification-input {
|
|
width: 100%;
|
|
max-width: 200px;
|
|
margin-right: 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
/* Ensure very small screens can still access everything */
|
|
@media (max-width: 480px) {
|
|
.top-bar {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
height: auto;
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.user-info {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.action-buttons {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.action-button {
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
margin-top: 20px;
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.footer p {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.footer a {
|
|
color: var(--accent-color);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.footer a:hover {
|
|
text-decoration: underline;
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
/* Notification styles for async operations */
|
|
.notification {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 15px 25px;
|
|
border-radius: 8px;
|
|
color: white;
|
|
font-weight: 500;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
z-index: 1000;
|
|
transform: translateY(-20px);
|
|
opacity: 0;
|
|
transition: transform 0.3s, opacity 0.3s;
|
|
}
|
|
|
|
.notification.show {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
.notification.success {
|
|
background-color: var(--success-color);
|
|
}
|
|
|
|
.notification.error {
|
|
background-color: var(--error-color);
|
|
}
|
|
|
|
.notification.info {
|
|
background-color: var(--info-color);
|
|
}
|
|
|
|
/* Multi-instance styles */
|
|
.instances-container {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.instance-item {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
background-color: var(--card-bg);
|
|
}
|
|
|
|
.instance-header {
|
|
padding: 10px 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background-color: var(--card-header-bg);
|
|
border-radius: 8px 8px 0 0;
|
|
}
|
|
|
|
.instance-header h4 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.instance-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.instance-toggle {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.instance-content {
|
|
padding: 15px;
|
|
}
|
|
|
|
.add-instance-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.add-instance-btn {
|
|
padding: 8px 16px;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.add-instance-btn:hover {
|
|
background-color: var(--accent-color-dark);
|
|
}
|
|
|
|
.add-instance-btn:disabled {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.remove-instance-btn {
|
|
padding: 5px 10px;
|
|
background-color: var(--delete-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.remove-instance-btn:hover {
|
|
background-color: var(--delete-color-dark);
|
|
}
|
|
|
|
.test-connection-btn {
|
|
padding: 6px 12px;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.test-connection-btn:hover {
|
|
background-color: var(--accent-color-dark);
|
|
}
|
|
|
|
.connection-status {
|
|
margin-left: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.connection-status.success {
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.connection-status.error {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
.connection-status.testing {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
/* Swaparr specific styles */
|
|
.swaparr-panel {
|
|
margin-bottom: 15px;
|
|
border-radius: 8px;
|
|
background-color: var(--bg-secondary);
|
|
border-left: 4px solid var(--accent-color);
|
|
}
|
|
|
|
.swaparr-config {
|
|
padding: 12px;
|
|
}
|
|
|
|
.swaparr-config h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 10px;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.swaparr-config-content {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.swaparr-config-content span {
|
|
background-color: var(--bg-tertiary);
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.swaparr-table {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.swaparr-table table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.swaparr-table th {
|
|
background-color: var(--bg-tertiary);
|
|
padding: 10px;
|
|
text-align: left;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.swaparr-table td {
|
|
padding: 10px;
|
|
border-bottom: 1px solid var(--bg-tertiary);
|
|
}
|
|
|
|
.swaparr-status-striked {
|
|
background-color: rgba(255, 193, 7, 0.1);
|
|
}
|
|
|
|
.swaparr-status-pending {
|
|
background-color: rgba(13, 110, 253, 0.1);
|
|
}
|
|
|
|
.swaparr-status-ignored {
|
|
background-color: rgba(108, 117, 125, 0.1);
|
|
}
|
|
|
|
.swaparr-status-normal {
|
|
background-color: rgba(25, 135, 84, 0.1);
|
|
}
|
|
|
|
.swaparr-status-removed {
|
|
background-color: rgba(220, 53, 69, 0.1);
|
|
}
|
|
|
|
/* When in dark mode */
|
|
.dark-theme .swaparr-status-striked {
|
|
background-color: rgba(255, 193, 7, 0.2);
|
|
}
|
|
|
|
.dark-theme .swaparr-status-pending {
|
|
background-color: rgba(13, 110, 253, 0.2);
|
|
}
|
|
|
|
.dark-theme .swaparr-status-ignored {
|
|
background-color: rgba(108, 117, 125, 0.2);
|
|
}
|
|
|
|
.dark-theme .swaparr-status-normal {
|
|
background-color: rgba(25, 135, 84, 0.2);
|
|
}
|
|
|
|
.dark-theme .swaparr-status-removed {
|
|
background-color: rgba(220, 53, 69, 0.2);
|
|
}
|