﻿:root {
    --background-color: #f8f8f8;
    --border-color: #ebecec;
    --bs-primary-rgb: 155, 77, 202;
    --comment-background: #eae5f2;
    --delete-button-color: #d9534f;
    --delete-button-hover: #c9302c;
    --disabled-button-color: #ccc;
    --hover-color: #7d33b0;
    --hover-secondary-color: #cc3d3d;
    --primary-color: #9b4dca;
    --reply-background: #f4f0f9;
    --secondary-color: #ff4d4d;
    --text-color: #333
}

@font-face {
    font-family: 'Aptos';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/aptos-regular.ttf') format('truetype')
}

body {
    font-family: 'Aptos', sans-serif;
    margin-bottom: 3.75rem
}

.home-page {
    --season-glow-core: rgba(255, 216, 110, 0.5);
    --season-glow-mid: rgba(255, 216, 110, 0.22);
    --season-glow-soft: rgba(255, 216, 110, 0.08);
    --season-overlay-start: rgba(255, 248, 220, 0.14);
    --season-overlay-end: rgba(248, 248, 248, 0);
    --season-leaf-icon: url('/icons/leaf-autumn.svg');
    --season-leaf-light: #b8d986;
    --season-leaf-dark: #79b86c;
    --season-herb-light: #dbeea7;
    --season-herb-dark: #94c973;
    --season-seed-light: #d4b483;
    --season-seed-dark: #a47148;
    --season-lentil-light: #f8c471;
    --season-lentil-mid: #d68910;
    --season-lentil-dark: #a04000;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    top: -1rem;
}

.home-page::before {
    content: "";
    position: absolute;
    top: -16rem;
    left: 50%;
    width: min(70rem, 120vw);
    height: min(70rem, 120vw);
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--season-glow-core) 0%, var(--season-glow-mid) 28%, var(--season-glow-soft) 48%, rgba(255, 255, 255, 0) 72%);
    filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -2;
}

.home-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--season-overlay-start) 0%, var(--season-overlay-end) 35%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.home-page.monthly-theme::before,
.home-page.monthly-theme::after {
    opacity: 1;
}

.home-page.theme-january {
    --season-leaf-icon: url('/icons/leaf-winter.svg');
    --season-glow-core: rgba(210, 232, 255, 0.44);
    --season-glow-mid: rgba(210, 232, 255, 0.18);
    --season-glow-soft: rgba(210, 232, 255, 0.07);
    --season-overlay-start: rgba(235, 244, 255, 0.12);
    --season-leaf-light: #c8d9d1;
    --season-leaf-dark: #7c9a97;
    --season-seed-light: #c7b39a;
    --season-seed-dark: #90765e;
}

.home-page.theme-february {
    --season-leaf-icon: url('/icons/leaf-winter.svg');
    --season-glow-core: rgba(242, 220, 235, 0.42);
    --season-glow-mid: rgba(242, 220, 235, 0.18);
    --season-glow-soft: rgba(242, 220, 235, 0.07);
    --season-overlay-start: rgba(248, 233, 241, 0.12);
    --season-leaf-light: #c3d8b2;
    --season-leaf-dark: #8aa06f;
}

.home-page.theme-march {
    --season-leaf-icon: url('/icons/leaf-spring.svg');
    --season-glow-core: rgba(214, 237, 197, 0.42);
    --season-glow-mid: rgba(214, 237, 197, 0.18);
    --season-glow-soft: rgba(214, 237, 197, 0.07);
    --season-overlay-start: rgba(235, 246, 225, 0.12);
    --season-leaf-light: #c7ec9a;
    --season-leaf-dark: #78b857;
}

.home-page.theme-april {
    --season-leaf-icon: url('/icons/leaf-spring.svg');
    --season-glow-core: rgba(255, 222, 209, 0.42);
    --season-glow-mid: rgba(255, 222, 209, 0.18);
    --season-glow-soft: rgba(255, 222, 209, 0.07);
    --season-overlay-start: rgba(255, 239, 232, 0.14);
    --season-leaf-light: #b8e58c;
    --season-leaf-dark: #5fa84f;
}

.home-page.theme-may {
    --season-leaf-icon: url('/icons/leaf-spring.svg');
    --season-glow-core: rgba(255, 214, 228, 0.44);
    --season-glow-mid: rgba(255, 214, 228, 0.19);
    --season-glow-soft: rgba(255, 214, 228, 0.08);
    --season-overlay-start: rgba(255, 235, 242, 0.15);
    --season-leaf-light: #bfe4a5;
    --season-leaf-dark: #6fb46b;
}

.home-page.theme-june,
.home-page.theme-july,
.home-page.theme-august {
    --season-leaf-icon: url('/icons/leaf-summer.svg');
    --season-glow-core: rgba(255, 216, 110, 0.5);
    --season-glow-mid: rgba(255, 216, 110, 0.22);
    --season-glow-soft: rgba(255, 216, 110, 0.08);
    --season-overlay-start: rgba(255, 248, 220, 0.14);
    --season-leaf-light: #d4ec8b;
    --season-leaf-dark: #79b86c;
    --season-herb-light: #e7f5b3;
    --season-herb-dark: #8cc46b;
}

.home-page.theme-september {
    --season-leaf-icon: url('/icons/leaf-autumn.svg');
    --season-glow-core: rgba(244, 198, 125, 0.46);
    --season-glow-mid: rgba(244, 198, 125, 0.2);
    --season-glow-soft: rgba(244, 198, 125, 0.08);
    --season-overlay-start: rgba(251, 237, 215, 0.14);
    --season-leaf-light: #cfd27a;
    --season-leaf-dark: #909a4f;
    --season-seed-light: #d8b46b;
    --season-seed-dark: #a17138;
}

.home-page.theme-october {
    --season-leaf-icon: url('/icons/leaf-autumn.svg');
    --season-glow-core: rgba(232, 157, 83, 0.44);
    --season-glow-mid: rgba(232, 157, 83, 0.18);
    --season-glow-soft: rgba(232, 157, 83, 0.08);
    --season-overlay-start: rgba(248, 225, 204, 0.13);
    --season-leaf-light: #f0bb63;
    --season-leaf-dark: #c46a2d;
    --season-seed-light: #dda35d;
    --season-seed-dark: #965529;
}

.home-page.theme-november {
    --season-leaf-icon: url('/icons/leaf-autumn.svg');
    --season-glow-core: rgba(190, 164, 134, 0.34);
    --season-glow-mid: rgba(190, 164, 134, 0.14);
    --season-glow-soft: rgba(190, 164, 134, 0.06);
    --season-overlay-start: rgba(236, 229, 220, 0.1);
    --season-leaf-light: #c8aa7a;
    --season-leaf-dark: #8f6a4f;
    --season-seed-light: #c6a07c;
    --season-seed-dark: #7a5a45;
}

.home-page.theme-december {
    --season-leaf-icon: url('/icons/leaf-winter.svg');
    --season-glow-core: rgba(206, 232, 255, 0.62);
    --season-glow-mid: rgba(206, 232, 255, 0.28);
    --season-glow-soft: rgba(206, 232, 255, 0.1);
    --season-overlay-start: rgba(236, 246, 255, 0.18);
    --season-seed-light: #d7dfeb;
    --season-seed-dark: #93a7bf;
}

