/* Form Styles - Dark Mode */

.form-container {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e0e0e0;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #e0e0e0;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: #3a3a3a;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.time-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.nutrition-section {
    background-color: #242424;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
}

.category-section {
    background-color: #242424;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-item {
    display: flex;
    align-items: center;
}

.category-item input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.category-item label {
    font-weight: normal;
    margin-bottom: 0;
}

.button-group {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

/* Login Form Specific */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-form {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.login-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form button {
    width: 100%;
}

/* Ingredient Fields */
.ingredient-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3a3a;
}

.ingredient-row:last-child {
    border-bottom: none;
}

.ingredient-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
    gap: 10px;
    align-items: end;
}

.ingredient-select {
    width: 100%;
}

.delete-ingredient-btn {
    background-color: #f44336;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.delete-ingredient-btn:hover {
    background-color: #da190b;
}
