lokesh341's picture
Update static/styles.css
f4f4eb1 verified
raw
history blame
6.74 kB
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f2f5;
}
.chat-container {
width: 100%;
max-width: 100%;
height: 100vh;
border: 1px solid #ccc;
border-radius: 0;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
background-color: white;
display: flex;
flex-direction: column;
margin: 0;
}
.chat-header {
background-color: #4caf50;
color: white;
padding: 10px;
text-align: center;
font-size: 18px;
flex-shrink: 0;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 10px;
box-sizing: border-box;
}
.bot-message {
background-color: #fffbe6;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
max-width: 70%;
word-wrap: break-word;
font-size: 14px;
}
.user-message {
background-color: #e1f5fe;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
max-width: 70%;
margin-left: auto;
text-align: right;
word-wrap: break-word;
font-size: 14px;
}
.chat-input {
display: flex;
padding: 10px;
border-top: 1px solid #ccc;
flex-shrink: 0;
position: sticky;
bottom: 0;
background-color: white;
}
.chat-input input {
flex: 1;
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 14px;
min-height: 40px;
resize: none;
overflow-y: hidden;
}
.chat-input button {
padding: 8px 15px;
margin-left: 10px;
background-color: #ffbd80;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 14px;
min-height: 40px;
}
.chat-input button:hover {
background-color: #ffa550;
}
.suggestions-list, .ingredients-list {
max-height: 150px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
padding: 10px;
margin: 10px 0;
background-color: #f9f9f9;
border-radius: 5px;
display: flex;
gap: 10px;
}
.suggestion-item, .ingredient-item {
display: inline-flex;
flex-direction: column;
align-items: center;
margin-right: 15px;
cursor: pointer;
}
.suggestions-list img, .ingredients-list img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 5px;
}
.suggestions-list button, .ingredients-list button {
padding: 5px 10px;
margin-top: 5px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
}
.show-desc-button {
padding: 5px 10px;
margin-top: 5px;
background-color: #2196f3;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
}
.show-desc-button:hover {
background-color: #1976d2;
}
.option-button {
display: inline-block;
padding: 10px 15px;
margin: 5px;
background-color: #9c27b0;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 14px;
}
.option-button.green { background-color: #4caf50; }
.option-button.red { background-color: #f44336; }
.option-button.gray { background-color: #9e9e9e; }
.option-button:hover { opacity: 0.9; }
.selection-box {
background-color: #f0f0f0;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin: 10px 0;
font-size: 14px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.selection-box span {
background-color: #e0e0e0;
padding: 5px 10px;
border-radius: 5px;
margin-right: 5px;
}
.selected-item {
display: flex;
align-items: center;
background-color: #e0e0e0;
padding: 5px 10px;
border-radius: 5px;
margin-right: 5px;
}
.selected-item-image {
width: 30px;
height: 30px;
object-fit: cover;
border-radius: 5px;
margin-right: 5px;
}
.submit-button {
padding: 8px 15px;
background-color: #2196f3;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
}
.submit-button:hover {
background-color: #1976d2;
}
.manual-input {
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 14px;
width: 150px;
margin-left: 10px;
}
.dietary-button {
padding: 5px 10px;
margin-right: 5px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
color: white;
}
.dietary-button.green { background-color: #4caf50; }
.dietary-button.red { background-color: #f44336; }
.dietary-button.gray { background-color: #9e9e9e; }
.dietary-button:hover { opacity: 0.9; }
/* Popup Styles */
.description-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.popup-content {
background-color: white;
padding: 20px;
border-radius: 10px;
max-width: 90%;
max-height: 80vh;
overflow-y: auto;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.popup-image {
width: 100px;
height: 100px;
object-fit: cover;
border-radius: 5px;
margin-bottom: 10px;
}
.popup-add-button {
padding: 8px 15px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 10px 5px 0 0;
}
.popup-add-button:hover {
background-color: #45a049;
}
.popup-close-button {
padding: 8px 15px;
background-color: #f44336;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 10px 0 0 5px;
}
.popup-close-button:hover {
background-color: #d32f2f;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.chat-container {
height: 100vh;
margin: 0;
}
.chat-header {
font-size: 16px;
}
.chat-messages {
padding: 5px;
}
.chat-input input, .chat-input button {
padding: 6px;
font-size: 12px;
min-height: 35px;
}
.suggestions-list, .ingredients-list {
max-height: 120px;
}
.suggestions-list img, .ingredients-list img {
width: 50px;
height: 50px;
}
.suggestion-item, .ingredient-item {
margin-right: 10px;
}
.popup-content {
max-width: 85%;
padding: 15px;
}
.popup-image {
width: 80px;
height: 80px;
}
.popup-add-button, .popup-close-button {
padding: 6px 12px;
font-size: 12px;
}
}