frontend/src/assets/css/SearchBar.css
/* SearchBar.css */
/* Update in SearchBar.css */
.search-container {
width: 100%;
padding: 8px;
background-color: #2a2a2a;
box-sizing: border-box; /* Include padding in width calculation */
max-width: 100%; /* Ensure it doesn't exceed parent width */
overflow: hidden; /* Prevent overflow */
}
.search-input-wrapper {
position: relative;
width: 100%;
display: flex;
align-items: center;
box-sizing: border-box;
}
.search-input {
width: 100%;
padding: 8px 32px 8px 12px;
font-size: 14px;
border: 1px solid #444;
border-radius: 4px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
background-color: #333;
color: #e0e0e0;
box-sizing: border-box; /* Include padding in width calculation */
}
.search-input:focus {
border-color: #4a90e2; /* Blue highlight when focused */
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
.search-input::placeholder {
color: #888; /* Lighter placeholder text */
}
.clear-button {
position: absolute;
right: 8px;
background: none;
border: none;
font-size: 18px;
color: #888;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
}
.clear-button:hover {
background-color: rgba(255, 255, 255, 0.1);
color: #ccc;
}