/* Component Styles */

/* Input Fields */
input[type="text"],
input[type="date"],
select,
textarea {
    padding: 4px 7px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 15px;
    box-sizing: border-box;
    color: #222;
    background: #fafafa;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    display: block;
}

.date-input {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.4;
    background: #f0f0f0;
    color: #888;
}

#producer, #sauce_for {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

#producer_select {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

.notes-area {
    width: 100%;
    min-height: 100px;
    font-size: 15px;
    margin-top: 6px;
    resize: vertical;
}

/* Table Styles */
.ingredients-table {
    width: 100%;
    border-collapse: separate;
    margin-bottom: 18px;
}

.section-header {
    font-size: 1.15em;
    font-weight: bold;
    color: #222;
    padding: 10px 0 4px 0;
    text-align: left;
    border: none;
}

.section-divider hr {
    border: none;
    border-top: 2px solid #bbb;
    margin: 0 0 6px 0;
}

/* Ingredient name/title column fixed width */
.ingredients-table td:first-child, .ingredients-table th:first-child {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

th, td {
    padding: 0px 1px;
    text-align: left;
    vertical-align: middle;
}

.other-action-cell {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    text-align: center;
}

/* Other row styles */
tr.other-row input[type="text"] {
    width: 100%;
}

tr.other-row input[name$="_other_name[]"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Button Styles */
.submit-btn {
    background-color: #4285f4;
    color: white;
    padding: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #3367d6;
}

.add-other-btn, .remove-other-btn {
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 1.2em;
    cursor: pointer;
    margin: 2px 2px 2px 0;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-other-btn:hover, .remove-other-btn:hover {
    background: #bdbdbd;
} 