quick_search/assets/styles.css

299 lines
5.5 KiB
CSS

/* QuickSearch Application Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.app-container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
overflow: hidden;
}
.app-header {
background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
color: white;
padding: 20px;
text-align: center;
}
.app-content {
padding: 20px;
}
.section {
background: #f8f9fa;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
border-left: 4px solid #4CAF50;
}
.form-control {
width: 100%;
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 6px;
font-size: 14px;
transition: border-color 0.3s ease;
box-sizing: border-box;
}
.form-control:focus {
outline: none;
border-color: #4CAF50;
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: all 0.3s ease;
margin-right: 10px;
display: inline-block;
}
.btn-primary {
background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
color: white;
}
.btn-primary:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
.btn-danger {
background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
color: white;
}
.btn-danger:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}
.btn-info {
background: linear-gradient(90deg, #2196F3 0%, #1976D2 100%);
color: white;
}
.btn-info:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none !important;
box-shadow: none !important;
}
.status-display {
background: #1a1a1a;
color: #00ff00;
padding: 15px;
border-radius: 6px;
font-family: 'Courier New', monospace;
white-space: pre-wrap;
font-size: 13px;
border: 1px solid #333;
overflow-x: auto;
}
.search-results {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
margin-top: 20px;
}
.results-table {
max-height: 400px;
overflow: auto;
border: 1px solid #ddd;
border-radius: 6px;
}
.results-table table {
width: 100%;
border-collapse: collapse;
}
.results-table th {
background: #4CAF50;
color: white;
padding: 12px;
text-align: left;
font-weight: 600;
position: sticky;
top: 0;
border-bottom: 2px solid #45a049;
}
.results-table td {
padding: 10px 12px;
border-bottom: 1px solid #e0e0e0;
word-break: break-all;
}
.results-table tbody tr:hover {
background: #f5f5f5;
}
.results-table tbody tr:nth-child(even) {
background: #fafafa;
}
.results-table tbody tr:nth-child(even):hover {
background: #f0f0f0;
}
/* Clickable path cells */
.path-cell.clickable {
cursor: pointer;
color: #1976d2;
font-weight: 500;
transition: all 0.2s ease;
position: relative;
}
.path-cell.clickable:hover {
background: #e3f2fd !important;
color: #0d47a1;
text-decoration: underline;
}
.path-cell.clickable:active {
background: #bbdefb !important;
transform: scale(0.98);
}
.error-message {
background: #ffebee;
color: #c62828;
padding: 12px;
border-radius: 6px;
border-left: 4px solid #f44336;
margin: 10px 0;
}
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-dialog {
background: white;
padding: 30px;
border-radius: 12px;
max-width: 600px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
h1, h2, h3 {
margin-top: 0;
color: #333;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #555;
}
.form-group {
margin-bottom: 20px;
}
/* Highlight matched text in search results */
.results-table b {
background: #ffeb3b;
padding: 2px 4px;
border-radius: 3px;
font-weight: bold;
color: #333;
}
/* Loading spinner */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #4CAF50;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 10px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Responsive design */
@media (max-width: 768px) {
body {
padding: 10px;
}
.app-container {
border-radius: 8px;
}
.app-content {
padding: 15px;
}
.form-control {
font-size: 16px; /* Prevents zoom on iOS */
}
.results-table {
font-size: 12px;
}
.btn {
width: 100%;
margin-bottom: 10px;
margin-right: 0;
}
}