body {
    padding-top: 56px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    background-color: #df5341;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.2rem;
}

#langToggle {
    margin-left: auto;
}

.hero {
    background-color: #df5341;
    color: white;
    text-align: center;
    padding: 60px 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.hero .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.hero .btn-primary {
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #ffffff;
    color: #df5341;
    border: none;
}

.hero .btn-primary:hover {
    background-color: #f8f9fa;
    color: #c74836;
}


.input-group {
    max-width: 100%;
    margin: 0 auto;
}

.btn-primary {
    background-color: #df5341;
    border-color: #df5341;
}

.btn-primary:hover {
    background-color: #c74836;
    border-color: #c74836;
}

.recipe-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.recipe-image {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

.recipe-title {
    color: #df5341;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.recipe-meta {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.recipe-meta i {
    color: #df5341;
    margin-right: 0.25rem;
}

.nutrition-info {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.nutrition-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.nutrition-item i {
    color: #df5341;
    margin-right: 0.25rem;
    width: 20px;
}

.ingredients-list,
.instructions-list {
    padding-left: 0;
    list-style-type: none;
}

.instructions-list {
    counter-reset: step-counter;
}

.instructions-list li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    position: relative;
    font-size: 0.9rem;
}

.instructions-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #df5341;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

.help-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.info-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    color: #df5341;
    margin-bottom: 1rem;
}

.info-card ol {
    padding-left: 1.2rem;
}

.info-card li {
    margin-bottom: 0.8rem;
}

.ios-shortcut-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.ios-shortcut-card h4 {
    color: #df5341;
    margin-bottom: 1rem;
}

.footer {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.footer .btn-outline-dark {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.2s ease;
}

.footer .btn-outline-dark:hover {
    background-color: #6c757d;
    color: white;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: fit-content;
    margin: 0 auto;
}

.footer-buttons .btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    min-width: 200px;
}

@media (max-width: 576px) {
    body {
        padding-top: 0;
    }

    .navbar {
        position: relative;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: center;
    }

    .navbar-brand {
        font-size: 1rem;
        margin-right: 0;
        text-align: center;
        padding: 0.5rem 0;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .recipe-meta .row>div {
        margin-bottom: 0.5rem;
    }

    #langToggle {
        margin: 0;
        font-size: 0.9rem;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero .input-group .form-control {
        border-radius: 25px !important;
        width: 100%;
        text-align: center;
    }

    .hero .input-group .btn-primary {
        border-radius: 25px !important;
        width: 100%;
    }

    .info-card,
    .ios-shortcut-card {
        padding: 1rem;
    }

    .footer .mb-3 {
        margin-bottom: 1rem !important;
    }

    .footer-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .footer-buttons .btn {
        width: 100%;
        min-width: unset;
    }
}