.home-hero {
    position: relative;
    padding: 2rem 1rem 1.5rem;
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.seasonal-particles {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.home-page.monthly-theme .seasonal-particles {
    display: block;
}

.seasonal-particle {
    position: absolute;
    display: block;
    transform: translate3d(0, 0, 0) rotate(var(--seasonal-rotation, 0deg));
    animation: seasonalParticleFall linear infinite;
}

.seasonal-particle.icon-particle {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.seasonal-particle.lentil {
    width: 0.95rem;
    height: 1.25rem;
    background-image: url('/icons/lentil.svg');
}

.seasonal-particle.leaf-spring,
.seasonal-particle.leaf-summer,
.seasonal-particle.leaf-autumn,
.seasonal-particle.leaf-winter {
    width: 1rem;
    height: 1.45rem;
}

.seasonal-particle.leaf-spring {
    background-image: url('/icons/leaf-spring.svg');
}

.seasonal-particle.leaf-summer {
    background-image: url('/icons/leaf-summer.svg');
}

.seasonal-particle.leaf-autumn {
    background-image: url('/icons/leaf-autumn.svg');
}

.seasonal-particle.leaf-winter {
    background-image: url('/icons/leaf-winter.svg');
}

.seasonal-particle.herb {
    width: 0.8rem;
    height: 1.2rem;
    background-image: url('/icons/herb.svg');
}

.seasonal-particle.seed {
    width: 1.1rem;
    height: 1.1rem;
    background-image: url('/icons/seed.svg');
}

.seasonal-particle.flower-1,
.seasonal-particle.flower-2,
.seasonal-particle.flower-3,
.seasonal-particle.flower-4,
.seasonal-particle.flower-5 {
    width: 1rem;
    height: 1rem;
}

.seasonal-particle.flower-1 {
    background-image: url('/icons/flower-1.svg');
}

.seasonal-particle.flower-2 {
    background-image: url('/icons/flower-2.svg');
}

.seasonal-particle.flower-3 {
    background-image: url('/icons/flower-3.svg');
}

.seasonal-particle.flower-4 {
    background-image: url('/icons/flower-4.svg');
}

.seasonal-particle.flower-5 {
    background-image: url('/icons/flower-5.svg');
}

.seasonal-particle.blossom-1,
.seasonal-particle.blossom-2,
.seasonal-particle.blossom-3 {
    width: 0.95rem;
    height: 0.95rem;
}

.seasonal-particle.blossom-1 {
    background-image: url('/icons/blossom-1.svg');
}

.seasonal-particle.blossom-2 {
    background-image: url('/icons/blossom-2.svg');
}

.seasonal-particle.blossom-3 {
    background-image: url('/icons/blossom-3.svg');
}

.seasonal-particle.snowflake-1,
.seasonal-particle.snowflake-2,
.seasonal-particle.snowflake-3 {
    width: 0.9rem;
    height: 0.9rem;
}

.seasonal-particle.snowflake-1 {
    background-image: url('/icons/snowflake-1.svg');
}

.seasonal-particle.snowflake-2 {
    background-image: url('/icons/snowflake-2.svg');
}

.seasonal-particle.snowflake-3 {
    background-image: url('/icons/snowflake-3.svg');
}

@keyframes seasonalParticleFall {
    0% {
        transform: translate3d(0, -10%, 0) rotate(var(--seasonal-rotation, 0deg));
    }

    50% {
        transform: translate3d(calc(var(--seasonal-drift, 0px) * 0.55), calc(var(--seasonal-fall-distance, 100vh) * 0.5), 0) rotate(calc(var(--seasonal-rotation, 0deg) + 120deg));
    }

    100% {
        transform: translate3d(var(--seasonal-drift, 0px), var(--seasonal-fall-distance, 120vh), 0) rotate(calc(var(--seasonal-rotation, 0deg) + 240deg));
    }
}

@media (max-width: 767px) {
    .home-page::before {
        top: -10rem;
        width: min(50rem, 145vw);
        height: min(50rem, 145vw);
    }

    .home-hero {
        padding-top: 1.5rem;
        padding-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seasonal-particles {
        display: none !important;
    }

    .home-page::before {
        filter: none;
    }
}

button[disabled] {
    background-color: #ccc;
    cursor: not-allowed
}

div a {
    color: blue;
    cursor: pointer;
    text-decoration: underline
}

h2 {
    color: #333;
    margin-bottom: 1.25rem
}

html {
    font-size: 1rem;
    min-height: 100%;
    position: relative
}

/* Flexbox Form Container */
.form-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.form-card {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form-width {
    max-width: 420px;
}

/* Form Group Spacing */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        margin-bottom: 0.5rem;
        font-weight: 500;
        display: block;
    }

    .form-group input:not([type="checkbox"]):not([type="radio"]),
    .form-group select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
    }

        .form-group input:not([type="checkbox"]):not([type="radio"]):focus,
        .form-group select:focus {
            outline: none;
            border-color: #9b4dca;
            box-shadow: 0 0 0 3px rgba(155, 77, 202, 0.1);
        }

    .form-group input::placeholder,
    .form-group select::placeholder {
        color: #bbb;
        opacity: 1; /* Override default opacity for Firefox */
    }

    .form-group input:-ms-input-placeholder {
        color: #bbb;
    }

    .form-group input::-ms-input-placeholder {
        color: #bbb;
    }

/* Alert Box */
.alert {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #d1ecf1;
}

/* Button Styling */
.btn {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.btn-primary {
    background-color: #9b4dca;
    color: white;
}

    .btn-primary:hover {
        background-color: #7d33b0;
    }

    .btn-primary:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #5a6268;
    }

    .btn-secondary:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

/* Responsive Design */
/* Tablet (768px and up) */
@media (min-width: 768px) {
    .home-hero {
        padding-top: 2.75rem;
        padding-bottom: 2rem;
    }

    .form-container {
        padding: 3rem 2rem;
        min-height: calc(100vh - 150px);
    }

    .form-card {
        padding: 2.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    h1 {
        margin-bottom: 2rem;
        text-align: center;
    }

    .btn {
        width: auto;
        display: inline-block;
        min-width: 120px;
    }
}

/* Mobile (less than 768px) */
@media (max-width: 767px) {
    .home-hero {
        padding-top: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .home-page::before {
        top: -10rem;
        width: min(50rem, 145vw);
        height: min(50rem, 145vw);
    }

    .form-container {
        padding: 1rem;
        min-height: auto;
        align-items: stretch;
    }

    .form-card {
        padding: 1.5rem;
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .form-group {
        margin-bottom: 1rem;
    }

        .form-group input,
        .form-group select {
            padding: 0.625rem;
            font-size: 16px; /* Prevents zoom on iOS */
        }

        .form-group label {
            font-size: 0.95rem;
        }

    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

        .alert ul {
            margin-left: 1rem;
        }

        .alert li {
            margin-bottom: 0.5rem;
        }

    .btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Character count on mobile */
    #charCount {
        font-size: 0.85rem;
    }

    /* Validation feedback text */
    .form-text {
        font-size: 0.85rem;
        display: block;
        margin-top: 0.25rem;
    }
}

/* Small phones (less than 480px) */
@media (max-width: 479px) {
    .seasonal-particle {
        transform-origin: center;
    }

    .form-container {
        padding: 0.5rem;
    }

    .form-card {
        padding: 1rem;
        border-radius: 4px;
    }

    h1 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

        .form-group label {
            font-size: 0.9rem;
            margin-bottom: 0.375rem;
        }

        .form-group input,
        .form-group select {
            padding: 0.5rem;
            font-size: 16px;
        }

    .alert {
        padding: 0.625rem;
        font-size: 0.85rem;
    }

        .alert strong {
            display: block;
            margin-bottom: 0.5rem;
        }

        .alert ul {
            padding-left: 1.25rem;
        }

        .alert li {
            margin-bottom: 0.375rem;
            font-size: 0.8rem;
        }

    .btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    /* Flex container adjustments */
    .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

        .d-flex > input {
            flex: 1 !important;
        }
}

/* Extra large screens (1200px and up) */
@media (min-width: 1200px) {
    .form-container {
        padding: 4rem 2rem;
    }

    .form-card {
        max-width: 550px;
        padding: 3rem;
    }

    h1 {
        margin-bottom: 2.5rem;
        font-size: 2.5rem;
    }
}

table {
    border-spacing: 0;
    border: none;
    table-layout: fixed;
    width: 100%
}

    table tr > td, table tr > th {
        border-bottom: 0.125rem solid var(--border-color);
        padding: 1rem;
        text-align: left;
        align-content: center;
    }

textarea {
    border-radius: 0.5rem;
    border: 0.0625rem solid #ddd;
    height: 9.375rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    width: 100%
}

#cancelReply {
    background-color: var(--secondary-color);
    border-radius: 1.5625rem;
    border: none;
    color: white;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem
}

    #cancelReply:hover {
        background-color: var(--hover-secondary-color)
    }

#comments {
    margin-top: 1.5rem
}

.password-strength-container {
    margin-top: 0.5rem;
}

.password-strength-bar {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    height: 0.5rem;
    overflow: hidden;
    width: 100%;
}

.password-strength-fill {
    background-color: #dc3545;
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0%;
}

.password-strength-text {
    display: block;
    margin-top: 0.25rem;
}

#matchText {
    display: block;
    margin-top: 0.25rem;
}

    #matchText.match-success {
        color: #28a745;
    }

    #matchText.match-error {
        color: #dc3545;
    }

#selectedTags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem
}

#tagSearchInput {
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
    min-width: 30rem;
    padding: 0.5rem
}

.account-form-group {
    margin-bottom: 1rem;
    margin-top: 1rem
}

.add-comment-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem
}

.addBadgeButton {
    margin: 0.5rem 0
}

.addBadgeButton, .addIngredientButton, .addPartButton, .addStepButton, .addTagButton, .addToolButton {
    background-color: lightgreen;
    border-radius: 0.25rem;
    border: none;
    font-size: 1.125rem;
    margin-top: 0.5rem;
    padding: 0.375rem 0.625rem
}

    .addBadgeButton:hover, .addIngredientButton:hover, .addPartButton:hover, .addStepButton:hover, .addTagButton:hover, .addToolButton:hover {
        background-color: #d0d0d0
    }

.addPartButton {
    margin-bottom: 1rem
}

.addTagButton {
    margin: 0.5rem 0
}

.addToolButton {
    margin: 0.5rem 0
}

.recipe-edit-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

    .recipe-edit-actions .c-button {
        width: auto;
    }

.alphabet-nav {
    background-color: var(--primary-color);
    border-bottom: 0.063rem solid lightgray;
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
    width: 100%;
    z-index: 998
}

    .alphabet-nav a {
        color: white;
        font-size: 1.5rem;
        padding: 0.5rem;
        text-decoration: none
    }

        .alphabet-nav a:hover {
            text-decoration: underline;
            transform: scale(1.2)
        }

