body {
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

h1, h2 {
    color: #333;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: bold;
}

#id_selected_recipe {
min-width: 200px;
}

.btn-group {
    display: flex;
}

.btn-group .btn {
    flex: 1;
}
.btn:disabled {
opacity: 0.65;
cursor: not-allowed;
}
#loadRecipePlantsBtn {
    white-space: nowrap;
}

#recipePlantCount {
    margin-left: 5px;
}

.plant-card {
border: 2px solid transparent;
border-radius: 8px;
overflow: hidden;
transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plant-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.plant-card.in-recipe {
    border-color: #ffc107;
}

.card-header {
    padding: 0;
}

.card-layer-bar {
    color: whitesmoke;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card-layer-bar.fruitboom-layer { background-color: #FF6B6B; }
.card-layer-bar.notenboom-layer { background-color: #8B4513; }
.card-layer-bar.boom-layer { background-color: #228B22; }
.card-layer-bar.struik-layer { background-color: #6B8E23; }
.card-layer-bar.kruidlaag-layer { background-color: #32CD32; }
.card-layer-bar.groente-layer { background-color: #ADFF2F; }
.card-layer-bar.bodem-layer { background-color: #8B4513; }
.card-layer-bar.klim-layer { background-color: #DAA520; }
.card-layer-bar.water-layer { background-color: #4682B4; }

/* Styling for additional layer markers */
.layer-marker {
    padding: 2px 4px;
    border-radius: 3px;
    background-color: rgba(255,255,255,0.2);
    font-size: 0.8em;
}

.form-check-label {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.layer-info {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.layer-marker {
    padding: 2px 4px;
    border-radius: 3px;
    background-color: rgba(255,255,255,0.2);
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.plant-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.plant-details strong {
    font-weight: 600;
}
.search-card {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Badge styles for soil types */
.badge-grond {
    color: #fff;
    border: none;
    font-size: 0.8em;
    padding: 0.4em 0.6em;
    margin-right: 0.3em;
    margin-bottom: 0.3em;
    display: inline-block;
    border-radius: 4px;
}
/* Badge styles for pH levels */
.badge-ph {
    color: #000000;
    border: none;
    font-size: 0.8em;
    padding: 0.4em 0.6em;
    margin-right: 0.3em;
    margin-bottom: 0.3em;
    display: inline-block;
    border-radius: 4px;
}
/* Grond badge classes */
.badge-grond-zand { background-color: #FFD700; color: #000; }
.badge-grond-leem { background-color: #8B4513; color: #fff; }
.badge-grond-klei { background-color: #708090; color: #fff; }

/* pH badge classes */
.badge-ph-zuur { background-color: #FF4500; color: #fff; }
.badge-ph-neutraal { background-color: #28a745; color: #fff; }
.badge-ph-basisch { background-color: #1E90FF; color: #fff; }

/* Styles for the search form */
.search-form {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-form .form-control,
.search-form .form-select {
    margin-bottom: 1rem;
}


.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Modal styles */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}
.rating {
font-size: 0.5 em;
letter-spacing: 1px;
}
.rating i {
    margin-right: 1px;
}

/* Eetbaarheid slider (groen) */
#{{ form.min_eetbaar_cijfer.id_for_label }}::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #28a745 0%, #28a745 calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef 100%);
}
#{{ form.min_eetbaar_cijfer.id_for_label }}::-moz-range-track {
    background: linear-gradient(to right, #28a745 0%, #28a745 calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef 100%);
}
#{{ form.min_eetbaar_cijfer.id_for_label }}::-ms-track {
    background: linear-gradient(to right, #28a745 0%, #28a745 calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef 100%);
}

/* Medicinaal slider (rood) */
#{{ form.min_medicinaal_cijfer.id_for_label }}::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #dc3545 0%, #dc3545 calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef 100%);
}
#{{ form.min_medicinaal_cijfer.id_for_label }}::-moz-range-track {
    background: linear-gradient(to right, #dc3545 0%, #dc3545 calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef 100%);
}
#{{ form.min_medicinaal_cijfer.id_for_label }}::-ms-track {
    background: linear-gradient(to right, #dc3545 0%, #dc3545 calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef calc((100% - 1.5em) * var(--range-percent, 0%)), #e9ecef 100%);
}

/* Thumb styling voor beide sliders */
.form-range::-webkit-slider-thumb {
    background: #007bff;
}
.form-range::-moz-range-thumb {
    background: #007bff;
}
.form-range::-ms-thumb {
    background: #007bff;
}
.recipe-checkbox:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.recipe-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
    
#recipe-card {
    position: sticky;
    top: -1px; /* Start slightly off-screen */
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: top 0.3s ease-in-out;
}

#recipe-card.sticky {
    top: 0; /* Bring it fully on-screen when sticky */
}

#main-title, #recipe-title {
    transition: opacity 0.3s ease-in-out;
}

#main-title.hidden, #recipe-title.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
}    

.cultivar-badge {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cultivar-badge:hover {
    background-color: #000000 !important;
}
#cultivarDetailsModalLabel em {
    font-style: italic;
}

#cultivarDetailsModalLabel strong {
    font-weight: bold;
}

/* Styling voor de knoppen in de card footer */
.plant-card .card-footer {
    padding: 0;
    background-color: transparent;
    border-top: none;
}

.plant-card .card-footer .btn-group {
    display: flex;
    width: 100%;
}

.plant-card .card-footer .btn {
    flex: 1;
    border-radius: 0;
    border: none;
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #6c757d;
    padding: 0.5rem 0;
    transition: background-color 0.2s ease-in-out;
}

.plant-card .card-footer .btn:last-child {
    border-right: none;
}

.plant-card .card-footer .btn:hover {
    background-color: #f8f9fa;
}

.plant-card .card-footer .btn:active {
    background-color: #e9ecef;
}

.plant-card .card-footer .btn i {
    font-size: 1.25rem;
}

/* Styling voor de verwijder knop in de header */
.plant-card .card-header .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.plant-card .card-header .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.plant-card .card-header .btn-outline-light:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plant-card {
        margin-bottom: 1rem;
    }
}