body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 20px;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

h1, h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.input-section input[type="text"],
.input-section input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.input-section button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.input-section button:hover {
    background-color: #0056b3;
}

.list-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#ingredientList {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 20px;
}

#ingredientList li {
    background-color: #f9f9f9;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ingredientList li:last-child {
    border-bottom: none;
}

#ingredientList li span {
    color: #333;
}

#ingredientList li .ingredient-details {
    flex-grow: 1;
}

#ingredientList li .ingredient-cost {
    font-weight: bold;
    color: #28a745;
    min-width: 80px;
    text-align: right;
}

.costs-summary {
    text-align: right;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid #007bff;
}

.total-cost, .final-sale-cost, .total-investment {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.total-cost span {
    color: #dc3545;
    font-weight: bold;
}

.final-sale-cost span {
    color: #007bff;
    font-weight: bold;
}

.total-investment span {
    color: #ff8c00;
    font-weight: bold;
}

/* Estilos para las secciones de gastos y ganancia */
.profit-section, .expense-section {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px; /* Espacio entre el input y el valor calculado */
}

.equilibrio-section
{
    margin-right: 80px;
}

.profit-section label, .expense-section label {
    margin-right: 0; /* Ya no necesitamos este margen */
    font-weight: normal;
}

.profit-section input[type="number"], .expense-section input[type="number"] {
    width: 80px;
    text-align: right;
    margin-bottom: 0;
}

.calculated-value {
    font-size: 16px;
    color: #666;
    min-width: 70px; /* Asegura que el valor tenga espacio */
    text-align: left;
}