Started adding advanced search

This commit is contained in:
Jason
2026-04-28 15:09:56 -05:00
parent fcaa15bf6e
commit b8c477a59c
5 changed files with 665 additions and 0 deletions
+163
View File
@@ -732,3 +732,166 @@ body {
margin: 5px 0;
color: #666;
}
/* Search Bar Component */
.search-container {
padding: 20px 30px;
background-color: #ffffff;
border-bottom: 2px solid #e0e0e0;
}
.search-wrapper {
max-width: 800px;
margin: 0 auto;
}
.search-input-wrapper {
position: relative;
margin-bottom: 15px;
}
.search-input {
width: 100%;
padding: 12px 16px;
font-size: 16px;
border: 2px solid #333;
border-radius: 8px;
outline: none;
transition: all 0.3s ease;
background-color: white;
}
.search-input:focus {
border-color: #6a4c93;
box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.1);
}
.search-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: white;
border: 2px solid #333;
border-top: none;
border-radius: 0 0 8px 8px;
max-height: 300px;
overflow-y: auto;
display: none;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.search-dropdown-item {
padding: 12px 16px;
cursor: pointer;
border-bottom: 1px solid #e0e0e0;
transition: background-color 0.2s ease;
}
.search-dropdown-item:last-child {
border-bottom: none;
}
.search-dropdown-item:hover {
background-color: #f5f5f5;
}
.search-dropdown-item.selected {
background-color: #e8e0f0;
font-weight: bold;
}
.search-dropdown-item-title {
font-weight: bold;
color: #333;
margin-bottom: 4px;
}
.search-dropdown-item-code {
font-size: 12px;
color: #666;
}
.search-buttons {
display: flex;
gap: 10px;
justify-content: center;
}
.search-btn {
padding: 10px 20px;
font-size: 14px;
font-weight: bold;
border: 2px solid #333;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
background-color: white;
color: #333;
}
.search-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.search-btn:active:not(:disabled) {
transform: translateY(0);
}
.search-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.view-btn {
background-color: #6a4c93;
color: white;
border-color: #6a4c93;
}
.view-btn:hover:not(:disabled) {
background-color: #563d7a;
border-color: #563d7a;
}
.search-btn-action {
background-color: #4CAF50;
color: white;
border-color: #4CAF50;
}
.search-btn-action:hover:not(:disabled) {
background-color: #45a049;
border-color: #45a049;
}
.advanced-btn {
background-color: #2196F3;
color: white;
border-color: #2196F3;
}
.advanced-btn:hover:not(:disabled) {
background-color: #0b7dda;
border-color: #0b7dda;
}
/* Dropdown scrollbar */
.search-dropdown::-webkit-scrollbar {
width: 8px;
}
.search-dropdown::-webkit-scrollbar-track {
background: #f1f1f1;
}
.search-dropdown::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.search-dropdown::-webkit-scrollbar-thumb:hover {
background: #555;
}