lokesh341's picture
Update static/styles.css
f41b688 verified
raw
history blame
7.99 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: #0288d1;
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: #e3f2fd;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
max-width: 70%;
word-wrap: break-word;
font-size: 14px;
}
.user-message {
background-color: #ffebee;
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: #ff8f00;
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: #f57c00;
}
.ingredients-list {
max-height: 300px;
overflow-x: auto;
overflow-y: auto;
padding: 10px;
margin: 10px 0;
background-color: #f9f9f9;
border-radius: 5px;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.ingredient-item {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 220px;
background-color: white;
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
}
.ingredient-item:hover {
transform: translateY(-5px);
}
.ingredient-image {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 5px;
margin-bottom: 10px;
}
.ingredient-content {
width: 100%;
}
.ingredient-name {
font-size: 16px;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.menu-item-field {
font-size: 12px;
margin: 3px 0;
color: #555;
}
.menu-item-field strong {
color: #0288d1;
}
.show-desc-button {
padding: 5px 10px;
margin-top: 5px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
width: 100%;
transition: background-color 0.3s;
}
.show-desc-button:hover {
background-color: #45a049;
}
.option-button {
display: inline-block;
padding: 10px 15px;
margin: 5px;
background-color: #7b1fa2;
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: #d32f2f; }
.option-button.gray { background-color: #616161; }
.option-button:hover { background-color: #6a1b9a; }
.selection-box {
background-color: #e1f5fe;
padding: 10px;
border: 1px solid #0288d1;
border-radius: 5px;
margin: 10px 0;
font-size: 14px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.selection-box span {
background-color: #bbdefb;
padding: 5px 10px;
border-radius: 5px;
margin-right: 5px;
}
.selected-item {
display: flex;
align-items: center;
background-color: #bbdefb;
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: #0288d1;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
}
.submit-button:hover {
background-color: #0277bd;
}
.remove-button {
padding: 5px 10px;
margin-left: 5px;
background-color: #d32f2f;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
}
.remove-button:hover {
background-color: #b71c1c;
}
.manual-input {
padding: 5px;
border: 1px solid #0288d1;
border-radius: 5px;
font-size: 14px;
width: 150px;
margin-left: 10px;
}
.quantity-input {
padding: 5px;
border: 1px solid #0288d1;
border-radius: 5px;
font-size: 14px;
width: 60px;
margin-left: 10px;
}
.order-name-input {
padding: 5px;
border: 1px solid #0288d1;
border-radius: 5px;
font-size: 14px;
width: 150px;
margin-left: 10px;
}
.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: #ffffff;
padding: 15px;
border-radius: 8px;
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: 80px;
height: 80px;
object-fit: cover;
border-radius: 5px;
margin-bottom: 10px;
}
.button-container {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 10px;
}
.popup-add-button {
padding: 6px 12px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.popup-add-button:hover {
background-color: #45a049;
}
.popup-close-button {
padding: 6px 12px;
background-color: #d32f2f;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.popup-close-button:hover {
background-color: #b71c1c;
}
.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: #d32f2f; }
.dietary-button.gray { background-color: #616161; }
.dietary-button:hover { opacity: 0.9; }
@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;
}
.ingredients-list {
max-height: 250px;
}
.ingredient-item {
width: 180px;
}
.ingredient-image {
height: 100px;
}
.ingredient-name {
font-size: 14px;
}
.menu-item-field {
font-size: 10px;
}
.show-desc-button {
font-size: 10px;
padding: 4px 8px;
}
.popup-content {
max-width: 85%;
padding: 10px;
}
.popup-image {
width: 60px;
height: 60px;
}
.popup-add-button, .popup-close-button {
padding: 4px 8px;
font-size: 10px;
}
.selection-box {
gap: 5px;
}
.selected-item {
padding: 3px 8px;
}
.remove-button {
padding: 3px 8px;
font-size: 10px;
}
.manual-input, .order-name-input {
width: 120px;
}
.quantity-input {
width: 50px;
}
}