DuckLake stores full names like 'MUSEUM' but map expects single-letter codes like 'M' for color styling. Also includes CSS fixes for Database page.
3664 lines
60 KiB
CSS
3664 lines
60 KiB
CSS
/* Database Page Styles - Oxigraph Triplestore Management */
|
|
|
|
.database-page {
|
|
max-width: none;
|
|
margin: 0;
|
|
padding: 1rem 1.5rem;
|
|
min-height: calc(100vh - 60px);
|
|
animation: fadeIn 0.5s ease-in;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.database-header {
|
|
text-align: center;
|
|
margin-bottom: 1.25rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
}
|
|
|
|
.database-header h1 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.5rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.database-header p {
|
|
font-size: 1.1rem;
|
|
color: #7f8c8d;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Status Card */
|
|
.status-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1rem 1.25rem;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e0e0e0;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.status-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.status-indicator.connected .status-dot {
|
|
background: #27ae60;
|
|
}
|
|
|
|
.status-indicator.disconnected .status-dot {
|
|
background: #e74c3c;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.status-details {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.status-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.status-item .label {
|
|
color: #7f8c8d;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status-item code {
|
|
background: #f4f4f4;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.refresh-button {
|
|
padding: 0.5rem 1rem;
|
|
background: #667eea;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.refresh-button:hover:not(:disabled) {
|
|
background: #5a6fd6;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.refresh-button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.error-banner {
|
|
margin-top: 1rem;
|
|
padding: 1rem;
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
border-radius: 8px;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.error-banner strong {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.error-help {
|
|
margin-top: 0.5rem;
|
|
font-size: 0.9rem;
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.error-help code {
|
|
display: block;
|
|
margin-top: 0.5rem;
|
|
background: #374151;
|
|
color: #e5e7eb;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Stats Overview */
|
|
.stats-overview {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e0e0e0;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #667eea;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #7f8c8d;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Tabs */
|
|
.database-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
padding-bottom: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tab-button {
|
|
padding: 0.75rem 1.25rem;
|
|
background: transparent;
|
|
border: none;
|
|
color: #7f8c8d;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-size: 0.95rem;
|
|
transition: all 0.2s;
|
|
border-bottom: 3px solid transparent;
|
|
margin-bottom: -2px;
|
|
}
|
|
|
|
.tab-button:hover {
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.tab-button.active {
|
|
color: #667eea;
|
|
border-bottom-color: #667eea;
|
|
}
|
|
|
|
/* Tab Content */
|
|
.tab-content {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1rem;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e0e0e0;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Overview Tab */
|
|
.overview-content {
|
|
display: grid;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.sparql-section h3,
|
|
.actions-section h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.sparql-input {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.9rem;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
resize: vertical;
|
|
margin-bottom: 1rem;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.sparql-input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.query-result {
|
|
background: #1e1e1e;
|
|
color: #d4d4d4;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
overflow-x: auto;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.85rem;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Buttons */
|
|
.primary-button,
|
|
.secondary-button,
|
|
.danger-button,
|
|
.small-button {
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.primary-button {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
.primary-button:hover:not(:disabled) {
|
|
background: #5a6fd6;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.secondary-button {
|
|
background: #e0e0e0;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.secondary-button:hover:not(:disabled) {
|
|
background: #d0d0d0;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.danger-button {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.danger-button:hover {
|
|
background: #c0392b;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
|
|
}
|
|
|
|
.small-button {
|
|
padding: 0.4rem 0.8rem;
|
|
font-size: 0.85rem;
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
.small-button:hover {
|
|
background: #5a6fd6;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Data Tables */
|
|
.list-content h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.empty-message {
|
|
color: #7f8c8d;
|
|
font-style: italic;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 0.75rem 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.data-table th {
|
|
background: #f8f9fa;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.data-table tr:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.data-table code {
|
|
background: #f4f4f4;
|
|
padding: 0.2rem 0.4rem;
|
|
border-radius: 4px;
|
|
font-size: 0.85rem;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.namespace-uri {
|
|
font-size: 0.8rem;
|
|
max-width: 400px;
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Upload Tab */
|
|
.upload-content h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.5rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.upload-content > p {
|
|
color: #7f8c8d;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.upload-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-group label {
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.form-group small {
|
|
color: #7f8c8d;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.format-select,
|
|
.graph-input {
|
|
padding: 0.75rem;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.format-select:focus,
|
|
.graph-input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.file-input {
|
|
padding: 1rem;
|
|
border: 2px dashed #e0e0e0;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.file-input:hover {
|
|
border-color: #667eea;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.upload-info {
|
|
background: #f8f9fa;
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 8px;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.upload-info h4 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.75rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.upload-info ul {
|
|
margin: 0;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.upload-info li {
|
|
margin-bottom: 0.5rem;
|
|
color: #5a6268;
|
|
}
|
|
|
|
/* Info Card */
|
|
.info-card {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border-radius: 12px;
|
|
padding: 2rem;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.info-card h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.info-card p {
|
|
line-height: 1.6;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.info-card h3 {
|
|
margin-top: 1.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.info-card ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.info-card li {
|
|
padding: 0.5rem 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.info-card code {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Loading and Error States */
|
|
.loading-state,
|
|
.error-state,
|
|
.warning-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 400px;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 4px solid #e0e0e0;
|
|
border-top-color: #667eea;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Dark Mode Support */
|
|
@media (prefers-color-scheme: dark) {
|
|
.database-page {
|
|
background: #1a1a2e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.database-header h1 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.database-header p {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.status-card,
|
|
.stat-card,
|
|
.tab-content {
|
|
background: #16213e;
|
|
border-color: #0f3460;
|
|
}
|
|
|
|
.status-item code,
|
|
.data-table code {
|
|
background: #0f3460;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.database-tabs {
|
|
border-bottom-color: #0f3460;
|
|
}
|
|
|
|
.tab-button {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.tab-button:hover {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.tab-button.active {
|
|
color: #667eea;
|
|
}
|
|
|
|
.sparql-input {
|
|
background: #0f3460;
|
|
border-color: #1a1a4e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.data-table th {
|
|
background: #0f3460;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
border-bottom-color: #0f3460;
|
|
}
|
|
|
|
.data-table tr:hover {
|
|
background: #1a1a4e;
|
|
}
|
|
|
|
.form-group label {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.format-select,
|
|
.graph-input {
|
|
background: #0f3460;
|
|
border-color: #1a1a4e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.file-input {
|
|
border-color: #0f3460;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.file-input:hover {
|
|
background: #1a1a4e;
|
|
}
|
|
|
|
.upload-info {
|
|
background: #0f3460;
|
|
border-color: #1a1a4e;
|
|
}
|
|
|
|
.upload-info h4 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.upload-info li {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.error-banner {
|
|
background: #3d1a1a;
|
|
border-color: #5c2020;
|
|
}
|
|
|
|
.secondary-button {
|
|
background: #0f3460;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.secondary-button:hover:not(:disabled) {
|
|
background: #1a1a4e;
|
|
}
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.database-page {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.database-header h1 {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.stats-overview {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.database-tabs {
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.tab-button {
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.status-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.status-details {
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.data-table {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.action-buttons {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Mobile Light Mode Override
|
|
Force light mode on mobile regardless of system color scheme preference
|
|
========================================================================== */
|
|
@media (max-width: 900px) {
|
|
.database-page {
|
|
background: #f8f9fa !important;
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.database-header h1 {
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.database-header p {
|
|
color: #5c5c5c !important;
|
|
}
|
|
|
|
.status-card,
|
|
.stat-card,
|
|
.tab-content {
|
|
background: #ffffff !important;
|
|
border-color: #e0e0e0 !important;
|
|
}
|
|
|
|
.status-item code,
|
|
.data-table code {
|
|
background: #f0f0f0 !important;
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.database-tabs {
|
|
border-bottom-color: #e0e0e0 !important;
|
|
}
|
|
|
|
.tab-button {
|
|
color: #5c5c5c !important;
|
|
}
|
|
|
|
.tab-button:hover {
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.tab-button.active {
|
|
color: #667eea !important;
|
|
}
|
|
|
|
.sparql-input {
|
|
background: #ffffff !important;
|
|
border-color: #e0e0e0 !important;
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.data-table th {
|
|
background: #f0f0f0 !important;
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
border-bottom-color: #e0e0e0 !important;
|
|
}
|
|
|
|
.data-table tr:hover {
|
|
background: #f8f9fa !important;
|
|
}
|
|
|
|
.form-group label {
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.format-select,
|
|
.graph-input {
|
|
background: #ffffff !important;
|
|
border-color: #e0e0e0 !important;
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.file-input {
|
|
border-color: #e0e0e0 !important;
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.file-input:hover {
|
|
background: #f8f9fa !important;
|
|
}
|
|
|
|
.upload-info {
|
|
background: #f0f0f0 !important;
|
|
border-color: #e0e0e0 !important;
|
|
}
|
|
|
|
.upload-info h4 {
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.upload-info li {
|
|
color: #5c5c5c !important;
|
|
}
|
|
|
|
.secondary-button {
|
|
background: #f0f0f0 !important;
|
|
color: #1a1a2e !important;
|
|
}
|
|
|
|
.secondary-button:hover:not(:disabled) {
|
|
background: #e0e0e0 !important;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Multi-Database Comparison UI Styles
|
|
========================================================================== */
|
|
|
|
/* Database Navigation */
|
|
.database-nav {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1.25rem;
|
|
padding: 0.5rem;
|
|
background: #f8f9fa;
|
|
border-radius: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.db-nav-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.25rem;
|
|
background: transparent;
|
|
border: 2px solid transparent;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-size: 0.95rem;
|
|
color: #5c5c5c;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.db-nav-button:hover {
|
|
background: white;
|
|
color: #2c3e50;
|
|
border-color: #e0e0e0;
|
|
}
|
|
|
|
.db-nav-button.active {
|
|
background: white;
|
|
color: var(--db-color, #667eea);
|
|
border-color: var(--db-color, #667eea);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.db-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.db-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Database Content Area */
|
|
.database-content {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
/* All Databases View */
|
|
.all-databases-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.comparison-section h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.comparison-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* Database Status Card */
|
|
.db-status-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e0e0e0;
|
|
border-left: 4px solid var(--db-color, #667eea);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.db-status-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.db-status-header {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.db-icon-large {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.db-status-header h3 {
|
|
margin: 0 0 0.25rem 0;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.db-status-header p {
|
|
margin: 0;
|
|
font-size: 0.85rem;
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.db-status-body {
|
|
padding-top: 0.5rem;
|
|
}
|
|
|
|
.status-placeholder {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.status-dot.loading {
|
|
background: #f39c12;
|
|
animation: pulse 1s infinite;
|
|
}
|
|
|
|
.status-dot.connected {
|
|
background: #27ae60;
|
|
}
|
|
|
|
.status-dot.disconnected {
|
|
background: #e74c3c;
|
|
}
|
|
|
|
/* Database Stats Grid (in status cards) */
|
|
.db-stats-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.db-stat-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.db-stat-item .stat-label {
|
|
font-weight: 500;
|
|
color: #27ae60;
|
|
}
|
|
|
|
.db-stat-item .stat-response-time {
|
|
font-size: 0.75rem;
|
|
color: #7f8c8d;
|
|
margin-left: auto;
|
|
padding: 0.15rem 0.4rem;
|
|
background: #f0f0f0;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.db-stat-numbers {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.db-stat-numbers .stat-number {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.db-stat-numbers .stat-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--db-color, #667eea);
|
|
line-height: 1;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.db-stat-numbers .stat-unit {
|
|
font-size: 0.7rem;
|
|
color: #7f8c8d;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Dark mode for stats grid */
|
|
@media (prefers-color-scheme: dark) {
|
|
.db-stat-item .stat-response-time {
|
|
background: #0f3460;
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.db-stat-numbers .stat-unit {
|
|
color: #a0a0a0;
|
|
}
|
|
}
|
|
|
|
/* Database Panels Grid */
|
|
.database-panels-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.panel-wrapper {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e0e0e0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel-wrapper.duckdb { border-top: 3px solid #FFC107; }
|
|
.panel-wrapper.postgres { border-top: 3px solid #336791; }
|
|
.panel-wrapper.typedb { border-top: 3px solid #6B5CE7; }
|
|
.panel-wrapper.oxigraph { border-top: 3px solid #00A86B; }
|
|
|
|
/* Database Panel Styles */
|
|
.db-panel {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.db-panel.compact {
|
|
min-height: 120px;
|
|
}
|
|
|
|
.db-panel.full {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Panel Header (compact) */
|
|
.db-panel .panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.db-panel .panel-header h3 {
|
|
margin: 0;
|
|
flex: 1;
|
|
font-size: 1.1rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.db-panel .panel-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* Panel Header (full) */
|
|
.panel-header-full {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.header-info {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.panel-icon-large {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.header-info h2 {
|
|
margin: 0 0 0.25rem 0;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.header-info p {
|
|
margin: 0;
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Status Badge */
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-badge.connected {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.status-badge.disconnected {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
.status-badge.large {
|
|
padding: 0.4rem 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Panel Stats */
|
|
.db-panel .panel-stats {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.db-panel .panel-stats .stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.db-panel .panel-stats .stat-value {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: #2c3e50;
|
|
margin: 0;
|
|
}
|
|
|
|
.db-panel .panel-stats .stat-label {
|
|
font-size: 0.75rem;
|
|
color: #7f8c8d;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.panel-error {
|
|
margin-top: 0.75rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background: #fef2f2;
|
|
border-radius: 6px;
|
|
color: #b91c1c;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Stats Row (full panel) */
|
|
.stats-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.stats-row .stat-card {
|
|
flex: 1;
|
|
min-width: 100px;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.stats-row .stat-value {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* Panel Tabs */
|
|
.panel-tabs {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
margin-bottom: 1rem;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tab-btn {
|
|
padding: 0.5rem 1rem;
|
|
background: transparent;
|
|
border: none;
|
|
color: #7f8c8d;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: #667eea;
|
|
border-bottom-color: #667eea;
|
|
}
|
|
|
|
/* Panel Content */
|
|
.panel-content {
|
|
min-height: 200px;
|
|
}
|
|
|
|
/* Tables in Panels */
|
|
.tables-list,
|
|
.types-list,
|
|
.graphs-list,
|
|
.classes-list,
|
|
.predicates-list,
|
|
.namespaces-list {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Query Section */
|
|
.query-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.query-input {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.9rem;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
resize: vertical;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.query-input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
/* Upload Section */
|
|
.upload-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.text-input {
|
|
padding: 0.75rem;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.text-input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
/* Action Bar */
|
|
.action-bar {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Schema Section */
|
|
.schema-section {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.schema-content {
|
|
background: #1e1e1e;
|
|
color: #d4d4d4;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.85rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Small Danger Button */
|
|
.small-button.danger {
|
|
background: #e74c3c;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.small-button.danger:hover {
|
|
background: #c0392b;
|
|
}
|
|
|
|
/* Clickable table rows */
|
|
.data-table tr.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.data-table tr.clickable:hover {
|
|
background: #f0f4ff;
|
|
}
|
|
|
|
/* Expanded table row */
|
|
.expanded-row td {
|
|
background: #f8f9fa;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.column-list {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.column-list h4 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 0.9rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.nested-table {
|
|
width: 100%;
|
|
font-size: 0.85rem;
|
|
background: white;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Override for resizable nested tables - width is set inline */
|
|
.nested-table.resizable-nested {
|
|
width: auto !important;
|
|
}
|
|
|
|
.nested-table th,
|
|
.nested-table td {
|
|
padding: 0.5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
/* Database Type Cards in Info Section */
|
|
.db-types-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.db-type-card {
|
|
display: flex;
|
|
gap: 1rem;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
border-left: 3px solid;
|
|
}
|
|
|
|
.db-type-icon {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.db-type-card strong {
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.db-type-card p {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Responsive adjustments for multi-database UI */
|
|
@media (max-width: 768px) {
|
|
.database-nav {
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.db-nav-button {
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.db-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.database-panels-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.comparison-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.db-types-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.panel-header-full {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.header-actions {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.stats-row {
|
|
justify-content: center;
|
|
}
|
|
|
|
.stats-row .stat-card {
|
|
min-width: 80px;
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.stats-row .stat-value {
|
|
font-size: 1.25rem;
|
|
}
|
|
}
|
|
|
|
/* Dark mode for multi-database UI */
|
|
@media (prefers-color-scheme: dark) {
|
|
.database-nav {
|
|
background: #16213e;
|
|
}
|
|
|
|
.db-nav-button {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.db-nav-button:hover {
|
|
background: #0f3460;
|
|
color: #e0e0e0;
|
|
border-color: #1a1a4e;
|
|
}
|
|
|
|
.db-nav-button.active {
|
|
background: #0f3460;
|
|
}
|
|
|
|
.db-status-card,
|
|
.panel-wrapper {
|
|
background: #16213e;
|
|
border-color: #0f3460;
|
|
}
|
|
|
|
.db-status-header h3,
|
|
.db-panel .panel-header h3,
|
|
.header-info h2 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.db-status-header p,
|
|
.header-info p {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.panel-tabs {
|
|
border-bottom-color: #0f3460;
|
|
}
|
|
|
|
.tab-btn {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.query-input,
|
|
.text-input {
|
|
background: #0f3460;
|
|
border-color: #1a1a4e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.expanded-row td {
|
|
background: #0f3460;
|
|
}
|
|
|
|
.column-list h4 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.nested-table {
|
|
background: #16213e;
|
|
}
|
|
|
|
.db-panel .panel-stats .stat-value {
|
|
color: #e0e0e0;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
DuckLake Disconnected State Styles
|
|
========================================================================== */
|
|
|
|
.ducklake-panel.disconnected-state {
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
}
|
|
|
|
.ducklake-panel.disconnected-state .panel-header .status-badge.disconnected {
|
|
background: #fff3cd;
|
|
color: #856404;
|
|
}
|
|
|
|
/* Compact disconnected state */
|
|
.panel-info-compact {
|
|
padding: 0.5rem 0;
|
|
}
|
|
|
|
.panel-info-compact .info-text {
|
|
font-size: 0.85rem;
|
|
color: #5c5c5c;
|
|
margin: 0 0 0.75rem 0;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.feature-list-compact {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.feature-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.25rem 0.5rem;
|
|
background: rgba(102, 126, 234, 0.1);
|
|
color: #667eea;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Full disconnected state */
|
|
.disconnected-content {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
}
|
|
|
|
.ducklake-panel .info-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.ducklake-panel .info-card h3 {
|
|
margin: 0 0 0.75rem 0;
|
|
color: #2c3e50;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.ducklake-panel .info-card p {
|
|
margin: 0;
|
|
color: #5c5c5c;
|
|
line-height: 1.6;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.ducklake-panel .info-card.highlight {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border: none;
|
|
}
|
|
|
|
.ducklake-panel .info-card.highlight h3,
|
|
.ducklake-panel .info-card.highlight p {
|
|
color: white;
|
|
}
|
|
|
|
.ducklake-panel .info-card.features {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.ducklake-panel .info-card.features {
|
|
grid-column: span 1;
|
|
}
|
|
}
|
|
|
|
.feature-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.feature-list li {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem 0;
|
|
}
|
|
|
|
.feature-icon {
|
|
font-size: 1.25rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.feature-list li span:last-child {
|
|
color: #5c5c5c;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.alternative-action {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
padding: 1.5rem;
|
|
background: #f8f9fa;
|
|
border-radius: 12px;
|
|
border: 1px dashed #d0d0d0;
|
|
}
|
|
|
|
.alternative-action p {
|
|
margin: 0;
|
|
color: #5c5c5c;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.action-link {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.action-link:hover {
|
|
color: #5a6fd6;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Feature badge for panel features section */
|
|
.panel-features {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.feature-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.35rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.feature-badge.active {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.feature-badge.inactive {
|
|
background: #fff3cd;
|
|
color: #856404;
|
|
}
|
|
|
|
/* Dark mode for disconnected state */
|
|
@media (prefers-color-scheme: dark) {
|
|
.ducklake-panel.disconnected-state {
|
|
background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
|
|
}
|
|
|
|
.ducklake-panel.disconnected-state .panel-header .status-badge.disconnected {
|
|
background: #4a3f00;
|
|
color: #ffc107;
|
|
}
|
|
|
|
.panel-info-compact .info-text {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.feature-chip {
|
|
background: rgba(102, 126, 234, 0.2);
|
|
color: #8a9ff5;
|
|
}
|
|
|
|
.ducklake-panel .info-card {
|
|
background: #1a1a4e;
|
|
border-color: #2d2d6e;
|
|
}
|
|
|
|
.ducklake-panel .info-card h3 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.ducklake-panel .info-card p {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.feature-list li span:last-child {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.alternative-action {
|
|
background: #0f3460;
|
|
border-color: #1a1a4e;
|
|
}
|
|
|
|
.alternative-action p {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.feature-badge.inactive {
|
|
background: #4a3f00;
|
|
color: #ffc107;
|
|
}
|
|
}
|
|
|
|
/* Clickable Database Cards */
|
|
.db-status-card.clickable {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.db-status-card.clickable:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
border-color: var(--db-color, #667eea);
|
|
}
|
|
|
|
.db-status-card.clickable:active {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.db-status-card.clickable:focus {
|
|
outline: 2px solid var(--db-color, #667eea);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Back Button */
|
|
.back-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.25rem;
|
|
margin-bottom: 1.5rem;
|
|
background: #f5f5f5;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
color: #2c3e50;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.back-button:hover {
|
|
background: #e8e8e8;
|
|
border-color: #ccc;
|
|
}
|
|
|
|
.back-button:active {
|
|
background: #ddd;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.db-status-card.clickable:hover {
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.back-button {
|
|
background: #2d2d6e;
|
|
border-color: #3d3d8e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.back-button:hover {
|
|
background: #3d3d8e;
|
|
border-color: #4d4dae;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
Data Explorer Styles
|
|
============================================ */
|
|
|
|
.data-explorer {
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.explorer-hint {
|
|
color: #666;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Table Cards Grid */
|
|
.table-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.table-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1.25rem;
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.table-card:hover {
|
|
border-color: #FFC107;
|
|
box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.table-card:focus {
|
|
outline: 2px solid #FFC107;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.table-card-icon {
|
|
font-size: 2.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.table-card-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.table-card-info h4 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 1.1rem;
|
|
color: #2c3e50;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.table-card-stats {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
}
|
|
|
|
.table-stat strong {
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.table-card-arrow {
|
|
font-size: 1.5rem;
|
|
color: #ccc;
|
|
transition: transform 0.2s, color 0.2s;
|
|
}
|
|
|
|
.table-card:hover .table-card-arrow {
|
|
color: #FFC107;
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
/* Table Viewer */
|
|
.table-viewer {
|
|
background: white;
|
|
border-radius: 12px;
|
|
border: 1px solid #e0e0e0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.viewer-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1rem 1.5rem;
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.back-link {
|
|
background: none;
|
|
border: none;
|
|
color: #667eea;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
padding: 0.5rem 0;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.back-link:hover {
|
|
color: #5a6fd6;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.viewer-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.viewer-icon {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.viewer-title h3 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.viewer-meta {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
background: #e9ecef;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.viewer-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.view-toggle {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid #e0e0e0;
|
|
background: white;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.view-toggle:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.view-toggle.active {
|
|
background: #FFC107;
|
|
border-color: #FFC107;
|
|
color: #000;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Schema View */
|
|
.schema-view {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.schema-columns {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.schema-column {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border-left: 3px solid #FFC107;
|
|
}
|
|
|
|
.column-index {
|
|
width: 2rem;
|
|
text-align: center;
|
|
font-size: 0.85rem;
|
|
color: #999;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.column-name {
|
|
flex: 1;
|
|
font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.column-type {
|
|
font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
|
|
font-size: 0.85rem;
|
|
color: #667eea;
|
|
background: #eef0ff;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Data View */
|
|
.data-view {
|
|
padding: 0;
|
|
}
|
|
|
|
.loading-data {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
padding: 3rem;
|
|
color: #666;
|
|
}
|
|
|
|
.spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid #e0e0e0;
|
|
border-top-color: #FFC107;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.data-table-wrapper {
|
|
overflow-x: auto;
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.explorer-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.explorer-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: #f8f9fa;
|
|
padding: 0.75rem 1rem;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.explorer-table td {
|
|
padding: 0.6rem 1rem;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.explorer-table tbody tr:hover {
|
|
background: #fffdf5;
|
|
}
|
|
|
|
.explorer-table tbody tr:nth-child(even) {
|
|
background: #fafafa;
|
|
}
|
|
|
|
.explorer-table tbody tr:nth-child(even):hover {
|
|
background: #fffdf5;
|
|
}
|
|
|
|
/* Pagination */
|
|
.pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1.5rem;
|
|
padding: 1rem;
|
|
border-top: 1px solid #e0e0e0;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.page-btn {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid #e0e0e0;
|
|
background: white;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.page-btn:hover:not(:disabled) {
|
|
background: #FFC107;
|
|
border-color: #FFC107;
|
|
}
|
|
|
|
.page-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.page-info {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* Dark Mode Support */
|
|
@media (prefers-color-scheme: dark) {
|
|
.table-card {
|
|
background: #1e1e2e;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.table-card:hover {
|
|
border-color: #FFC107;
|
|
box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
|
|
}
|
|
|
|
.table-card-info h4 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.table-card-stats {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.table-stat strong {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.table-viewer {
|
|
background: #1e1e2e;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.viewer-header {
|
|
background: #16162a;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.back-link {
|
|
color: #8b9dff;
|
|
}
|
|
|
|
.viewer-title h3 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.viewer-meta {
|
|
background: #2d2d4a;
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.view-toggle {
|
|
background: #2d2d4a;
|
|
border-color: #3d3d5c;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.view-toggle:hover {
|
|
background: #3d3d5c;
|
|
}
|
|
|
|
.view-toggle.active {
|
|
background: #FFC107;
|
|
color: #000;
|
|
}
|
|
|
|
.schema-column {
|
|
background: #16162a;
|
|
}
|
|
|
|
.column-name {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.column-type {
|
|
background: #2d2d4a;
|
|
color: #8b9dff;
|
|
}
|
|
|
|
.explorer-table th {
|
|
background: #16162a;
|
|
color: #e0e0e0;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.explorer-table td {
|
|
border-color: #2d2d4a;
|
|
color: #c0c0c0;
|
|
}
|
|
|
|
.explorer-table tbody tr:hover {
|
|
background: #252540;
|
|
}
|
|
|
|
.explorer-table tbody tr:nth-child(even) {
|
|
background: #1a1a2e;
|
|
}
|
|
|
|
.explorer-table tbody tr:nth-child(even):hover {
|
|
background: #252540;
|
|
}
|
|
|
|
.pagination {
|
|
background: #16162a;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.page-btn {
|
|
background: #2d2d4a;
|
|
border-color: #3d3d5c;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.page-btn:hover:not(:disabled) {
|
|
background: #FFC107;
|
|
color: #000;
|
|
}
|
|
|
|
.page-info {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.explorer-hint {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.loading-data {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.spinner {
|
|
border-color: #3d3d5c;
|
|
border-top-color: #FFC107;
|
|
}
|
|
}
|
|
|
|
|
|
/* ==========================================================================
|
|
Expandable Cell & JSON Modal Styles
|
|
========================================================================== */
|
|
|
|
/* Expandable cells in data table */
|
|
.expandable-cell {
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
.expandable-cell:hover {
|
|
background: rgba(255, 193, 7, 0.15) !important;
|
|
}
|
|
|
|
.expand-icon {
|
|
font-size: 0.7rem;
|
|
margin-right: 0.3rem;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.expandable-cell:hover .expand-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Modal overlay */
|
|
.cell-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 2rem;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
/* Modal container */
|
|
.cell-modal {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
max-width: 900px;
|
|
width: 100%;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Modal header */
|
|
.cell-modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.cell-modal-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.modal-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.modal-title-text h3 {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #1a1a2e;
|
|
}
|
|
|
|
.modal-subtitle {
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
color: #666;
|
|
cursor: pointer;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: #e0e0e0;
|
|
color: #333;
|
|
}
|
|
|
|
/* Modal content */
|
|
.cell-modal-content {
|
|
padding: 1.5rem;
|
|
overflow: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.cell-json-view {
|
|
background: #1a1a2e;
|
|
color: #e0e0e0;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
font-family: "SF Mono", "Monaco", "Consolas", monospace;
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Modal actions */
|
|
.cell-modal-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding: 1rem 1.5rem;
|
|
border-top: 1px solid #e0e0e0;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.modal-action-btn {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-action-btn:hover {
|
|
background: #FFC107;
|
|
border-color: #FFC107;
|
|
color: #000;
|
|
}
|
|
|
|
/* Dark mode for modal */
|
|
@media (prefers-color-scheme: dark) {
|
|
.cell-modal {
|
|
background: #1a1a2e;
|
|
}
|
|
|
|
.cell-modal-header {
|
|
background: #16162a;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.modal-title-text h3 {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.modal-subtitle {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.modal-close {
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: #3d3d5c;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.cell-json-view {
|
|
background: #0d0d1a;
|
|
}
|
|
|
|
.cell-modal-actions {
|
|
background: #16162a;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.modal-action-btn {
|
|
background: #2d2d4a;
|
|
border-color: #3d3d5c;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.modal-action-btn:hover {
|
|
background: #FFC107;
|
|
border-color: #FFC107;
|
|
color: #000;
|
|
}
|
|
}
|
|
|
|
|
|
/* ==========================================================================
|
|
Row Detail View & Nested Data Styles
|
|
========================================================================== */
|
|
|
|
/* Clickable rows */
|
|
.clickable-row {
|
|
cursor: pointer;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.clickable-row:hover {
|
|
background: rgba(255, 193, 7, 0.15) !important;
|
|
}
|
|
|
|
.row-expand-col {
|
|
width: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.row-expand-cell {
|
|
text-align: center;
|
|
color: #666;
|
|
}
|
|
|
|
.expand-arrow {
|
|
font-size: 0.7rem;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.clickable-row:hover .expand-arrow {
|
|
color: #FFC107;
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.more-cols, .more-data {
|
|
color: #888;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Row Detail View */
|
|
.row-detail-view {
|
|
padding: 0;
|
|
}
|
|
|
|
.row-detail-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
border-radius: 8px 8px 0 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.row-detail-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.row-icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.row-detail-meta {
|
|
background: #e9ecef;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 12px;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* Expand toggle button for full-width mode */
|
|
.expand-toggle {
|
|
background: #e9ecef;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
padding: 0.35rem 0.6rem;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.expand-toggle:hover {
|
|
background: #ddd;
|
|
border-color: #999;
|
|
}
|
|
|
|
.expand-toggle.active {
|
|
background: #FFC107;
|
|
border-color: #e0a800;
|
|
color: #000;
|
|
}
|
|
|
|
/* Full-width mode for row detail view */
|
|
.row-detail-view.full-width {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 1000;
|
|
background: #fff;
|
|
border-radius: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.row-detail-view.full-width .row-detail-header {
|
|
border-radius: 0;
|
|
padding: 0.75rem 1.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.row-detail-view.full-width .row-detail-content {
|
|
flex: 1;
|
|
max-height: none;
|
|
padding: 1rem 1.5rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.row-detail-view.full-width .field-section {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.row-detail-view.full-width .field-value {
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
|
|
.row-detail-content {
|
|
padding: 0.75rem;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Field sections */
|
|
.field-section {
|
|
margin-bottom: 0.75rem;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.field-section.has-nested {
|
|
border-color: #FFC107;
|
|
}
|
|
|
|
.field-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 0.75rem;
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.field-name {
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
color: #333;
|
|
}
|
|
|
|
.field-type-badge {
|
|
background: #FFC107;
|
|
color: #000;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.field-value {
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.9rem;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Value types */
|
|
.null-value {
|
|
color: #999;
|
|
font-style: italic;
|
|
}
|
|
|
|
.empty-value {
|
|
color: #999;
|
|
}
|
|
|
|
.link-value {
|
|
color: #0066cc;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.link-value:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.simple-value {
|
|
color: #333;
|
|
}
|
|
|
|
/* Nested tables */
|
|
.nested-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.85rem;
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
/* Override for resizable nested tables - width controlled by inline style */
|
|
.nested-table.resizable-nested {
|
|
width: auto !important;
|
|
}
|
|
|
|
.nested-table th,
|
|
.nested-table td {
|
|
padding: 0.4rem 0.6rem;
|
|
border: 1px solid #e0e0e0;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.nested-table th {
|
|
background: #f0f0f0;
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
color: #555;
|
|
}
|
|
|
|
.nested-table tbody tr:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
/* Key-value table */
|
|
.kv-table .kv-key {
|
|
width: 30%;
|
|
background: #f8f9fa;
|
|
font-weight: 500;
|
|
color: #555;
|
|
}
|
|
|
|
.kv-table .kv-value {
|
|
width: 70%;
|
|
}
|
|
|
|
/* Override percentage widths for resizable KV tables - use inline widths instead */
|
|
.kv-table.resizable-nested .kv-key,
|
|
.kv-table.resizable-nested .kv-value {
|
|
width: auto; /* Width controlled by inline styles and colgroup */
|
|
}
|
|
|
|
/* Array list */
|
|
.array-list {
|
|
margin: 0;
|
|
padding-left: 1.5rem;
|
|
list-style: disc;
|
|
}
|
|
|
|
.array-list li {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
/* Nested containers */
|
|
.nested-object,
|
|
.nested-array {
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
/* Dark mode for row detail */
|
|
@media (prefers-color-scheme: dark) {
|
|
.row-detail-header {
|
|
background: #16162a;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.row-detail-title {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.row-detail-meta {
|
|
background: #2d2d4a;
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.field-section {
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.field-section.has-nested {
|
|
border-color: #FFC107;
|
|
}
|
|
|
|
.field-header {
|
|
background: #16162a;
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.field-name {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.field-value {
|
|
background: #1a1a2e;
|
|
}
|
|
|
|
.simple-value {
|
|
color: #c0c0c0;
|
|
}
|
|
|
|
.link-value {
|
|
color: #8b9dff;
|
|
}
|
|
|
|
.nested-table th,
|
|
.nested-table td {
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.nested-table th {
|
|
background: #16162a;
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.nested-table tbody tr:hover {
|
|
background: #252540;
|
|
}
|
|
|
|
.kv-table .kv-key {
|
|
background: #16162a;
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.row-expand-cell {
|
|
color: #888;
|
|
}
|
|
|
|
/* Dark mode for expand toggle and full-width mode */
|
|
.expand-toggle {
|
|
background: #2d2d4a;
|
|
border-color: #3d3d5c;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.expand-toggle:hover {
|
|
background: #3d3d5c;
|
|
border-color: #5d5d7c;
|
|
}
|
|
|
|
.expand-toggle.active {
|
|
background: #FFC107;
|
|
border-color: #e0a800;
|
|
color: #000;
|
|
}
|
|
|
|
.row-detail-view.full-width {
|
|
background: #0d0d1a;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Resizable Table Columns & Rows
|
|
========================================================================== */
|
|
|
|
.resizable-table {
|
|
table-layout: fixed;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.resizable-header {
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-text {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
/* Column resize handle */
|
|
.col-resize-handle {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 6px;
|
|
cursor: col-resize;
|
|
background: transparent;
|
|
transition: background 0.15s ease;
|
|
z-index: 10;
|
|
}
|
|
|
|
.col-resize-handle:hover,
|
|
.col-resize-handle:active {
|
|
background: #FFC107;
|
|
}
|
|
|
|
.resizable-header:hover .col-resize-handle {
|
|
background: rgba(255, 193, 7, 0.4);
|
|
}
|
|
|
|
/* Row resize handle */
|
|
.row-resize-handle {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 4px;
|
|
cursor: row-resize;
|
|
background: transparent;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.row-resize-handle:hover,
|
|
.row-resize-handle:active {
|
|
background: #FFC107;
|
|
}
|
|
|
|
.row-expand-cell {
|
|
position: relative;
|
|
}
|
|
|
|
.row-expand-cell:hover .row-resize-handle {
|
|
background: rgba(255, 193, 7, 0.3);
|
|
}
|
|
|
|
/* Cell content wrapper for proper overflow */
|
|
.cell-content {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-height: 100%;
|
|
}
|
|
|
|
/* Data table wrapper - horizontal scroll */
|
|
.data-table-wrapper {
|
|
overflow-x: auto;
|
|
overflow-y: auto;
|
|
max-height: 65vh;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Resizable table cells */
|
|
.resizable-table td {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 0; /* Forces text-overflow to work with table-layout: fixed */
|
|
}
|
|
|
|
/* Sticky header */
|
|
.resizable-table thead {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
}
|
|
|
|
.resizable-table th {
|
|
background: #f8f9fa;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
}
|
|
|
|
/* Visual feedback during resize */
|
|
body.resizing-column,
|
|
body.resizing-column * {
|
|
cursor: col-resize !important;
|
|
}
|
|
|
|
body.resizing-row,
|
|
body.resizing-row * {
|
|
cursor: row-resize !important;
|
|
}
|
|
|
|
/* Improved row hover */
|
|
.resizable-table tbody tr {
|
|
transition: background 0.1s ease;
|
|
}
|
|
|
|
/* Column width indicator on hover */
|
|
.resizable-header::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
/* Dark mode adjustments */
|
|
@media (prefers-color-scheme: dark) {
|
|
.data-table-wrapper {
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.resizable-table th {
|
|
background: #16162a;
|
|
border-bottom-color: #3d3d5c;
|
|
}
|
|
|
|
.resizable-header::after {
|
|
background: #3d3d5c;
|
|
}
|
|
|
|
.col-resize-handle:hover,
|
|
.col-resize-handle:active {
|
|
background: #FFC107;
|
|
}
|
|
|
|
.resizable-header:hover .col-resize-handle {
|
|
background: rgba(255, 193, 7, 0.4);
|
|
}
|
|
|
|
.row-expand-cell:hover .row-resize-handle {
|
|
background: rgba(255, 193, 7, 0.3);
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
RESIZABLE NESTED TABLES
|
|
Styles for ResizableNestedTable component
|
|
============================================ */
|
|
|
|
/* Wrapper for nested tables with horizontal scroll */
|
|
.nested-table-wrapper {
|
|
overflow-x: auto;
|
|
overflow-y: visible;
|
|
max-width: 100%;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* Resizable nested table base styles */
|
|
.nested-table.resizable-nested {
|
|
table-layout: fixed;
|
|
border-collapse: collapse;
|
|
/* Width is set dynamically via inline style based on column widths */
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Resizable nested table header */
|
|
.resizable-nested-header {
|
|
position: relative;
|
|
background: #f0f4f8;
|
|
border: 1px solid #ddd;
|
|
padding: 6px 16px 6px 8px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
color: #444;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.nested-header-text {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Resize handle for nested tables */
|
|
.col-resize-handle.nested-resize {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 6px;
|
|
cursor: col-resize;
|
|
background: transparent;
|
|
transition: background 0.15s ease;
|
|
z-index: 10;
|
|
}
|
|
|
|
.col-resize-handle.nested-resize:hover {
|
|
background: rgba(255, 193, 7, 0.5);
|
|
}
|
|
|
|
.col-resize-handle.nested-resize:active {
|
|
background: #FFC107;
|
|
}
|
|
|
|
/* Nested table cells */
|
|
.nested-table.resizable-nested td {
|
|
border: 1px solid #e0e0e0;
|
|
padding: 4px 8px;
|
|
vertical-align: top;
|
|
background: #fff;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nested-table.resizable-nested th {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nested-cell-content {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
/* Key-value nested tables */
|
|
.nested-table.kv-table.resizable-nested .kv-key {
|
|
position: relative;
|
|
background: #f5f5f5;
|
|
font-weight: 600;
|
|
color: #555;
|
|
padding-right: 16px;
|
|
overflow: hidden;
|
|
/* min-width is controlled via inline style, not here */
|
|
}
|
|
|
|
.nested-table.kv-table.resizable-nested .kv-value {
|
|
position: relative;
|
|
background: #fff;
|
|
overflow: hidden;
|
|
padding-right: 16px; /* Space for resize handle */
|
|
}
|
|
|
|
.nested-table.kv-table.resizable-nested .kv-key-text {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nested-table.kv-table.resizable-nested .kv-value {
|
|
background: #fff;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Row hover effect for nested tables */
|
|
.nested-table.resizable-nested tbody tr:hover td {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.nested-table.resizable-nested tbody tr:hover .kv-key {
|
|
background: #eef2f5;
|
|
}
|
|
|
|
/* Visual indicator for resizable columns */
|
|
.resizable-nested-header::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 6px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 2px;
|
|
height: 60%;
|
|
background: linear-gradient(180deg, transparent 0%, #ccc 50%, transparent 100%);
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.resizable-nested-header:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Dark mode for resizable nested tables */
|
|
@media (prefers-color-scheme: dark) {
|
|
.nested-table-wrapper {
|
|
border-color: #3d3d5c;
|
|
}
|
|
|
|
.resizable-nested-header {
|
|
background: #1e1e3f;
|
|
border-color: #3d3d5c;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.nested-table.resizable-nested td {
|
|
border-color: #3d3d5c;
|
|
background: #16162a;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.nested-table.kv-table.resizable-nested .kv-key {
|
|
background: #1e1e3f;
|
|
color: #b0b0c0;
|
|
}
|
|
|
|
.nested-table.kv-table.resizable-nested .kv-value {
|
|
background: #16162a;
|
|
}
|
|
|
|
.nested-table.resizable-nested tbody tr:hover td {
|
|
background: #1e1e3f;
|
|
}
|
|
|
|
.nested-table.resizable-nested tbody tr:hover .kv-key {
|
|
background: #252550;
|
|
}
|
|
|
|
.col-resize-handle.nested-resize:hover {
|
|
background: rgba(255, 193, 7, 0.4);
|
|
}
|
|
|
|
.col-resize-handle.nested-resize:active {
|
|
background: #FFC107;
|
|
}
|
|
|
|
.resizable-nested-header::after {
|
|
background: linear-gradient(180deg, transparent 0%, #555 50%, transparent 100%);
|
|
}
|
|
}
|
|
|
|
/* ========================================
|
|
Web Archive Viewer Styles
|
|
======================================== */
|
|
|
|
.web-archive-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
margin-left: 0.5rem;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 6px;
|
|
background: #f8f9fa;
|
|
cursor: pointer;
|
|
font-size: 1.1rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.web-archive-btn:hover {
|
|
background: #e3f2fd;
|
|
border-color: #2196F3;
|
|
}
|
|
|
|
.web-archive-btn.active {
|
|
background: #2196F3;
|
|
border-color: #1976D2;
|
|
}
|
|
|
|
.web-archive-viewer {
|
|
background: #fafafa;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
margin-bottom: 1rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.web-archive-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
}
|
|
|
|
.web-archive-header h5 {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.web-archive-header .archive-icon {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.web-archive-header .original-url {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
margin-left: auto;
|
|
padding: 0.25rem 0.5rem;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-radius: 4px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.web-archive-header .original-url:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.web-archive-content {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.archive-section {
|
|
background: white;
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.archive-section h6 {
|
|
margin: 0;
|
|
padding: 0.6rem 0.75rem;
|
|
background: #f5f5f5;
|
|
border-bottom: 1px solid #e8e8e8;
|
|
font-size: 0.85rem;
|
|
color: #444;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.pages-list,
|
|
.claims-list {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.page-item {
|
|
padding: 0.5rem 0.75rem;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.page-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.page-item:hover {
|
|
background: #f5f9ff;
|
|
}
|
|
|
|
.page-item.selected {
|
|
background: #e3f2fd;
|
|
border-left: 3px solid #2196F3;
|
|
}
|
|
|
|
.page-item .page-title {
|
|
display: block;
|
|
font-weight: 500;
|
|
color: #333;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.15rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.page-item .page-path {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.claim-item {
|
|
padding: 0.6rem 0.75rem;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.claim-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.claim-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.claim-type {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
padding: 0.15rem 0.4rem;
|
|
border-radius: 3px;
|
|
background: #e0e0e0;
|
|
color: #555;
|
|
}
|
|
|
|
.claim-type.full_name { background: #c8e6c9; color: #2e7d32; }
|
|
.claim-type.description { background: #bbdefb; color: #1565c0; }
|
|
.claim-type.email { background: #ffe0b2; color: #e65100; }
|
|
.claim-type.phone { background: #d1c4e9; color: #512da8; }
|
|
.claim-type.address { background: #f8bbd9; color: #c2185b; }
|
|
.claim-type.opening_hours { background: #b2dfdb; color: #00695c; }
|
|
|
|
.claim-hypernym {
|
|
font-size: 0.7rem;
|
|
padding: 0.1rem 0.35rem;
|
|
background: #fff3e0;
|
|
color: #e65100;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.claim-content {
|
|
font-size: 0.85rem;
|
|
color: #333;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.claim-xpath {
|
|
font-size: 0.7rem;
|
|
color: #999;
|
|
margin-top: 0.3rem;
|
|
font-family: monospace;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.web-archive-viewer .no-data {
|
|
padding: 1rem;
|
|
text-align: center;
|
|
color: #999;
|
|
font-style: italic;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Dark mode for Web Archive Viewer */
|
|
@media (prefers-color-scheme: dark) {
|
|
.web-archive-btn {
|
|
background: #2a2a3e;
|
|
border-color: #404050;
|
|
color: #ddd;
|
|
}
|
|
|
|
.web-archive-btn:hover {
|
|
background: #1e3a5f;
|
|
border-color: #2196F3;
|
|
}
|
|
|
|
.web-archive-viewer {
|
|
background: #1a1a2e;
|
|
border-color: #333;
|
|
}
|
|
|
|
.archive-section {
|
|
background: #222238;
|
|
border-color: #333;
|
|
}
|
|
|
|
.archive-section h6 {
|
|
background: #2a2a40;
|
|
border-color: #333;
|
|
color: #ccc;
|
|
}
|
|
|
|
.page-item {
|
|
border-color: #333;
|
|
}
|
|
|
|
.page-item:hover {
|
|
background: #252540;
|
|
}
|
|
|
|
.page-item.selected {
|
|
background: #1e3a5f;
|
|
border-left-color: #2196F3;
|
|
}
|
|
|
|
.page-item .page-title {
|
|
color: #eee;
|
|
}
|
|
|
|
.page-item .page-path {
|
|
color: #888;
|
|
}
|
|
|
|
.claim-item {
|
|
border-color: #333;
|
|
}
|
|
|
|
.claim-content {
|
|
color: #ddd;
|
|
}
|
|
|
|
.claims-note {
|
|
background: #1a1a2e;
|
|
color: #888;
|
|
}
|
|
}
|
|
|
|
/* Section header row with filter button */
|
|
.section-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.6rem 0.75rem;
|
|
background: #f5f5f5;
|
|
border-bottom: 1px solid #e8e8e8;
|
|
}
|
|
|
|
.section-header-row h6 {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 0.85rem;
|
|
color: #444;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.filter-indicator {
|
|
font-weight: normal;
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
}
|
|
|
|
.clear-filter-btn {
|
|
font-size: 0.7rem;
|
|
padding: 0.2rem 0.5rem;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
background: white;
|
|
color: #666;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.clear-filter-btn:hover {
|
|
background: #f0f0f0;
|
|
border-color: #bbb;
|
|
}
|
|
|
|
.claims-note {
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
font-style: italic;
|
|
padding: 0.5rem 0.75rem;
|
|
background: #fafafa;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
/* Dark mode for new elements */
|
|
@media (prefers-color-scheme: dark) {
|
|
.section-header-row {
|
|
background: #2a2a40;
|
|
border-color: #333;
|
|
}
|
|
|
|
.section-header-row h6 {
|
|
color: #ccc;
|
|
}
|
|
|
|
.clear-filter-btn {
|
|
background: #333;
|
|
border-color: #444;
|
|
color: #aaa;
|
|
}
|
|
|
|
.clear-filter-btn:hover {
|
|
background: #404050;
|
|
border-color: #555;
|
|
}
|
|
|
|
.claims-note {
|
|
background: #1a1a2e;
|
|
border-color: #333;
|
|
color: #777;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Table Search Bar
|
|
========================================================================== */
|
|
|
|
.table-search-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.search-input-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
max-width: 400px;
|
|
position: relative;
|
|
background: white;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 0.5rem 0.75rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-input-wrapper:focus-within {
|
|
border-color: #FFC107;
|
|
box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
|
|
}
|
|
|
|
.search-icon {
|
|
font-size: 0.9rem;
|
|
margin-right: 0.5rem;
|
|
color: #888;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
border: none;
|
|
outline: none;
|
|
font-size: 0.9rem;
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: #aaa;
|
|
}
|
|
|
|
.clear-search-btn {
|
|
background: #e9ecef;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
font-size: 0.7rem;
|
|
color: #666;
|
|
transition: all 0.15s;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.clear-search-btn:hover {
|
|
background: #FFC107;
|
|
color: #000;
|
|
}
|
|
|
|
.search-results-count {
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Dark mode for search bar */
|
|
@media (prefers-color-scheme: dark) {
|
|
.table-search-bar {
|
|
background: #1a1a2e;
|
|
border-color: #333;
|
|
}
|
|
|
|
.search-input-wrapper {
|
|
background: #252538;
|
|
border-color: #404050;
|
|
}
|
|
|
|
.search-input-wrapper:focus-within {
|
|
border-color: #FFC107;
|
|
box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.15);
|
|
}
|
|
|
|
.search-icon {
|
|
color: #777;
|
|
}
|
|
|
|
.search-input {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: #666;
|
|
}
|
|
|
|
.clear-search-btn {
|
|
background: #3a3a4e;
|
|
color: #aaa;
|
|
}
|
|
|
|
.clear-search-btn:hover {
|
|
background: #FFC107;
|
|
color: #000;
|
|
}
|
|
|
|
.search-results-count {
|
|
color: #888;
|
|
}
|
|
}
|