mirror of
https://github.com/plexguide/Huntarr.git
synced 2026-01-27 05:39:11 -06:00
1819 lines
36 KiB
CSS
1819 lines
36 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 */
|
|
body, html {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: auto !important; /* Allow scrolling on body and html */
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
line-height: 1.6;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* Global scrollbar management */
|
|
.content-section {
|
|
overflow: auto !important; /* Allow scrolling on content sections */
|
|
}
|
|
|
|
/* Styling for scrollbars */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #262a36;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #3d4353;
|
|
border-radius: 4px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #4d5569;
|
|
}
|
|
|
|
/* Allow scrolling on main elements */
|
|
body, html, .main-content, .section-wrapper {
|
|
overflow: auto !important;
|
|
scrollbar-width: thin !important;
|
|
}
|
|
|
|
/* Only allow scrollbars on specific elements */
|
|
.single-scroll-container {
|
|
scrollbar-width: thin !important;
|
|
overflow-y: auto !important;
|
|
}
|
|
|
|
/* Hide scrollbars on all table elements */
|
|
table, tbody, tr, td, th {
|
|
overflow: visible !important;
|
|
}
|
|
|
|
/* Hide all WebKit scrollbars except on allowed containers */
|
|
body::-webkit-scrollbar,
|
|
html::-webkit-scrollbar,
|
|
.content-section::-webkit-scrollbar,
|
|
.main-content::-webkit-scrollbar,
|
|
.section-wrapper::-webkit-scrollbar {
|
|
width: 8px !important;
|
|
height: 8px !important;
|
|
display: block !important;
|
|
}
|
|
|
|
table::-webkit-scrollbar,
|
|
tr::-webkit-scrollbar,
|
|
tbody::-webkit-scrollbar,
|
|
th::-webkit-scrollbar,
|
|
td::-webkit-scrollbar {
|
|
width: 0 !important;
|
|
height: 0 !important;
|
|
display: none !important;
|
|
}
|
|
|
|
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: auto; /* Changed from hidden to auto to allow scrolling */
|
|
}
|
|
|
|
/* 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 - Strict section isolation */
|
|
.content-section {
|
|
display: none !important;
|
|
visibility: hidden;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
opacity: 0;
|
|
z-index: -1;
|
|
}
|
|
|
|
.content-section.active {
|
|
display: block !important;
|
|
visibility: visible;
|
|
position: relative;
|
|
height: auto;
|
|
overflow: auto !important; /* Allow scrolling when content is tall */
|
|
opacity: 1;
|
|
z-index: 1;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* 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;
|
|
position: relative;
|
|
}
|
|
|
|
.settings-group h3 {
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
/* border-bottom: 1px solid var(--border-color); */ /* Removed to prevent double border */
|
|
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);
|
|
}
|
|
|
|
/* Make number inputs shorter where appropriate */
|
|
.short-number-input {
|
|
width: 100px !important; /* Use !important to override wider default if needed */
|
|
}
|
|
|
|
/* Make number inputs for intervals shorter */
|
|
.short-number-input {
|
|
width: 80px !important; /* Use !important to override potential broader input styles */
|
|
}
|
|
|
|
.setting-help {
|
|
width: 100%;
|
|
margin-top: 5px;
|
|
margin-left: 215px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Stateful management header row with reset button */
|
|
.stateful-header-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: 10px; /* Reduced padding */
|
|
margin-bottom: 15px; /* Spacing below header */
|
|
/* border-bottom: 1px solid var(--border-color); Removed border */
|
|
width: 100%;
|
|
}
|
|
|
|
.stateful-header-row h3 {
|
|
margin: 0;
|
|
font-size: 1.1rem; /* Match other group headers */
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Reset button styling */
|
|
#reset_stateful_btn {
|
|
background-color: var(--button-danger-bg); /* Use variable */
|
|
color: white;
|
|
border: none;
|
|
padding: 5px 12px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
#reset_stateful_btn:hover {
|
|
background-color: var(--button-danger-hover); /* Use variable */
|
|
}
|
|
|
|
#reset_stateful_btn i {
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Stateful Management Section Styling */
|
|
#generalSettings .setting-info-block {
|
|
background-color: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 15px;
|
|
margin-top: 0; /* Remove top margin as header row provides spacing */
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#generalSettings .info-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
|
|
gap: 15px;
|
|
/* margin-bottom: 15px; Removed margin, handled by parent */
|
|
}
|
|
|
|
#generalSettings .date-info-block {
|
|
background-color: var(--bg-secondary);
|
|
padding: 12px 15px; /* Adjusted padding */
|
|
border-radius: 4px;
|
|
border-left: 3px solid var(--accent-color);
|
|
}
|
|
|
|
#generalSettings .date-label {
|
|
font-size: 0.85em; /* Slightly smaller */
|
|
color: var(--text-secondary);
|
|
margin-bottom: 5px; /* Increased spacing */
|
|
}
|
|
|
|
#generalSettings .date-value {
|
|
font-size: 0.95em; /* Adjusted size */
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
font-family: inherit; /* Use standard font */
|
|
background-color: transparent; /* Remove background */
|
|
padding: 0; /* Remove padding */
|
|
}
|
|
|
|
/* Style the State Reset Interval item specifically */
|
|
#generalSettings .setting-item input#stateful_management_hours {
|
|
width: 100px; /* Make input smaller */
|
|
}
|
|
|
|
#generalSettings .setting-item .reset-help {
|
|
color: var(--warning-color); /* Use warning color */
|
|
font-style: normal;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
/* Responsive Adjustments */
|
|
@media (max-width: 950px) {
|
|
.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;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.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;
|
|
}
|
|
|
|
/* Specific width for short number inputs */
|
|
.setting-item input.short-number-input {
|
|
width: 80px; /* Adjust width as needed */
|
|
max-width: 80px;
|
|
}
|
|
}
|
|
|
|
@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);
|
|
}
|
|
|
|
/* Log Dropdown Styles */
|
|
.log-dropdown-container {
|
|
position: relative;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.log-dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.log-dropdown-btn {
|
|
padding: 10px 20px;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 20px;
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 140px;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.log-dropdown-btn:hover {
|
|
background-color: var(--accent-hover);
|
|
}
|
|
|
|
.log-dropdown-content {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
background-color: var(--bg-secondary);
|
|
min-width: 180px;
|
|
z-index: 10;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
margin-top: 8px;
|
|
border: 1px solid var(--border-color);
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.log-dropdown-content.show {
|
|
display: block;
|
|
}
|
|
|
|
.log-option {
|
|
display: block;
|
|
padding: 10px 15px;
|
|
text-decoration: none;
|
|
color: var(--text-primary);
|
|
transition: all 0.2s;
|
|
text-align: left;
|
|
}
|
|
|
|
.log-option:hover {
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.log-option.active {
|
|
color: var(--accent-color);
|
|
font-weight: 600;
|
|
background-color: rgba(var(--accent-color-rgb), 0.1);
|
|
}
|
|
|
|
/* Settings Dropdown Styles - Matching log dropdown styles */
|
|
.settings-dropdown-container {
|
|
position: relative;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.settings-dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.settings-dropdown-btn {
|
|
padding: 10px 20px;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 20px;
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 140px;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.settings-dropdown-btn:hover {
|
|
background-color: var(--accent-hover);
|
|
}
|
|
|
|
.settings-dropdown-content {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
background-color: var(--bg-secondary);
|
|
min-width: 180px;
|
|
z-index: 10;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
margin-top: 8px;
|
|
border: 1px solid var(--border-color);
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-dropdown-content.show {
|
|
display: block;
|
|
}
|
|
|
|
.settings-option {
|
|
display: block;
|
|
padding: 10px 15px;
|
|
text-decoration: none;
|
|
color: var(--text-primary);
|
|
transition: all 0.2s;
|
|
text-align: left;
|
|
}
|
|
|
|
.settings-option:hover {
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.settings-option.active {
|
|
color: var(--accent-color);
|
|
font-weight: 600;
|
|
background-color: rgba(var(--accent-color-rgb), 0.1);
|
|
}
|
|
|
|
/* History Dropdown Styles - Matching log dropdown styles */
|
|
.history-dropdown-container {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.history-dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.history-dropdown-btn {
|
|
background-color: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 8px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.history-dropdown-btn:hover {
|
|
background-color: var(--bg-primary);
|
|
}
|
|
|
|
.history-dropdown-content {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: var(--bg-secondary);
|
|
min-width: 160px;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
z-index: 1001;
|
|
border-radius: 4px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.history-dropdown-content a {
|
|
color: var(--text-primary);
|
|
padding: 12px 16px;
|
|
text-decoration: none;
|
|
display: block;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.history-dropdown-content a:hover {
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.history-dropdown-content a.active {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.history-dropdown-content.show {
|
|
display: block;
|
|
}
|
|
|
|
/* Placeholder message styling */
|
|
.placeholder-message {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: calc(100% - 60px); /* Adjust based on header height */
|
|
}
|
|
|
|
.message-container {
|
|
text-align: center;
|
|
padding: 30px;
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
max-width: 500px;
|
|
}
|
|
|
|
.message-container i {
|
|
color: var(--accent-color);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.message-container h3 {
|
|
margin-bottom: 10px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.message-container p {
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* History Table Styles */
|
|
.history-container {
|
|
position: relative;
|
|
height: calc(100% - 120px); /* Adjust based on header and pagination height */
|
|
overflow: auto;
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.history-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.history-table thead {
|
|
position: sticky;
|
|
top: 0;
|
|
background-color: var(--bg-tertiary);
|
|
z-index: 1;
|
|
}
|
|
|
|
.history-table th {
|
|
padding: 12px 15px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.history-table td {
|
|
padding: 10px 15px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.history-table tbody tr:nth-child(even) {
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.history-table tbody tr:hover {
|
|
background-color: rgba(var(--accent-color-rgb), 0.1);
|
|
}
|
|
|
|
/* Operation Type Styles in History Table */
|
|
.operation-missing {
|
|
background-color: #005a9e;
|
|
color: white;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
display: inline-block;
|
|
}
|
|
|
|
.operation-upgrade {
|
|
background-color: #1e40af; /* Changed from #2a9d8f to a more vibrant blue */
|
|
color: white;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* History Controls */
|
|
.history-controls {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.history-search {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: auto; /* Push to left side */
|
|
}
|
|
|
|
.history-search input {
|
|
padding: 8px 15px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px 0 0 4px;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
width: 200px;
|
|
}
|
|
|
|
.history-search button {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 0 4px 4px 0;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.history-search button:hover {
|
|
background-color: var(--accent-hover);
|
|
}
|
|
|
|
.history-page-size {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.history-page-size select {
|
|
padding: 7px 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Pagination Controls */
|
|
.pagination-controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 15px 0;
|
|
gap: 15px;
|
|
}
|
|
|
|
.pagination-button {
|
|
padding: 8px 15px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.pagination-button:hover {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.pagination-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
#historyPageInfo {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Empty state and loading */
|
|
.empty-state-message, .loading-indicator {
|
|
display: none;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 200px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.empty-state-message i, .loading-indicator i {
|
|
margin-bottom: 15px;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 992px) {
|
|
.history-table {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.history-table th, .history-table td {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.history-search input {
|
|
width: 150px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.history-controls {
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.history-search {
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.history-search input {
|
|
width: calc(100% - 40px);
|
|
}
|
|
}
|
|
|
|
.styled-select {
|
|
background: var(--accent-color);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 20px;
|
|
padding: 10px 20px;
|
|
font-weight: 500;
|
|
font-size: 1rem;
|
|
min-width: 140px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
cursor: pointer;
|
|
outline: none;
|
|
transition: background 0.3s;
|
|
margin-right: 10px;
|
|
}
|
|
.styled-select:focus, .styled-select:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
.styled-select option {
|
|
color: #222;
|
|
background: #fff;
|
|
}
|