body {
    background-color: #0f1115;
    color: #e6e6e6;
}

.card {
    background-color: #1a1d24;
    border: 1px solid #2a2f3a;
    border-radius: 12px;
}

input, select {
    background-color: #111318 !important;
    color: #e6e6e6 !important;
    border: 1px solid #333 !important;
}

input:focus, select:focus {
    border-color: #4dabf7 !important;
    box-shadow: none !important;
}

button {
    font-weight: 600;
}

.hidden {
    display: none;
}

.wizard-card {
    overflow: hidden;
    position: relative;
}

.wizard-progress {
    height: 6px;
    background: #2a2f3a;
    border-radius: 999px;
    overflow: hidden;
}

#wizardProgressBar {
    height: 100%;
    width: 0%;
    background: #4dabf7;
    transition: width 0.35s ease;
}

.wizard-step {
    display: none;
    animation: wizardFade 0.35s ease;
    min-height: 420px;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.wizard-title {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-options {
    display: grid;
    gap: 1rem;
}

.wizard-option {
    background: #111318;
    border: 1px solid #333;
    color: white;
    padding: 1.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.2s;
}

.wizard-option:hover {
    border-color: #4dabf7;
    transform: translateY(-2px);
}

#doughModelOptions .wizard-option {
    width: 100%;
    text-align: left;
    display: block;
}

#doughModelOptions .dough-model-copy strong,
#doughModelOptions .dough-model-copy small {
    display: block;
}

#doughModelOptions .dough-model-copy strong {
    margin-bottom: 0.3rem;
}

#doughModelOptions .dough-model-copy small {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

#doughModelOptions .wizard-option.selected {
    border-color: #4dabf7;
    box-shadow: inset 0 0 0 1px #4dabf7;
}

.option-icon {
    font-size: 2rem;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.temp-display {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
}

.recipe-summary-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 1rem 1.25rem;
}

.recipe-summary-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.35rem;
    border-left: 2px solid #4dabf7;
    background: #111318;
}

.recipe-summary-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    line-height: 1.4;
}

.recipe-summary-value-block,
.recipe-summary-value {
    display: block;
}

.recipe-summary-value {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.recipe-selection-group th {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.recipe-summary-details {
    margin-top: 1.5rem;
}

.recipe-summary-details > summary,
.saved-recipe-card details > summary {
    cursor: pointer;
    color: #8bc5f8;
}

.recipe-selection-group {
    overflow: hidden;
}

.recipe-selection-group + .recipe-selection-group {
    margin-top: 1.25rem;
}

.recipe-selection-group h3 {
    letter-spacing: 0.01em;
}

.recipe-selection-group table {
    --bs-table-bg: #111318;
    --bs-table-color: #e6e6e6;
    --bs-table-border-color: #333;
    --bs-table-hover-bg: #1a1d24;
    margin-bottom: 0;
}

.recipe-selection-group tbody th {
    min-width: 10rem;
    color: #d3dae3;
    font-weight: 600;
}

.recipe-selection-group td {
    line-height: 1.5;
}

.recipe-list-table {
    --bs-table-bg: #1a1d24;
    --bs-table-color: #e6e6e6;
    --bs-table-border-color: #333;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.recipe-list-table > :not(caption) > * > * {
    padding: 1rem 1.15rem;
}

.recipe-list-table thead th {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    border: 0;
}

.recipe-list-row {
    cursor: pointer;
    outline-offset: 3px;
}

.recipe-list-row > * {
    background: #1a1d24 !important;
    transition: background-color 0.15s ease;
}

.recipe-list-row > :first-child {
    border-radius: 0.7rem 0 0 0.7rem;
    font-weight: 600;
}

.recipe-list-row > :first-child::before {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 0.75rem;
    border-top: 0.32rem solid transparent;
    border-bottom: 0.32rem solid transparent;
    border-left: 0.42rem solid #8bc5f8;
    content: "";
    transition: transform 0.15s ease;
}

.recipe-list-row[aria-expanded="true"] > :first-child::before {
    transform: rotate(90deg);
}

.recipe-list-row > :last-child {
    border-radius: 0 0.7rem 0.7rem 0;
}

.recipe-list-row:not([aria-expanded="true"]) > * {
    border-bottom-width: 2px;
}

.recipe-list-row:not([aria-expanded="true"]) > :first-child {
    border-bottom-left-radius: 0.7rem;
}

.recipe-list-row:not([aria-expanded="true"]) > :last-child {
    border-bottom-right-radius: 0.7rem;
}

.recipe-list-row:hover > *,
.recipe-list-row:focus > *,
.recipe-list-row[aria-expanded="true"] > * {
    background: #242a34 !important;
}

.recipe-list-row[aria-expanded="true"] > :first-child {
    border-radius: 0.7rem 0 0 0;
}

.recipe-list-row[aria-expanded="true"] > :last-child {
    border-radius: 0 0.7rem 0 0;
}

.recipe-details-row > td {
    padding: 0 !important;
    border-top: 0;
    background: #171a20;
}

.recipe-details-content {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #3b414c;
    border-top: 2px solid #4dabf7;
    border-radius: 0 0 0.7rem 0.7rem;
    background: #171a20;
}

.recipe-details-content > details > summary {
    color: #8bc5f8;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.96rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card {
        border-radius: 10px;
    }

    .wizard-card {
        padding: 1rem !important;
    }

    .wizard-icon {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }

    .wizard-title {
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

    .wizard-options {
        gap: 0.75rem;
    }

    .wizard-option {
        padding: 0.9rem 0.95rem;
        border-radius: 12px;
        min-height: 64px;
        gap: 0.75rem;
    }

    .wizard-option .option-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .wizard-option strong,
    .wizard-option small {
        display: block;
        line-height: 1.2;
    }

    .wizard-step {
        min-height: auto;
    }

    .wizard-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-top: 1.25rem;
    }

    .wizard-nav button {
        width: 100%;
        min-height: 44px;
        border-radius: 10px;
    }

    .form-control,
    .form-select,
    .form-range {
        min-height: 44px;
    }

    label,
    .temp-display,
    #guidedTempText,
    #summaryContent,
    #results,
    #instructions {
        font-size: 0.95rem;
    }
}
