﻿.create-page .select2-container--default .select2-selection--single {
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

    .create-page .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 24px;
    }

    .create-page .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
        right: 8px;
    }

.create-page .select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

.create-page .select2-container {
    width: 100% !important;
}

.validation-summary-valid {
    display: none;
}

.create-page .select2-container--default .select2-selection--single:focus,
.create-page .select2-container--default.select2-container--focus .select2-selection--single {
    outline: 0;
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.is-invalid {
    border-color: #dc3545 !important;
}

.field-validation-error {
    color: #dc3545;
    font-weight: 600;
}

/* Hero / rubrik */
.text-gradient {
    background: linear-gradient(90deg,#f59f00,#e8590c,#d6336c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.create-hero + .card .card-body {
    padding-top: 1rem;
}

/* Kort och skuggor lite mjukare och färgigare */
.create-page .create-card {
    border: 0;
    box-shadow: 0 1rem 2rem rgba(232,89,12,.08), 0 .25rem .75rem rgba(0,0,0,.06);
    border-radius: 1rem;
}

/* Inputs – färgad focusring */
.create-page .form-control:focus,
.create-page .form-select:focus {
    border-color: #f59f00;
    box-shadow: 0 0 0 .25rem rgba(245,159,0,.25);
}

/* Större känsla på stora fält */
.create-page .form-control-lg {
    padding-top: .8rem;
    padding-bottom: .8rem;
}

/* Knappar – lite mer kontrast */
.create-page .btn-primary,
.create-page .btn-warning {
    border-radius: .75rem;
    font-weight: 700;
    letter-spacing: .2px;
}


.recipe-header h1 {
    display: inline-block; /* gör bakgrunden lagom bred */
    font-size: 1.8rem;
}

.recipe-rules {
    background: #fff;
    border: 1px solid #f8d7a6; /* ljus orange kant */
    border-radius: .5rem;
    padding: .75rem 1rem;
    font-size: 0.95rem;
}

    .recipe-rules li {
        margin-bottom: .5rem;
    }

        .recipe-rules li:last-child {
            margin-bottom: 0;
        }

/* Steps list styling */
#steps-list .step-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}

#steps-list .step-badge {
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffe8cc;
    color: #995200;
    font-weight: 700;
}

#steps-list .step-text {
    flex: 1;
}

#steps-list .step-actions .btn {
    padding: .25rem .5rem;
}

#steps-list .step-editing input {
    width: 100%;
}

.recept-view .badge.text-bg-secondary {
    background: #f1f3f5;
    color: #495057;
    font-weight: 600;
}

.recept-view img {
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

/* Steg 5 – preview i "ReceptView"-stil */
.review-preview .meta-line {
    gap: 1.25rem;
}

.review-preview .review-thumb {
    width: 250px;
    height: 250px;
    object-fit: cover; /* matchar uppladdningsreglerna */
    border-radius: .5rem;
}

.review-ingredients .ing-qty {
    min-width: 64px;
    text-align: center;
}

.review-ingredients .badge {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .review-preview .review-thumb {
        width: 100%;
        height: auto;
    }
}

.create-page {
    max-width: 1120px;
}

.create-page .eyebrow {
    display: inline-block;
    margin-bottom: .55rem;
    color: #a34f00;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.create-page .create-card {
    overflow: hidden;
    background: #fff;
}

.recipe-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 1rem 1.25rem;
    border: 1px solid #ece7df;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .35rem 1.25rem rgba(73, 49, 22, .06);
}

.progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    color: #7a746d;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
}

.progress-step:not(:last-child)::after {
    position: absolute;
    top: 1rem;
    left: calc(50% + 1.35rem);
    width: calc(100% - 2.7rem);
    height: 2px;
    background: #e8e2da;
    content: "";
}

.progress-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 2px solid #d9d2c8;
    border-radius: 50%;
    background: #fff;
}

.progress-step.is-active {
    color: #8c4500;
}

.progress-step.is-active .progress-dot {
    border-color: #e9a23b;
    background: #fff3d6;
    box-shadow: 0 0 0 .25rem rgba(233, 162, 59, .14);
}

.progress-step.is-complete .progress-dot {
    border-color: #2f7d57;
    background: #2f7d57;
    color: #fff;
}

.progress-step.is-complete:not(:last-child)::after {
    background: #83b99e;
}

.form-section + .form-section {
    padding-top: 1.5rem;
    border-top: 1px solid #eee9e2;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.section-number {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3d6;
    color: #8c4500;
    font-weight: 700;
}

.form-hint {
    margin-top: .35rem;
    color: #746e67;
    font-size: .8rem;
}

.contributor-card,
.help-card {
    display: flex;
    gap: .9rem;
    padding: 1.25rem;
    border: 1px solid #ece7df;
    border-radius: 1rem;
    background: #fff;
}

.contributor-card {
    align-items: center;
}

.avatar {
    display: inline-flex;
    min-width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3d6;
    color: #a34f00;
    font-size: 1.35rem;
}

.help-card {
    display: block;
    background: #fbfaf8;
}

.help-card li + li {
    margin-top: .5rem;
}

.submission-note {
    padding: 1rem;
    border: 1px solid #b8dfca;
    border-radius: .75rem;
    background: #eef9f3;
    color: #235c41;
}

.success-state > i {
    color: #2f7d57;
    font-size: 3.5rem;
}

@media (min-width: 992px) {
    .create-page aside {
        position: sticky;
        top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .recipe-progress {
        overflow-x: auto;
        grid-template-columns: repeat(5, minmax(78px, 1fr));
        padding-inline: .75rem;
    }

    .progress-step:not(:last-child)::after {
        left: calc(50% + 1.2rem);
        width: calc(100% - 2.4rem);
    }
}
