added info to meal

This commit is contained in:
2025-10-25 16:17:50 +02:00
parent 38db9c242b
commit b8046c87b9
4 changed files with 465 additions and 57 deletions

View File

@@ -587,6 +587,125 @@ button:hover {
background-color: rgba(255, 255, 255, 0.3);
}
/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-content {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
}
.modal-content h3 {
margin-bottom: 20px;
color: #2c3e50;
}
.edit-form {
display: flex;
flex-direction: column;
gap: 15px;
}
.edit-form .form-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.edit-form .form-group label {
font-weight: 600;
color: #2c3e50;
font-size: 14px;
}
.edit-form .form-group input,
.edit-form .form-group select,
.edit-form .form-group textarea {
padding: 10px;
border: 2px solid #e0e0e0;
border-radius: 5px;
font-size: 14px;
font-family: inherit;
}
.edit-form .form-group input:focus,
.edit-form .form-group select:focus,
.edit-form .form-group textarea:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.edit-form .form-group textarea {
resize: vertical;
min-height: 100px;
}
.modal-buttons {
display: flex;
gap: 10px;
margin-top: 10px;
}
.btn-primary {
flex: 1;
padding: 12px;
background-color: #3498db;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s;
}
.btn-primary:hover {
background-color: #2980b9;
}
.btn-secondary {
flex: 1;
padding: 12px;
background-color: #95a5a6;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s;
}
.btn-secondary:hover {
background-color: #7f8c8d;
}
.edit-btn {
background-color: #f39c12;
}
.edit-btn:hover {
background-color: #e67e22;
}
/* Responsive */
@media (max-width: 768px) {
.container {