.alphabet-section {
    border-bottom: 0.063rem solid lightgray;
    margin-top: 2rem;
    text-align: center
}

.auto-width {
    width: auto !important
}

.badge-dark {
    color: black
}

.badge-inline button, .badge-inline input, .season-inline button, .season-inline input, .tag-inline button, .tag-inline input, .tool-inline button, .tool-inline input {
    margin: 0;
    padding: 0.3125rem
}

    .badge-inline input, .season-inline input, .tag-inline input, .tool-inline input[name*="Quantity"] {
        margin: 0;
        padding: 0.3125rem
    }

.badge-inline, .season-inline, .tag-inline, .tool-inline {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    margin: 0.5rem 0
}

.breadcrumb {
    gap: 0.5rem
}

    .breadcrumb a {
        color: #007bff;
        text-decoration: none
    }

        .breadcrumb a:hover {
            text-decoration: underline
        }

    .breadcrumb span {
        font-weight: bold
    }

.breadcrumb-item {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity,1));
    font-size: 1rem
}

.btn-link.nav-link:focus, .btn:active:focus, .btn:focus, .form-check-input:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb
}

.button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%
}

.c-button {
    align-items: center;
    border-radius: 3.125rem;
    border: 0.125rem solid var(--primary-color);
    color: black;
    display: inline-flex;
    justify-content: center;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap
}

.c-button-oval {
    background-color: var(--primary-color);
    border-radius: 1.5625rem;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 0.8rem 2rem;
    transition: background-color 0.3s ease
}

    .c-button-oval:hover {
        background-color: var(--hover-color)
    }

.c-button:focus {
    outline: 0.1875rem solid #258cfb
}

.c-button:hover {
    background-color: #800080;
    color: white;
    transform: scale(1.05)
}

.c-recipe-badge {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    margin: 0.5rem 0
}

    .c-recipe-badge button, .c-recipe-badge input {
        margin: 0;
        padding: 0.3125rem
    }

.c-recipe-comments {
    background: linear-gradient(180deg, #fbf7fc 0%, #ffffff 100%);
    border: 1px solid rgba(128, 0, 128, 0.12);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08);
    margin-top: 1rem;
    padding: 2rem
}

    .c-recipe-comments h2 {
        color: var(--primary-color);
        font-weight: bold;
        margin-bottom: 0.5rem
    }

.recipe-comments-header {
    margin-bottom: 1.5rem;
}

    .recipe-comments-header p {
        color: #5f5f72;
        margin: 0;
    }

.recipe-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recipe-comment-empty {
    background-color: #fff;
    border: 1px dashed rgba(128, 0, 128, 0.2);
    border-radius: 0.75rem;
    color: #5f5f72;
    padding: 1rem 1.25rem;
}

.c-recipe-content {
    display: grid;
    grid-template-areas: "ingredients instructions";
    grid-template-columns: 40% 60%;
    grid-template-rows: auto 1fr
}

.c-recipe-content-box {
    padding: 1rem
}

.encyclopedia-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.encyclopedia-detail-card {
    align-items: start;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.encyclopedia-detail-image {
    border-radius: 0.75rem;
    max-width: 18rem;
    width: 100%;
}

.encyclopedia-detail-description {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 55rem;
    width: 100%;
}

.ingredient-nutrition {
    align-items: stretch;
}

.ingredient-nutrition-header,
.ingredient-nutrition-list {
    width: 100%;
}

.ingredient-nutrition-title {
    margin: 0;
}

.ingredient-nutrition-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ingredient-nutrition-item {
    align-items: baseline;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 0.75rem;
}

    .ingredient-nutrition-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.ingredient-nutrition-label,
.ingredient-nutrition-value {
    font-size: 1.05rem;
}

.ingredient-nutrition-value {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.ingredient-nutrition-source {
    color: #5f5f72;
    margin: 0;
}

.ingredient-food-group {
    background: rgba(128, 0, 128, 0.08);
    border-radius: 999px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    padding: 0.45rem 0.9rem;
}

.encyclopedia-structured-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.encyclopedia-structured-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.encyclopedia-structured-heading {
    margin: 0;
}

.encyclopedia-structured-paragraph {
    margin: 0;
}

.encyclopedia-structured-list {
    margin: 0;
    padding-left: 1.5rem;
}

    .encyclopedia-structured-definition-list li + li,
    .encyclopedia-structured-list li + li {
        margin-top: 0.4rem;
    }

.encyclopedia-structured-empty {
    color: #666;
    font-style: italic;
    margin: 0;
}

.draft-lookup-admin {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.draft-lookup-intro {
    align-items: flex-start;
    justify-content: space-between;
}

.draft-lookup-intro-copy,
.draft-lookup-format-guide {
    width: 100%;
}

.draft-lookup-import,
.draft-lookup-import-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .draft-lookup-intro-copy h2,
    .draft-lookup-format-guide h3 {
        margin-bottom: 0.75rem;
    }

.draft-lookup-eyebrow {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.draft-lookup-format-list {
    margin: 0;
    padding-left: 1.25rem;
}

    .draft-lookup-format-list li + li {
        margin-top: 0.5rem;
    }

.draft-lookup-filter .btn,
.draft-lookup-toolbar .btn,
.draft-lookup-save {
    width: auto;
}

.draft-lookup-columns {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.draft-lookup-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.draft-lookup-column-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

    .draft-lookup-column-header h2 {
        margin: 0;
    }

.draft-lookup-count {
    font-size: 0.95rem;
}

.draft-lookup-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.06);
    overflow: hidden;
}

    .draft-lookup-item[open] {
        box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.1);
    }

.draft-lookup-item-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 1rem 1.25rem;
}

    .draft-lookup-item-summary::-webkit-details-marker {
        display: none;
    }

.draft-lookup-item-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.draft-lookup-item-subtitle {
    color: #666;
    display: block;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.draft-lookup-item-form {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem;
}

.draft-lookup-editor-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
}

.draft-lookup-editor-panel,
.draft-lookup-preview-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.draft-lookup-field {
    margin-bottom: 0;
}

    .draft-lookup-field textarea {
        min-height: 18rem;
        resize: vertical;
    }

.draft-lookup-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.draft-lookup-upload-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .draft-lookup-upload-row .form-control {
        flex: 1 1 16rem;
    }

.draft-lookup-upload-status {
    min-height: 1.5rem;
}

.draft-lookup-error-list {
    margin: 0;
    padding-left: 1.25rem;
}

    .draft-lookup-error-list li + li {
        margin-top: 0.35rem;
    }

.draft-lookup-check {
    margin-bottom: 0.25rem;
}

.draft-lookup-preview-title {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.draft-lookup-preview-card {
    align-items: stretch;
    min-height: 100%;
}

.draft-lookup-preview-image {
    aspect-ratio: 4 / 3;
    background: #f2f2f2;
    object-fit: cover;
}

.draft-lookup-preview-description {
    max-width: none;
}

.scroller-wrapper {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.scroller-list {
    display: flex;
    gap: 0.5rem;
    min-height: 20rem;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
    justify-content: flex-start;
}

.scroller-arrow {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 0 1rem;
}

.scroller-loading {
    color: #888;
    font-size: 1.2rem;
    margin: auto;
}

.encyclopedia-related-scroller .scroller-list {
    overflow-x: auto;
    overflow-y: hidden;
}

.encyclopedia-scroller-arrow {
    font-size: 1.5rem;
    padding: 0 0.75rem;
}

.encyclopedia-related {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.encyclopedia-section-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

    .encyclopedia-section-header h2 {
        margin: 0;
    }

.encyclopedia-related-empty {
    color: #666;
}

.encyclopedia-related-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.encyclopedia-related-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .encyclopedia-related-card:hover {
        box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.12);
        transform: translateY(-0.125rem);
    }

.encyclopedia-related-card-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.encyclopedia-related-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.encyclopedia-related-card-title {
    font-size: 1rem;
    margin: 0;
}

.encyclopedia-related-card-time {
    color: #666;
    margin: 0;
}

.encyclopedia-slider-controls {
    display: flex;
    gap: 0.5rem;
}

.encyclopedia-slider-button {
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.08);
    color: var(--text-color);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.5rem;
    justify-content: center;
    padding: 0;
    width: 2.5rem;
}

.encyclopedia-slider-track {
    display: grid;
    gap: 1rem;
    grid-auto-columns: minmax(12rem, 15rem);
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.encyclopedia-slider-card {
    min-height: 100%;
}

.c-recipe-create-badges, .c-recipe-create-season, .c-recipe-create-tags, .c-recipe-create-tools {
    margin-top: 1rem
}

.c-recipe-create-element {
    display: flex;
    font-weight: bold;
    gap: 0.8rem;
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.5rem
}

    .c-recipe-create-element img {
        height: 2rem;
        margin-right: 0.5rem;
        width: 2rem
    }

.c-recipe-create-parts {
    margin-top: 1rem
}

.c-recipe-create-season {
    margin-top: 1rem
}

.c-recipe-create-tags {
    display: flex;
    flex-direction: column;
    margin: 1rem 0
}

.c-recipe-description {
}

    .c-recipe-description.empty {
        color: #aaa
    }

.c-recipe-image {
    align-items: flex-end;
    display: flex;
    height: 100%;
    justify-content: center;
    order: 2;
    overflow: hidden
}

    .c-recipe-image img {
        display: block;
        height: auto;
        object-fit: contain;
        width: 100%
    }

.c-recipe-image-ratio-holder {
    display: block;
    padding-top: 70%
}

.c-recipe-ingredient {
    display: flex;
    gap: 0.8rem
}

.c-recipe-ingredient-item {
    align-items: center;
    background-color: #ffffff;
    border-radius: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    padding: 0.5rem;
    position: relative
}

    .c-recipe-ingredient-item.checked .ingredient-checkbox {
        background-color: #4caf50;
        border-color: #4caf50
    }

        .c-recipe-ingredient-item.checked .ingredient-checkbox::after {
            color: white;
            content: "✔";
            font-size: 0.75rem
        }

.c-recipe-ingredient:last-child, .c-recipe-step-li:last-child {
    border-bottom: none
}

.c-recipe-ingredients {
    background-color: var(--primary-color)
}

.c-recipe-part-group {
    margin-bottom: 1rem
}

    .c-recipe-part-group h5, .c-recipe-instructions h3 {
        font-weight: bold
    }

    .c-recipe-part-group th span {
        font-weight: normal
    }

.c-recipe-ingredients-inner {
    background-color: var(--light-purple);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    padding: 0 1rem
}

.c-recipe-ingredients-list {
    list-style-type: decimal;
    list-style-type: none;
    list-style: none;
    margin: 0;
    padding-left: 1.25rem;
    padding-top: 0;
    padding: 0
}

    .c-recipe-ingredients-list li {
        cursor: pointer;
        font-size: 1rem;
        transition: color 0.3s ease;
        white-space: normal;
        word-wrap: break-word
    }

        .c-recipe-ingredients-list li:first-child {
            border-top-left-radius: 1rem;
            border-top-right-radius: 1rem
        }

        .c-recipe-ingredients-list li:hover {
            color: #555
        }

        .c-recipe-ingredients-list li:last-child {
            border-bottom-left-radius: 1rem;
            border-bottom-right-radius: 1rem
        }

.c-recipe-ingredients-title {
    font-weight: bold;
    margin-bottom: 1.5rem
}

.c-recipe-instructions {
    grid-area: instructions
}

.c-recipe-intro {
    display: grid;
    overflow: hidden;
    width: 100%
}

.c-recipe-intro-wrap {
    position: relative
}

.c-recipe-part {
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    border: 0.0625rem solid #ddd;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
    margin-bottom: 1.25rem;
    padding: 1rem
}

    .c-recipe-part h4 {
        color: #333;
        font-size: 1.2rem;
        margin-top: 0
    }

.c-recipe-rating {
    margin: 0.5rem
}

.logs-toolbar-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(14rem, 20rem) minmax(16rem, 1fr) auto;
}

.logs-toolbar-actions {
    align-items: end;
    display: flex;
}

.logs-toolbar-actions .btn {
    width: auto;
}

.logs-summary {
    color: #666;
}

.logs-viewer-card {
    min-height: 32rem;
}

.logs-content {
    background-color: #111827;
    border-radius: 0.75rem;
    color: #f9fafb;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-height: 70vh;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 991px) {
    .logs-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .logs-toolbar-actions {
        align-items: stretch;
    }
}

.c-recipe-related-recipes {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4,1fr);
    padding: 1.25rem
}

    .c-recipe-related-recipes .recipe-card {
        border: 0.063rem solid #ccc;
        padding: 0.625rem;
        text-align: center;
        transition: box-shadow 0.3s ease
    }

        .c-recipe-related-recipes .recipe-card img {
            height: auto;
            transition: transform 0.3s ease;
            width: 100%
        }

            .c-recipe-related-recipes .recipe-card img:hover {
                transform: scale(1.1)
            }

    .c-recipe-related-recipes .recipe-card-link {
        color: inherit;
        text-decoration: none
    }

        .c-recipe-related-recipes .recipe-card-link:hover {
            text-decoration: none;
            transform: scale(1.05)
        }

    .c-recipe-related-recipes .recipe-card:hover {
        box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1)
    }

