566 lines
11 KiB
CSS
566 lines
11 KiB
CSS
/* FG Scan Module - Custom Styling with Theme Integration */
|
|
|
|
/* Page Container */
|
|
.scan-container {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: var(--bg-secondary);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
justify-content: center;
|
|
min-height: calc(100vh - 100px);
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
/* Card Base Styling */
|
|
.scan-form-card,
|
|
.scan-table-card {
|
|
background-color: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px var(--card-shadow);
|
|
padding: 20px;
|
|
transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.scan-form-card h3,
|
|
.scan-table-card h3 {
|
|
margin: 0 0 15px 0;
|
|
font-size: 1.2em;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
border-bottom: 2px solid var(--primary-color);
|
|
padding-bottom: 10px;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
|
|
/* Scan Form Card */
|
|
.scan-form-card {
|
|
width: 500px;
|
|
max-width: 95%;
|
|
flex: 0 0 auto;
|
|
max-height: 750px;
|
|
overflow-y: auto;
|
|
padding: 15px;
|
|
}
|
|
|
|
.scan-form-card form {
|
|
display: grid;
|
|
grid-template-columns: 140px 1fr;
|
|
gap: 10px 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.scan-form-card label {
|
|
font-weight: 500;
|
|
font-size: 15px;
|
|
text-align: right;
|
|
padding-right: 8px;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.scan-form-card input[type="text"],
|
|
.scan-form-card input[type="password"] {
|
|
padding: 8px 12px;
|
|
font-size: 15px;
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 3px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background-color: var(--input-bg);
|
|
color: var(--text-primary);
|
|
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
.scan-form-card input[type="text"]:focus,
|
|
.scan-form-card input[type="password"]:focus {
|
|
outline: none;
|
|
border-color: var(--input-focus-border);
|
|
box-shadow: 0 0 5px var(--input-focus-shadow);
|
|
}
|
|
|
|
.form-buttons {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.scan-form-card button[type="submit"],
|
|
.scan-form-card button[type="button"] {
|
|
padding: 10px 24px;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-submit {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-submit:hover {
|
|
background-color: var(--secondary-color);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.btn-clear {
|
|
background-color: var(--warning-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-clear:hover {
|
|
background-color: #d97706;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--info-color);
|
|
color: white;
|
|
padding: 10px 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #2563eb;
|
|
}
|
|
|
|
/* Form Options */
|
|
.form-options {
|
|
grid-column: 1 / -1;
|
|
margin-top: 15px;
|
|
padding-top: 15px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Quick Box Section */
|
|
.quick-box-section {
|
|
grid-column: 1 / -1;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.scan-form-card input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Scan Table Card */
|
|
.scan-table-card {
|
|
flex: 1 1 auto;
|
|
min-width: 600px;
|
|
max-width: 100%;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.table-wrapper {
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
overflow-x: auto;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 3px;
|
|
position: relative;
|
|
}
|
|
|
|
.scan-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.scan-table th,
|
|
.scan-table td {
|
|
border: 1px solid var(--border-color);
|
|
padding: 8px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.scan-table th {
|
|
background-color: var(--bg-tertiary);
|
|
font-weight: bold;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
border-bottom: 2px solid var(--border-color);
|
|
}
|
|
|
|
.scan-table tbody tr:nth-child(even) {
|
|
background-color: var(--table-hover-bg);
|
|
}
|
|
|
|
.scan-table tbody tr:hover {
|
|
background-color: var(--bg-secondary);
|
|
}
|
|
|
|
.scan-table tbody td {
|
|
padding: 8px;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 1200px) {
|
|
.scan-container {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.scan-form-card {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.scan-table-card {
|
|
flex: 0 0 auto;
|
|
min-width: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.scan-container {
|
|
padding: 10px;
|
|
gap: 15px;
|
|
}
|
|
|
|
.card {
|
|
padding: 15px;
|
|
}
|
|
|
|
.scan-form-card {
|
|
width: 100%;
|
|
}
|
|
|
|
.scan-form-card form {
|
|
grid-template-columns: 100%;
|
|
gap: 8px;
|
|
}
|
|
|
|
.scan-form-card label {
|
|
text-align: left;
|
|
padding-right: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.scan-table {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.scan-table th,
|
|
.scan-table td {
|
|
padding: 5px;
|
|
}
|
|
}
|
|
|
|
/* Dark Mode Support using data-theme attribute */
|
|
[data-theme="dark"] .scan-container {
|
|
background-color: var(--bg-secondary);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-form-card,
|
|
[data-theme="dark"] .scan-table-card {
|
|
background-color: var(--bg-primary);
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-form-card h3,
|
|
[data-theme="dark"] .scan-table-card h3 {
|
|
color: var(--text-primary);
|
|
border-bottom-color: var(--primary-color);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-form-card label {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-form-card input[type="text"],
|
|
[data-theme="dark"] .scan-form-card input[type="password"] {
|
|
background-color: var(--input-bg);
|
|
border-color: var(--input-border);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-form-card input[type="text"]:focus,
|
|
[data-theme="dark"] .scan-form-card input[type="password"]:focus {
|
|
border-color: var(--input-focus-border);
|
|
box-shadow: 0 0 5px var(--input-focus-shadow);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-table {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-table th {
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-table td {
|
|
border-color: var(--border-color);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-table tbody tr:nth-child(even) {
|
|
background-color: var(--table-hover-bg);
|
|
}
|
|
|
|
[data-theme="dark"] .scan-table tbody tr:hover {
|
|
background-color: var(--bg-secondary);
|
|
}
|
|
|
|
[data-theme="dark"] .table-wrapper {
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
[data-theme="dark"] .checkbox-label {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Error Messages */
|
|
.error-message {
|
|
color: var(--danger-color);
|
|
font-size: 0.9em;
|
|
margin-top: 3px;
|
|
display: none;
|
|
grid-column: 2 / -1;
|
|
padding: 5px 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.error-message.show {
|
|
display: block;
|
|
}
|
|
|
|
/* Floating Help Button */
|
|
.floating-help-btn {
|
|
position: fixed;
|
|
top: 80px;
|
|
right: 20px;
|
|
z-index: 1000;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #17a2b8, #138496);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.floating-help-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.floating-help-btn a {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-size: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
body.dark-mode .floating-help-btn {
|
|
background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
|
|
}
|
|
|
|
/* Notifications */
|
|
.notification {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 12px 20px;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-weight: bold;
|
|
z-index: 10001;
|
|
box-shadow: 0 4px 12px var(--card-shadow);
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(400px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.notification-success {
|
|
background-color: var(--success-color);
|
|
}
|
|
|
|
.notification-error {
|
|
background-color: var(--danger-color);
|
|
}
|
|
|
|
.notification-warning {
|
|
background-color: var(--warning-color);
|
|
color: #333;
|
|
}
|
|
|
|
.notification-info {
|
|
background-color: var(--info-color);
|
|
}
|
|
|
|
/* Box Modal Styling */
|
|
.box-modal {
|
|
position: fixed;
|
|
z-index: 10000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.box-modal-content {
|
|
background-color: var(--bg-primary);
|
|
padding: 0;
|
|
border: 1px solid var(--border-color);
|
|
width: 500px;
|
|
max-width: 90%;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px var(--card-shadow-hover);
|
|
animation: modalSlideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes modalSlideIn {
|
|
from {
|
|
transform: translateY(-50px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 15px 20px;
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
|
color: white;
|
|
border-radius: 8px 8px 0 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
color: white;
|
|
border: none;
|
|
padding: 0;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.modal-close {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
color: white;
|
|
transition: color 0.2s;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: #ccc;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
margin-bottom: 15px;
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 4px;
|
|
background-color: var(--input-bg);
|
|
color: var(--text-primary);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.modal-body input:focus {
|
|
outline: none;
|
|
border-color: var(--input-focus-border);
|
|
box-shadow: 0 0 5px var(--input-focus-shadow);
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 15px 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.modal-footer button {
|
|
padding: 8px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
/* Additional form styling for consistency */
|
|
.form-centered {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
input[type="text"]:invalid {
|
|
border-color: #dc3545;
|
|
}
|
|
|
|
input[type="text"]:valid {
|
|
border-color: #28a745;
|
|
}
|