body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#logo {
    text-align: center;
    padding: 15px 0;
}
#logo img {
    height: 100px;
}
a {
    color: #c25c5b;
}

.qty-field input {
    max-width: 52px;
}

/* Drag-and-drop styling */
.element-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px 10px;
    background: #fff;
    margin-bottom: 8px;
}

.element-item.dragging {
    opacity: 0.6;
}

.drag-handle {
    cursor: grab;
    font-size: 18px;
    line-height: 1;
    padding: 6px 8px;
    user-select: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px!important;
}

.select2-container {
    width: 100% !important;
}

.drag-handle:active {
    cursor: grabbing;
}
a:hover {
    color: #974e4dff;
}

.btn {
    background-color: #c25c5b !important;
    border: 0;
}

.btn:hover {
    background-color: #974e4dff !important;
}

hr {
    margin: 30px 0;
}

.total-price {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}

.suggested-price {
    margin: 4px 0 12px 0;
    color: #666;
    font-style: italic;
}

.header {
    margin-bottom: 1rem;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    border: 1px solid #ced4da !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    height: 38px !important;
}

/* Select2 hover/highlight color overrides */
.select2-container--default .select2-results__option--selectable:hover,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted {
    background-color: #c25c5b !important;
    color: #fff !important;
}

#cuisson-editor,
#descriptif-editor {
    height: 200px;
}

/* Right align price (€/kg) input on ingredient form */
.price-input {
    text-align: right;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        padding: 15px;
    }
    
    .header .btn {
        font-size: 12px;
    }

    .element-type-select { max-width: 80px; }
    .ingredient-fields { max-width: 127px; }
    td button {
        display: block;
        width: 100%;
        margin: 0 0 10px 0 !important;
    }
    td button:last-child {
        margin: 0 !important;
    }
}