.c-recipe-step {
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease
}

    .c-recipe-step:focus-visible,
    .c-recipe-ingredient-item:focus-visible,
    .c-recipe-tool-item:focus-visible,
    .toggle-comment-form:focus-visible {
        outline: 0.125rem solid var(--primary-color);
        outline-offset: 0.125rem;
    }

    .c-recipe-step.strikethrough {
        color: lightgray;
        text-decoration: line-through
    }

    .c-recipe-step:hover {
        color: lightgray
    }

.c-recipe-steps {
    box-sizing: border-box;
    font-size: 1.125rem;
    line-height: 1.5;
    width: 100%
}

    .c-recipe-steps h5, .c-recipe-steps-label h3 {
        font-weight: bold;
        padding: 0
    }

.c-recipe-steps-label {
    margin-bottom: 1.5rem
}

.c-recipe-tag {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    margin: 0.5rem 0
}

    .c-recipe-tag button, .c-recipe-tag input {
        margin: 0;
        padding: 0.3125rem
    }

.c-recipe-title {
    font-weight: bold
}

.recipe-tag-link-content {
    display: block
}

.c-recipe-tool {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    margin: 0.5rem 0
}

    .c-recipe-tool button, .c-recipe-tool input {
        margin: 0;
        padding: 0.3125rem
    }

        .c-recipe-tool input[name*="Quantity"] {
            width: 5rem
        }

.c-recipe-tool-item {
    align-items: center;
    background-color: #ffffff;
    border-radius: 0.25rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    padding: 0.5rem;
    position: relative
}

    .c-recipe-tool-item.checked .tool-checkbox {
        background-color: #4caf50;
        border-color: #4caf50
    }

        .c-recipe-tool-item.checked .tool-checkbox::after {
            color: white;
            content: "✔";
            font-size: 0.75rem
        }

.c-recipe-tools {
    padding-top: 0 !important
}

.c-recipe-tools-group {
}

    .c-recipe-tools-group h5 {
        font-weight: bold
    }

.c-recipe-tools-inner {
    background-color: var(--light-purple);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column
}

.c-recipe-tools-list {
    list-style: none;
    margin: 0;
    padding: 0
}

    .c-recipe-tools-list li {
        cursor: pointer;
        font-size: 1rem;
        transition: color 0.3s ease;
        white-space: normal;
        word-wrap: break-word
    }

        .c-recipe-tools-list li:first-child {
            border-top-left-radius: 1rem;
            border-top-right-radius: 1rem
        }

        .c-recipe-tools-list li:hover {
            color: #555
        }

        .c-recipe-tools-list li:last-child {
            border-bottom-left-radius: 1rem;
            border-bottom-right-radius: 1rem
        }

.c-recipe-tools-title {
    font-weight: bold;
    margin-bottom: 1.5rem
}

.card-img-overlay {
    background: rgba(155,77,202,0.5);
    border-radius: initial;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.25rem;
    text-shadow: 0.0625rem 0.0625rem 0.125rem black;
    top: auto
}

.card-text-overlay {
    background-color: rgba(155,77,202,0.5);
    bottom: 0;
    color: #fff;
    font-size: 1.5rem;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center
}

.scroller-list .card {
    border: 0.125rem solid var(--primary-color);
    box-shadow: 0 0.25rem 0.75rem rgba(155, 77, 202, 0.2);
    min-height: 250px;
    min-width: 200px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

    .scroller-list .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(155, 77, 202, 0.3);
    }

    .scroller-list .card img {
        transition: transform 0.3s ease;
    }

    .scroller-list .card:hover img {
        -ms-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

.carousel-control-next, .carousel-control-prev {
    width: 5%
}

.carousel-inner .carousel-item-end, .carousel-inner .carousel-item-start {
    transform: translateX(0)
}

.carousel-inner .carousel-item-next, .carousel-inner .carousel-item-prev, .carousel-inner .carousel-item.active {
    display: flex
}

.carousel-item .col {
    flex: 0 0 auto;
    padding: 0 0.625rem;
    width: 100%
}

.carousel-item .row {
    display: flex;
    flex-wrap: nowrap
}

.center-div {
    align-items: center;
    display: flex;
    justify-content: center
}

    .center-div img {
        margin: 0.5rem;
        width: 1.5rem !important
    }

.clearfix::after {
    clear: both;
    content: "";
    display: table
}

.comment {
    background-color: var(--comment-background);
    border-radius: 0.625rem;
    margin-bottom: 1rem
}

.comment-date {
    color: #777;
    font-size: 0.8rem
}

.comment-header {
    color: var(--primary-color);
    font-weight: bold
}

.comment-text {
    background-color: #fff;
    border: 1px solid rgba(128, 0, 128, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.06);
    padding: 1rem
}

.comment-content-row {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.comment-author-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author-rating {
    display: inline-flex;
    gap: 0.15rem;
}

.comment-author-rating-heart {
    color: rgba(128, 0, 128, 0.2);
    font-size: 0.9rem;
    line-height: 1;
}

    .comment-author-rating-heart.is-filled {
        color: var(--primary-color);
    }

.comment-message {
    flex: 1;
}

.comment-delete-button {
    flex-shrink: 0;
}

.comment-delete-confirm {
    align-items: center;
    background-color: #fff5f5;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 0.75rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.comment-delete-confirm-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.toggle-comment-form {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9b4d96 100%);
    border: 1px solid rgba(128, 0, 128, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 0.375rem 1rem rgba(128, 0, 128, 0.18);
    color: white;
    cursor: pointer;
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

    .toggle-comment-form:hover {
        box-shadow: 0 0.5rem 1.25rem rgba(128, 0, 128, 0.24);
        transform: translateY(-1px);
    }

.recipe-comment-composer {
    background-color: #fff;
    border: 1px solid rgba(128, 0, 128, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.06);
    padding: 1.25rem;
}

.recipe-comment-label {
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.recipe-comment-textarea {
    border: 1px solid rgba(128, 0, 128, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    min-height: 8rem;
    padding: 0.9rem 1rem;
    resize: vertical;
    width: 100%;
}

    .recipe-comment-textarea:focus {
        border-color: rgba(128, 0, 128, 0.5);
        box-shadow: 0 0 0 0.2rem rgba(128, 0, 128, 0.12);
        outline: none;
    }

.recipe-comment-submit {
    min-width: 12rem;
}

.user-comments-not-logged-in {
    background-color: #fff;
    border: 1px solid rgba(128, 0, 128, 0.12);
    border-radius: 0.75rem;
    color: #5f5f72;
    padding: 1rem 1.25rem;
}

.comment-actions .btn {
    font-weight: 600;
}

.completed {
    color: lightgrey
}

.confirm-button {
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 20px
}

    .confirm-button.no-button {
        background-color: #ccc;
        color: #333;
    }

    .confirm-button.yes-button {
        background-color: #4caf50;
        color: white;
    }

        .confirm-button.yes-button:hover {
            background-color: #388e3c;
        }

    .confirm-button.no-button:hover {
        background-color: #bdbdbd;
    }

.confirm-dialog {
    animation: fadeIn 0.3s ease;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    max-width: 400px;
    padding: 20px;
    text-align: center;
    width: 90%
}

    .confirm-dialog p {
        font-size: 16px;
        margin-bottom: 20px
    }

.confirm-dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: center
}

.confirm-dialog-overlay {
    align-items: center;
    background: rgba(0,0,0,0.5);
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000
}

.cooking-examples {
    margin-top: 2rem
}

.cooking-time {
    align-items: center;
    display: flex;
    font-size: 1rem;
    justify-content: center
}

    .cooking-time img {
        height: 1rem;
        margin-right: 0.5rem;
        width: 1rem
    }

.cooking-time-detail {
    align-items: center;
    display: flex;
    font-size: 1rem;
    margin: 0.5rem
}

    .cooking-time-detail img {
        height: 2rem;
        margin-right: 0.5rem;
        width: 2rem
    }

.cooking-time-detail-create {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem
}

.cursor-pointer {
    cursor: pointer
}

.data-consent {
    align-items: center;
    display: flex;
    flex-wrap: inherit;
    font-size: 0.9rem;
    margin: 1rem 0
}

    .data-consent label {
        margin-left: 0.5rem
    }

.definition-label {
    display: inline;
    font-weight: bold
}

.definition-text {
    display: inline
}

.delete-comment {
    background-color: var(--delete-button-color);
    border-radius: 0.75rem;
    border: none;
    color: white;
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem
}

    .delete-comment:hover {
        background-color: var(--delete-button-hover)
    }

.dictionary-definition {
    margin-top: 1rem
}

.dictionary-entry {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-style: italic
}

.dictionary-entry-type {
    font-style: italic
}

.dictionary-item {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start
}

.dictionary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.dictionary-word {
    font-weight: bold;
    margin-right: 0.5rem;
    text-decoration: none
}

.disabled-nav-link {
    cursor: default;
    opacity: 0.5;
    pointer-events: none
}

.dropdown-item {
    text-wrap: wrap;
    white-space: normal
}

    .dropdown-item.highlight {
        background-color: #f1f1f1;
        color: #000
    }

.dropdown-menu {
    max-height: 25rem;
    overflow-y: auto
}

.dropdown-submenu {
    position: relative
}

    .dropdown-submenu > .dropdown-menu {
        border-radius: 0 0.375rem 0.375rem 0.375rem;
        left: 100%;
        margin-left: -0.0625rem;
        margin-top: -0.375rem;
        top: 0
    }

    .dropdown-submenu > a:after {
        border-left-color: var(--disabled-button-color);
        border: 0.3125rem solid transparent;
        content: " ";
        display: block;
        float: right;
        margin-right: -0.625rem;
        margin-top: 0.3125rem
    }

    .dropdown-submenu.pull-left > .dropdown-menu {
        border-radius: 0.375rem 0 0.375rem 0.375rem;
        left: -100%;
        margin-left: 0.625rem
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block
    }

    .dropdown-submenu:hover > a:after {
        border-left-color: #fff
    }

.examples-label {
    display: inline;
    font-weight: bold
}

.examples-text {
    display: inline
}

.generic-description {
    font-size: 1.5rem
}

.has-parent {
    margin-bottom: 0rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    position: relative;
    z-index: 1
}

    .has-parent .reply-section {
        margin-left: 0.5rem;
        position: relative
    }

.hidden {
    display: none !important
}

.highlighted {
    border: 0.125rem solid #ffcc00;
    box-shadow: 0 0.25rem 0.375rem rgba(0,0,0,0.2);
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out
}

    .highlighted:hover {
        transform: scale(1.1)
    }

.home-pic-container {
    position: relative
}

    .home-pic-container img {
        height: 100%;
        max-height: 18.75rem;
        object-fit: cover;
        opacity: 0.35;
        width: 100%
    }

.index-container {
    margin: 1rem 0
}

.ingredient-index-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ingredient-index-filter-field {
    display: flex;
    flex: 1 1 16rem;
    flex-direction: column;
    gap: 0.25rem;
}

.ingredient-index-search-field {
    flex: 2 1 16rem;
}

.ingredient-index-group-field {
    flex: 1 1 16rem;
}

.ingredient-index-filter-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.ingredient-index-search {
    flex: 1 1 auto;
}

.ingredient-index-group-filter {
    flex: 1 1 auto;
}

.index-image {
    height: auto;
    width: 100%
}

.index-image-wrapper {
    overflow: hidden;
    position: relative
}

.index-item {
    box-sizing: border-box;
    flex: 1 1 15rem;
    max-width: 20rem
}

.index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start
}

.index-section {
    margin-bottom: 0
}

    .index-section a {
        color: white;
        text-decoration: none
    }

        .index-section a h2 {
            background-color: var(--primary-color);
            border-top-left-radius: 0.5rem;
            border-top-right-radius: 0.5rem;
            color: white;
            font-weight: bold;
            margin-bottom: 0;
            padding: 0.5rem;
            text-decoration: none
        }

            .index-section a h2:hover {
                transform: scale(1.01)
            }

.index-title {
    margin: 0
}

.profile-allergen-selector {
    position: relative;
}

.profile-allergen-selected {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.profile-allergen-dropdown {
    background-color: white;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    display: none;
    margin-top: 0.25rem;
    max-height: 15rem;
    overflow-x: hidden;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 3;
}

    .profile-allergen-dropdown .tag-item {
        padding: 0.5rem 0.75rem;
    }

.index-subtitle {
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
}

.index-title-month {
    font-size: 1rem;
    margin: 0
}

.index-title-overlay {
    background: rgba(0,0,0,0.5);
    bottom: 0;
    color: white;
    left: 0;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    text-align: center
}

.index-title-overlay-month {
    background: rgba(0,0,0,0.5);
    bottom: 0;
    color: white;
    left: 0;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    text-align: center
}

.ingrediens-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding-left: 0
}

.ingredient-checkbox {
    align-items: center;
    border-radius: 50%;
    border: 0.125rem solid #cccccc;
    display: flex;
    flex-shrink: 0;
    height: 1.25rem;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background-color 0.3s, border-color 0.3s;
    width: 1.25rem
}

.ingredient-display {
    color: #666;
    font-style: italic;
    margin-top: 0.5rem
}

.ingredient-item {
    flex: 0 0 calc(33.33% - 1.25rem);
    margin: 0 0.625rem 0.625rem 0
}

.ingredient-text {
    cursor: pointer;
    display: inline-block;
    flex: 1;
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
    padding-right: 0.625rem;
    transition: color 0.3s;
    word-wrap: break-word
}

.ingredientNameDisplay {
    cursor: pointer;
    padding: 1rem 0;
    width: 100%
}

.ingredientsList, .stepsList {
    margin-top: 0.625rem
}

.input-with-tags {
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 2rem;
    border: 0.063rem solid #ccc;
    box-shadow: 0 0.125rem 0.312rem rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    min-height: 2.8rem;
    padding: 0.312rem
}

.letter-container {
    flex: 0 0 100%;
    margin-bottom: 0.625rem
}

.lexicon-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem
}

.month-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-start;
    padding-bottom: 1rem
}

.month-item {
    box-sizing: border-box;
    flex: 1 1 8%
}

.nav-link {
    font-weight: bold;
    letter-spacing: 0.125rem;
    font-size: 1rem;
}

.site-brand {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: 0.75rem;
    text-decoration: none;
}

.site-brand-logo {
    display: block;
    height: 3rem;
    width: 3rem;
}

.site-brand:hover,
.site-brand:focus {
    color: inherit;
}

.navbar .nav-link.btn:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    color: #ffffff
}

/* Responsive Design */
/* Small phones (less than 480px) */
@media (max-width: 479px) {
    .nav-link {
        font-size: 0.85rem;
    }

    .site-brand {
        gap: 0.5rem;
    }

    .site-brand-logo {
        height: 2.5rem;
        width: 2.5rem;
    }
}

/* Mobile (less than 768px) */
@media (max-width: 767px) {
    .nav-link {
        font-size: 0.9rem;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .nav-link {
        font-size: 1rem;
    }
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .nav-link {
        font-size: 1.1rem;
    }
}

.new-banner {
    background-color: var(--primary-color);
    border-bottom-right-radius: 0.5rem;
    border-top-right-radius: 0;
    color: #fff;
    font-size: 0.8rem;
    left: 0;
    padding: 0.3em 0.6em;
    position: absolute;
    top: 0;
    z-index: 1
}

.recipe-card-badge-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    left: 0;
    max-width: calc(100% - 3.5rem);
    padding: 2.35rem 0.4rem 0.4rem;
    position: absolute;
    top: 0;
    z-index: 1;
}

.recipe-card-badge-chip {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    width: fit-content;
}

.recipe-card-badge-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-card-badge-icon {
    flex-shrink: 0;
    height: 1rem;
    object-fit: contain;
    width: 1rem;
}

.no-link-format {
    color: var(--primary-color);
    text-decoration: none
}

    .no-link-format a {
        color: var(--primary-color);
        font-weight: bold;
        text-decoration: none
    }

.no-padding {
    padding: 0 !important
}

.no-parent {
    padding: 1rem
}

.rating-counter {
    font-size: 0.7rem;
    padding-left: 0.25rem
}

    .rating-counter a {
        padding-left: 0.25rem
    }

.rating-stars {
    align-items: center;
    display: flex;
    margin: 0;
    padding: 0
}

.recipe-rating-actions {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.recipe-rating-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recipe-rating-average {
    --recipe-heart-size: 2rem;
    --recipe-heart-gap: 0.5rem;
    width: fit-content;
}

.recipe-rating-average-hearts {
    column-gap: var(--recipe-heart-gap);
    display: grid;
    grid-template-columns: repeat(5, var(--recipe-heart-size));
}

.recipe-rating-average-heart {
    display: block;
    font-size: var(--recipe-heart-size);
    line-height: 1;
    text-align: center;
}

.recipe-rating-average-heart-item {
    display: inline-flex;
    height: var(--recipe-heart-size);
    position: relative;
    width: var(--recipe-heart-size);
}

.recipe-rating-average-heart-empty {
    color: rgba(128, 0, 128, 0.22);
}

.recipe-rating-average-heart-filled {
    color: var(--primary-color);
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    white-space: nowrap;
    width: 0;
}

/* Ensure average hearts show partial fills by setting width on the .recipe-rating-average-heart-filled element */

.recipe-rating-average {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-rating-average-hearts {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--recipe-heart-size, 1.6rem);
    column-gap: var(--recipe-heart-gap, 0.25rem);
}

/* Each average heart contains two stacked SVGs: empty (bottom) and filled (top). */
.recipe-rating-average-heart {
    position: relative;
    display: inline-block;
    width: var(--recipe-heart-size, 1.6rem);
    height: var(--recipe-heart-size, 1.6rem);
}

    .recipe-rating-average-heart img {
        display: block;
        width: 100%;
        height: 100%;
    }

.recipe-rating-average-heart-empty {
    position: relative;
}

.recipe-rating-average-heart-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: 0; /* adjusted dynamically by JS to represent partial fills */
}

/* Visually hide the duplicated average row when we render fills on the main hearts */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Main heart button structure: show empty by default. The .user-fill sits on top and is clipped to show partial/filled states for average/user */
.recipe-rating-heart {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.recipe-rating-hearts-center {
    justify-content: center
}

    .recipe-rating-heart .heart-empty,
    .recipe-rating-heart .avg-fill img,
    .recipe-rating-heart .user-fill img {
        display: block;
        width: var(--recipe-heart-size, 1.6rem);
        height: var(--recipe-heart-size, 1.6rem);
    }

    .recipe-rating-heart .avg-fill,
    .recipe-rating-heart .user-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        overflow: hidden;
        width: 0; /* controlled by JS */
        display: flex;
        align-content: center;
        flex-wrap: wrap;
    }

    /* Ensure layered fills appear above the empty heart and are visible in popups */
    .recipe-rating-heart .heart-empty {
        z-index: 0;
    }

    .recipe-rating-heart .avg-fill {
        z-index: 1;
        pointer-events: none;
    }

    .recipe-rating-heart .user-fill {
        z-index: 2;
        pointer-events: none;
    }

        /* Make sure images inside the layered spans are full-size and visible */
        .recipe-rating-heart .avg-fill img,
        .recipe-rating-heart .user-fill img,
        .recipe-rating-heart .heart-empty {
            display: block;
            width: var(--recipe-heart-size, 1.6rem);
            height: var(--recipe-heart-size, 1.6rem);
            object-fit: contain;
        }

/* Ensure popup hearts are explicitly sized and visible inside the confirm dialog */
.confirm-dialog .recipe-rating-heart {
    height: var(--recipe-heart-size, 1.6rem);
}

    .confirm-dialog .recipe-rating-heart .heart-empty,
    .confirm-dialog .recipe-rating-heart .user-fill img {
        width: var(--recipe-heart-size, 1.6rem) !important;
        height: var(--recipe-heart-size, 1.6rem) !important;
    }

.recipe-rating-heart .user-fill,
.recipe-rating-heart .avg-fill {
    transition: width 120ms linear;
}

    /* Dim average fill so hover/selection stands out */
    .recipe-rating-heart .avg-fill img {
        opacity: 0.32;
        filter: grayscale(10%);
    }

    /* Hover/selection fill should be prominent */
    .recipe-rating-heart .user-fill img {
        opacity: 1;
    }

/* Highlight hovered heart */
.recipe-rating-heart:hover {
    transform: scale(1.06);
    transition: transform 120ms ease;
    z-index: 10;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

    /* When hovering the button, show full user-fill for that heart */
    .recipe-rating-heart:hover .user-fill {
        width: 100% !important;
    }

/* Tooltip for hovered rating */
.recipe-rating-tooltip {
    position: absolute;
    top: -1.6rem;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 0.18rem 0.4rem;
    border-radius: 0.25rem;
    pointer-events: none;
    transform: translateX(-50%);
    left: 50%;
    white-space: nowrap;
}

.recipe-rating-average-text {
    font-size: 1.05rem;
    color: #7d33b0;
}

.recipe-rating-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.recipe-rating-status,
.recipe-rating-login-hint {
    color: #5f5f72;
    margin: 0;
}

.recipe-rating-heart {
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    height: 2.5rem;
    justify-content: center;
    position: relative;
    padding: 0;
}

.recipe-rating-heart-outer,
.recipe-rating-heart-inner {
    display: block;
    left: 50%;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.recipe-rating-heart-outer {
    color: rgba(128, 0, 128, 0.22);
    font-size: 2rem;
}

.recipe-rating-heart-inner {
    color: transparent;
    font-size: 1.2rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.recipe-rating-heart:hover,
.recipe-rating-heart:focus,
.recipe-rating-heart.is-active .recipe-rating-heart-inner {
    color: var(--primary-color);
}

    .recipe-rating-heart:hover .recipe-rating-heart-inner,
    .recipe-rating-heart:focus .recipe-rating-heart-inner,
    .recipe-rating-heart.is-active .recipe-rating-heart-inner {
        transform: translate(-50%, -50%) scale(1.02);
    }

.recipe-rating-visual.has-user-rating .recipe-rating-heart.is-active {
    color: #d8b7d5;
}

.recipe-rating-confirm-dialog h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recipe-step-image {
    display: none
}

.recipe-step-image.recipe-step-image-visible {
    display: block
}

.rating-stars-card {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0
}

.recipe-created-date, .recipe-publishing-date {
    margin-top: 2rem
}

.recipe-difficulty {
    align-items: center;
    display: flex;
    font-size: 1rem
}

    .recipe-difficulty img {
        height: 2rem;
        margin-right: 0.5rem;
        width: 2rem
    }

.recipe-admin-status-banner {
    border-radius: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.recipe-admin-status-banner-draft {
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
}

.recipe-admin-status-banner-scheduled {
    background-color: #cff4fc;
    border: 1px solid #9eeaf9;
    color: #055160;
}

.recipe-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    width: 100%
}

.recipe-image-wrapper {
    overflow: hidden;
    position: relative
}

#recipeDescriptionDisplay {
    border: 0.125rem solid var(--primary-color);
    border-radius: 0.5rem;
    min-height: 100px;
    padding: 0.5rem;
}

.recipe-ingredient {
    align-items: center;
    display: flex
}

.recipe-ingredient-display {
    width: 100%
}

.recipe-item {
    position: relative
}

.recipe-link:hover .recipe-image {
    transform: scale(1.05)
}

.recipe-part-name {
    font-size: 1.25rem;
    font-weight: bold
}

.recipe-title {
    color: #333;
    color: white;
    font-size: 1.25rem;
    font-size: 1.2rem;
    margin-top: 0.313rem;
    margin: 0
}

.recipe-title-overlay {
    background: rgba(0,0,0,0.6);
    bottom: 0;
    color: white;
    padding: 0.5rem;
    position: absolute;
    text-align: center;
    width: 100%
}

.related-recipes-section {
    margin-top: 2rem
}

.remove-badge-btn, .remove-image-step-btn, .remove-ingredient-btn, .remove-part-btn, .remove-step-btn, .remove-tag-btn, .remove-tool-btn {
    background-color: #d9534f;
    border-radius: 0.25rem;
    border: none;
    color: white;
    font-size: 1.125rem;
    margin-top: 0.75rem;
    margin: 0 1rem;
    padding: 0.375rem 0.625rem;
    text-wrap: nowrap;
    z-index: 1
}

    .remove-badge-btn:hover, .remove-ingredient-btn:hover, .remove-part-btn:hover, .remove-step-btn:hover, .remove-tag-btn:hover, .remove-tool-btn:hover {
        background-color: #e55650
    }

.remove-icon {
    height: 1rem;
    width: 1rem
}

.remove-item {
    align-content: center;
    cursor: pointer;
    height: 1rem;
    vertical-align: middle;
    width: 1rem
}

.replies {
    margin-top: 0.5rem
}

.reply {
    background-color: var(--reply-background);
    border-left: 0.25rem solid var(--primary-color);
    border-radius: 0.125rem;
    margin-top: 0.3rem;
    padding: 0.5rem
}

    .reply .comment-header {
        font-size: 0.9rem
    }

.reply-button {
    background: none;
    border: none;
    color: #6a0dad;
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin: 0.5rem 0;
    padding: 0;
    text-decoration: underline
}

    .reply-button:hover {
        color: #4b0082;
        text-decoration: none
    }

.right-icon {
    margin-left: 0.5rem;
    margin-right: 0
}

.scaled-image {
    height: auto;
    max-height: 12rem;
    max-width: 20rem;
    width: auto
}

.search-bar {
    margin: 1.25rem auto;
    position: relative;
    width: 100%
}

.search-bar-selected-items {
    font-size: 1rem;
    vertical-align: baseline
}

    .search-bar-selected-items a {
        font-size: 1.5rem;
        text-decoration: none
    }

.search-button-icon {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0
}

    .search-button-icon img {
        display: block;
        height: auto;
        width: 2.5rem
    }

.search-input {
    background: transparent;
    border: none;
    flex: 1;
    font-size: 1.5rem;
    outline: none;
    padding: 0
}

.search-tag {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
    margin-right: 0;
    margin-top: 0.25rem;
    transition: opacity 0.3s ease
}

    .search-tag a {
        text-decoration: none
    }

.search-tag-header {
    color: #999;
    display: block;
    font-size: 0.8rem;
    text-align: center
}

.search-tag.removing {
    opacity: 0;
    transition: opacity 0.3s ease
}

.season-inline input {
    margin: 0;
    padding: 0.312rem
}

.section-item {
    border-radius: 0.5rem;
    border: 0.063rem solid #ccc;
    flex: 1 1 20%;
    padding: 1rem;
    text-align: center
}

    .section-item a {
        color: var(--primary-color);
        font-size: 1.2rem;
        font-weight: bold;
        text-decoration: none
    }

    .section-item p {
        font-size: 1rem;
        margin-top: 0.5rem
    }

.see-more-container {
    margin-top: 1.5rem;
    text-align: center
}

.selected-tag {
    align-items: center;
    background-color: #e1e1e1;
    border-radius: 1rem;
    display: flex;
    margin: 0.5rem;
    padding: 0.3rem 0.5rem
}

    .selected-tag button {
        background: transparent;
        border: none;
        color: black;
        cursor: pointer;
        font-size: 2rem;
        margin: 0
    }

.profile-allergen-selector {
    position: relative;
}

.profile-form-wrapper {
    position: relative;
}

    .profile-form-wrapper.is-loading form {
        opacity: 0.45;
        pointer-events: none;
    }

.profile-form-loading {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 5;
}

    .profile-form-wrapper.is-loading .profile-form-loading {
        display: flex;
    }

    .profile-allergen-selector.is-loading {
        opacity: 0.6;
    }

        .profile-allergen-selector.is-loading #profileAllergenSearch {
            pointer-events: none;
        }

.profile-allergen-loading {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0.375rem;
    display: none;
    gap: 0.5rem;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 4;
}

    .profile-allergen-selector.is-loading .profile-allergen-loading {
        display: flex;
    }

.serving-input-container {
    display: flex;
    gap: 0.8rem
}

.recipe-serving-adjuster {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.recipe-serving-adjuster-label,
.recipe-serving-adjuster-unit {
    font-weight: 600;
}

.recipe-serving-adjuster-controls {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.recipe-serving-adjuster-button {
    align-items: center;
    background-color: var(--primary-color);
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 700;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.recipe-serving-adjuster-button:hover {
    background-color: var(--hover-primary-color);
}

.recipe-serving-adjuster-input {
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
    text-align: center;
    width: 4.5rem;
}

.small-icon {
    height: 1.5rem;
    margin-right: 0.5rem;
    width: 1.5rem
}

.star-filled {
    color: var(--primary-color)
}

.star-outline {
    color: #ccc
}

.stars-container {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    position: relative
}

    .stars-container .tooltipText {
        background-color: black;
        border-radius: 0.5rem;
        color: #fff;
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
        position: absolute;
        text-align: center;
        top: 150%;
        visibility: hidden;
        width: 14rem;
        z-index: 1
    }

        .stars-container .tooltipText::after {
            border-color: transparent transparent black transparent;
            border-style: solid;
            border-width: 5px;
            bottom: 100%;
            content: "";
            left: 50%;
            margin-top: -5px;
            position: absolute
        }

    .stars-container:hover .tooltipText {
        visibility: visible
    }

.stars-filled {
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    white-space: nowrap
}

.strikethrough {
    text-decoration: line-through
}

.subnav:hover .subnav-content {
    display: block
}

.tag-img {
    height: 2rem;
    margin-right: 0.5rem;
    width: 2rem
}

.tag-item {
    border-bottom: 0.0625rem solid #ccc;
    min-width: 30rem;
    padding: 0.5rem 0.75rem
}

.tag-item-category {
    color: #666;
    font-size: 0.8rem
}

.tag-item-name {
    margin: 0 0.5rem
}

.tag-item.highlighted {
    background-color: #d0e7ff;
    cursor: pointer
}

.tag-item.highlighted, .tag-item:hover {
    cursor: pointer
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    padding-left: 1.5rem
}

.tags-dropdown {
    background-color: white;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    display: none;
    max-height: 15rem;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: absolute;
    white-space: nowrap
}

    .tags-dropdown div {
        cursor: pointer
    }

        .tags-dropdown div:hover {
            background-color: #f0f0f0
        }

.tags-selector {
    overflow-x: hidden;
    z-index: 2
}

.text-align {
    text-align: center
}

.tool-checkbox {
    align-items: center;
    border-radius: 50%;
    border: 2px solid #cccccc;
    display: flex;
    flex-shrink: 0;
    height: 1.25rem;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background-color 0.3s, border-color 0.3s;
    width: 1.25rem
}

.tool-text {
    flex: 1;
    overflow-wrap: break-word;
    padding-right: 0.625rem;
    word-wrap: break-word
}

.tools-text {
    display: inline-block;
    font-size: 1rem;
    max-width: 100%
}

.user-sort-button {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-align: left;
}

.user-sort-button.active {
    color: var(--primary-color);
}

.user-sort-indicator {
    display: inline-block;
    min-width: 1rem;
}

.manage-users-table {
    min-width: 62rem;
}

.manage-users-table th,
.manage-users-table td {
    white-space: nowrap;
}

.manage-users-table-wrapper {
    -webkit-overflow-scrolling: touch;
}

.manage-users-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge-admin-icon {
    height: 2rem;
    object-fit: contain;
    width: 2rem;
}

.manage-tag-badges-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.manage-tag-badges-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.manage-tag-badges-toggle .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.manage-tag-badges-search {
    max-width: 32rem;
}

.manage-tag-badges-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.manage-tag-badge-section {
    width: 100%;
}

.manage-tag-badge-cell-input {
    min-width: 16rem;
}

.manage-tag-badge-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 14rem;
}

.manage-tag-badge-upload-actions {
    display: flex;
    gap: 0.5rem;
}

.manage-tag-badge-status {
    font-size: 0.875rem;
    white-space: normal;
}

.manage-tag-badge-empty-icon {
    color: #6c757d;
    font-size: 0.875rem;
}

.u-flex {
    display: table
}

.welcome-vid-content {
    position: relative;
    text-align: center
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@media (max-width: 37.5rem) {
    .alphabet-nav a {
        font-size: 1rem
    }

    .c-recipe-related-recipes {
        grid-template-columns: 1fr
    }

    .month-item {
        flex: 1 1 100%
    }
}

@media (max-width: 48rem) {
    .c-button {
        justify-content: center;
        width: 100%
    }

    .encyclopedia-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .encyclopedia-slider-controls {
        width: 100%;
    }

    .draft-lookup-columns,
    .draft-lookup-editor-grid {
        grid-template-columns: 1fr;
    }

    .draft-lookup-item-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .draft-lookup-filter {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

        .draft-lookup-filter .btn,
        .draft-lookup-toolbar .btn,
        .draft-lookup-upload-row .btn,
        .draft-lookup-save {
            width: 100%;
        }

    .draft-lookup-upload-row {
        grid-template-columns: 1fr;
    }

    .c-recipe-comments {
        padding: 0
    }

    .c-recipe-ingredient {
        flex: 0 0 100%
    }

    .has-parent {
        padding-left: 0.5rem
    }

    .index-section {
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        margin-top: calc(var(--bs-gutter-x) * .5)
    }

        .index-section h2 {
            padding: 0.1rem
        }

    .ingredient-text {
        font-size: 0.875rem
    }

    .month-item {
        flex: 1 1 49%
    }

    .no-parent {
        padding-left: 0.5rem
    }

    .tools-text {
        font-size: 0.875rem
    }
}

@media (max-width: 575px) {
    .card-img-overlay {
        font-size: 2rem
    }

    .carousel-inner .carousel-item > div {
        display: none
    }

        .carousel-inner .carousel-item > div:first-child {
            display: block
        }
}

@media (max-width: 64rem) {
    .alphabet-nav a {
        font-size: 1.2rem
    }

    .c-recipe-related-recipes {
        grid-template-columns: repeat(2,1fr)
    }

    .month-item {
        flex: 1 1 25%
    }
}

@media (max-width: 75rem) {
    .c-recipe-comments {
        padding: 1rem
    }

    .c-recipe-content {
        grid-template-areas: "ingredients" "instructions" "tools";
        grid-template-columns: 1fr
    }

    .c-recipe-content-box {
        margin-top: 1rem
    }

    .c-recipe-related-recipes {
        grid-template-columns: repeat(3,1fr)
    }

    .month-item {
        flex: 1 1 16%
    }
}

@media (min-width: 576px) {
    .carousel-inner .carousel-item-end.active, .carousel-inner .carousel-item-next {
        transform: translateX(25%)
    }

    .carousel-inner .carousel-item-prev, .carousel-inner .carousel-item-start.active {
        transform: translateX(-25%)
    }
}

@media (min-width:100em) {
    .c-recipe-content-box {
        padding: 6rem
    }
}

@media (min-width:48em) {
    html {
        font-size: 1rem
    }

    .c-recipe-image-ratio-holder {
        padding-top: 42.92%
    }
}

@media (min-width:62em) {
    .c-recipe-intro {
        grid-template-columns: 40% 60%
    }
}

@media (min-width:75em) {
    .c-recipe-content-box {
        padding: 1rem
    }
}


.recipe-rating-hearts {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
}

.recipe-rating-heart:focus {
    outline: 2px solid var(--primary-color);
}

.heart-icon {
    width: 2rem;
    height: 2rem;
    display: block;
    pointer-events: none;
    transition: filter 0.2s;
}

.recipe-rating-heart.is-active .heart-icon,
.recipe-rating-heart:hover .heart-icon {
    filter: drop-shadow(0 0 2px var(--primary-color));
}

.recipe-rating-average {
    font-size: 1.1rem;
    color: #7d33b0;
    font-weight: 500;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.recipe-rating-status {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .heart-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .recipe-rating-average {
        font-size: 1rem;
    }
}

.favorite-heart-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.favorite-heart-icon {
    width: 28px;
    height: 28px;
    transition: filter 0.2s;
}

.favorite-heart-btn:hover .favorite-heart-icon {
    filter: brightness(1.2) drop-shadow(0 0 2px var(--primary-color));
}

.col-lg-3 .favorite-heart-btn {
    /* Ensure heart is above card content */
    pointer-events: auto;
}

/* Wrapper */
.scroller-wrapper {
    position: relative;
}

/* Scroll container */
.scroller-list {
    display: flex;
    gap: 0.5rem;
    min-height: 20rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    scroll-snap-type: x mandatory;
}

    /* Hide scrollbar (optional, cleaner look) */
    .scroller-list::-webkit-scrollbar {
        display: none;
    }

.scroller-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Cards */
.recipe-scroller-card {
    flex: 0 0 calc((100% - 1.5rem) / 4);
    margin-bottom: 0 !important;
    scroll-snap-align: start;
}

/* Arrows */
.scroller-arrow {
    cursor: pointer;
    position: absolute;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    transition: 0.6s ease;
    user-select: none;
    z-index: 1;
    background: rgba(155,77,202,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

    .scroller-arrow:hover {
        background-color: rgba(0,0,0,0.8);
    }

    .scroller-arrow.left {
        left: 0;
        border-radius: 0 100% 100% 0;
    }

    .scroller-arrow.right {
        right: 0;
        border-radius: 100% 0 0 100%;
    }

/* ===== Responsive ===== */

/* 3 cards */
@media (max-width: 1200px) {
    .recipe-scroller-card {
        flex: 0 0 calc((100% - 1rem) / 3);
    }
}

/* 2 cards */
@media (max-width: 900px) {
    .scroller-list {
        gap: 0.25rem;
    }

    .recipe-scroller-card {
        flex: 0 0 calc((100% - 0.25rem) / 2);
    }
}

/* 1 card */
@media (max-width: 600px) {
    .recipe-scroller-card {
        flex: 0 0 100%;
    }
}

/* Remove box-shadow for technical terms search bar */
.search-bar .input-with-tags {
    box-shadow: none;
}

/* Ingredient Calendar Slider Dots and Labels */
.ingredient-calendar-slider-dots-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}
.ingredient-calendar-slider-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
    position: static;
    z-index: 2;
    pointer-events: none;
    height: 20px;
}
.ingredient-calendar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bbb;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin: 0 2px;
    border: 2px solid transparent;
    outline: none;
    pointer-events: auto;
    box-sizing: border-box;
}
.ingredient-calendar-dot.active {
    background: #111;
    box-shadow: 0 0 0 2px #1112;
    border-color: #111;
}
.ingredient-calendar-dot:focus {
    border-color: #0056b3;
}
.ingredient-calendar-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.ingredient-calendar-dot-label {
    font-size: 0.85em;
    color: #bbb;
    width: 38px;
    text-align: center;
    user-select: none;
    transition: color 0.2s;
    display: inline-block;
}
.ingredient-calendar-dot-label.active {
    color: #111;
    font-weight: bold;
}
.ingredient-calendar-slider-instructions {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Circular pizza month selector styles */
.ingredient-calendar-pizza-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}
.ingredient-calendar-pizza {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem auto;
}
.ingredient-calendar-pizza-slice {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #bbb;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    z-index: 2;
    box-sizing: border-box;
}
.ingredient-calendar-pizza-slice.selected {
    background: #111;
    border-color: #111;
    box-shadow: 0 0 0 4px #1112;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 3;
}
.ingredient-calendar-pizza-slice:focus {
    border-color: #0056b3;
}
.ingredient-calendar-pizza-label {
    position: absolute;
    font-size: 0.85em;
    color: #bbb;
    width: 38px;
    text-align: center;
    user-select: none;
    pointer-events: none;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.ingredient-calendar-pizza-label.selected {
    color: #111;
    font-weight: bold;
    font-size: 1em;
    z-index: 4;
}
.ingredient-calendar-slider-instructions {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0.5rem;
}

/* New styles for ingredient seasons page */
.ingredient-seasons-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.ingredient-seasons-quarter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.ingredient-seasons-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    padding: 1rem 0.5rem 0.75rem 0.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}
.ingredient-seasons-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.12);
}
.ingredient-seasons-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f2f2f2;
}
.ingredient-seasons-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ingredient-seasons-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}
.ingredient-seasons-range {
    color: #666;
    font-size: 0.95rem;
}
.ingredient-seasons-empty {
    color: #aaa;
    font-style: italic;
    margin: 1rem 0;
}
