﻿/* ===================================
   RECIPE EDIT PAGE CSS - COMPACT VERSION
   Desktop: Moderate spacing (Option A)
   Mobile: Edge-to-edge, maximum space utilization
   =================================== */

:root {
    /* Color System */
    --primary-500: #4299e1;
    --primary-600: #3182ce;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --green-50: #f0fff4;
    --green-500: #48bb78;
    --red-50: #fff5f5;
    --red-500: #f56565;
    --red-600: #e53e3e;
    /* Layout - Compact */
    --sidebar-width: 64px;
    --content-max-width: 1400px;
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* ===================================
   SIDEBAR NAVIGATION - COMPACT
   =================================== */

.aks-recipe-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1.5rem;
    z-index: 100;
}

.aks-nav-item,
.aks-nav-action {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    font-size: 1.125rem;
    text-decoration: none;
    position: relative;
}

    .aks-nav-item:hover,
    .aks-nav-action:hover {
        background: white;
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

    .aks-nav-item.active {
        background: white;
        color: var(--primary-600);
        box-shadow: var(--shadow-md);
    }

        .aks-nav-item.active::before {
            content: '';
            position: absolute;
            left: -0.75rem;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 20px;
            background: var(--primary-500);
            border-radius: 0 2px 2px 0;
        }

.aks-nav-action--primary {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

    .aks-nav-action--primary:hover {
        background: var(--primary-600);
        color: white;
    }

.aks-nav-action--secondary {
    background: white;
    border-color: var(--gray-300);
}

    .aks-nav-action--secondary:hover {
        background: var(--gray-50);
    }

.aks-nav-action--cancel:hover {
    background: var(--red-50);
    color: var(--red-600);
}

.aks-nav-label {
    display: none;
}

.aks-nav-icon {
    font-size: 1.125rem;
}

/* ===================================
   CONTENT AREA - COMPACT
   =================================== */

.aks-recipe-editor {
    min-height: 100vh;
    display: flex;
}

.aks-recipe-form {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem 2rem;
    max-width: var(--content-max-width);
}

.aks-recipe-content {
    width: 100%;
}

.aks-content-panel {
    margin-bottom: 2rem;
    scroll-margin-top: 1.5rem;
}

.aks-content-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aks-recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.aks-recipe-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.aks-recipe-header-actions {
    display: flex;
    gap: 0.5rem;
}

.aks-header-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.875rem;
}

    .aks-header-link:hover {
        background: var(--gray-50);
        color: var(--gray-700);
    }

/* ===================================
   FORM SECTIONS - COMPACT
   =================================== */

.aks-form-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.aks-section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aks-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.aks-form-group {
    display: flex;
    flex-direction: column;
}

.aks-form-group--full {
    grid-column: 1 / -1;
}

.aks-form-group--required .aks-form-label::after {
    content: '*';
    color: var(--red-500);
    margin-left: 0.25rem;
}

.aks-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
}

.aks-form-input,
.aks-form-select,
.aks-form-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    background: white;
    transition: border-color 0.15s ease;
}

    .aks-form-input:focus,
    .aks-form-select:focus,
    .aks-form-textarea:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    }

.aks-form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.aks-form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aks-checkbox-input {
    width: 16px;
    height: 16px;
}

.aks-checkbox-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

.aks-help-text {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

.aks-form-checkboxes {
    display: flex;
    gap: 1rem;
}

/* ===================================
   INGREDIENTS SECTION - COMPACT
   =================================== */

.aks-ingredients-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ingredients-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.aks-store-select-button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--gray-600);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

    .aks-store-select-button:hover {
        background: var(--gray-50);
        border-color: var(--gray-400);
    }

    .aks-store-select-button.store-selected {
        background: var(--green-50);
        border-color: var(--green-500);
        color: #22543d;
    }

.aks-ingredients-container {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ingredient-row {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.625rem;
    transition: var(--transition);
}

    .ingredient-row:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--gray-300);
    }

.ingredient-fields {
    display: grid;
    grid-template-columns: 1fr 70px 70px 28px;
    gap: 0.625rem;
    align-items: start;
}

.ingredient-amount {
    display: flex;
    gap: 0.375rem;
}

.quantity-input {
    width: 100%; /* Changed from fixed 55px */
    padding: 0.375rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
}

.unit-input {
    width: 100%; /* Changed from flex: 1 */
    padding: 0.375rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
}

    .quantity-input:focus,
    .unit-input:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
    }

.ingredient-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ingredient-autocomplete {
    width: 100%;
    padding: 0.375rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
}

    .ingredient-autocomplete:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
    }

.note-input {
    grid-column: 1 / -1; /* Span all columns */
    width: 100%;
    padding: 0.375rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
}

    .note-input:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
    }

.remove-ingredient {
    background: var(--red-500);
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .remove-ingredient:hover {
        background: var(--red-600);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.ingredient-display {
    margin-top: 0.375rem;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    display: none;
    background: transparent;
    color: #234e52;
}

.ingredient-display--active {
    display: block;
}

.ingredient-display.kroger-ingredient {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ingredient-display__item,
.ingredient-display__price,
.ingredient-display__description {
    display: inline;
    margin-right: 0.375rem;
    font-weight: 500;
}

.ingredient-display__price {
    color: var(--gray-700);
    font-weight: 600;
}

.aks-action-add {
    margin-top: 0.75rem;
}

.aks-add-button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

    .aks-add-button:hover {
        background: var(--primary-600);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

/* ===================================
   STEPS SECTION - COMPACT
   =================================== */

.aks-steps-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.aks-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--gray-200);
}

.aks-section-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aks-steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aks-step-row,
.aks-step-row--optimized {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    transition: var(--transition);
}

    .aks-step-row:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--gray-300);
    }

.aks-step-number {
    background: var(--primary-500);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.aks-step-content,
.aks-step-content--optimized {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.aks-step-instruction-container {
    width: 100%;
}

.aks-step-instruction,
.aks-step-instruction--fullwidth {
    width: 100%;
    min-height: 70px;
    resize: vertical;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    line-height: 1.5;
}

    .aks-step-instruction:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    }

.aks-step-meta,
.aks-step-meta--optimized {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.aks-step-meta-fields,
.aks-step-meta-fields--optimized {
    flex: 1;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.625rem;
    align-items: center;
}

.aks-time-input-container,
.aks-note-input-container {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.aks-time-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
}

.aks-input-time,
.aks-input-time--compact {
    width: 70px;
    padding: 0.375rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

.aks-input-note,
.aks-input-note--expanded {
    width: 100%;
    padding: 0.375rem;
    font-size: 0.8125rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

    .aks-input-time:focus,
    .aks-input-note:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
    }

.aks-remove-step,
.aks-remove-step--optimized {
    background: var(--red-500);
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .aks-remove-step:hover {
        background: var(--red-600);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.aks-notes-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.aks-recipe-content-layout {
    display: block;
}

/* ===================================
   DROPDOWN SYSTEM
   =================================== */

.dropdown,
.ingredient-suggestions-dropdown {
    position: absolute;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 380px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    font-size: 0.8125rem;
    min-width: 260px;
}

    .dropdown::-webkit-scrollbar,
    .ingredient-suggestions-dropdown::-webkit-scrollbar {
        width: 6px;
    }

    .dropdown::-webkit-scrollbar-track,
    .ingredient-suggestions-dropdown::-webkit-scrollbar-track {
        background: transparent;
    }

    .dropdown::-webkit-scrollbar-thumb,
    .ingredient-suggestions-dropdown::-webkit-scrollbar-thumb {
        background: var(--gray-300);
        border-radius: 3px;
    }

        .dropdown::-webkit-scrollbar-thumb:hover,
        .ingredient-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
            background: var(--gray-400);
        }

.dropdown-header,
.suggestion-section-header {
    padding: 0.625rem 0.875rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 0.6875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.dropdown-item,
.suggestion-item {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background-color 0.15s ease;
}

    .dropdown-item:last-child,
    .suggestion-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover,
    .dropdown-item--highlighted,
    .suggestion-item:hover,
    .suggestion-item.active {
        background: var(--gray-50);
    }

.suggestion-main {
    flex: 1;
}

.dropdown-item__name,
.suggestion-name {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-size: 0.8125rem;
}

.dropdown-item__meta,
.suggestion-details {
    font-size: 0.6875rem;
    color: var(--gray-500);
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.dropdown-item--recommended {
    background: var(--green-50);
    border-left: 3px solid var(--green-500);
}

    .dropdown-item--recommended:hover {
        background: #d4edda;
    }

.dropdown-item--no-results,
.suggestion-no-results {
    color: var(--gray-400);
    text-align: center;
    padding: 1.25rem;
    font-style: italic;
}

.suggestion-loading {
    text-align: center;
    padding: 1.25rem;
    color: var(--gray-500);
}

.suggestion-error {
    text-align: center;
    padding: 1.25rem;
    color: var(--red-500);
}

.conversion-progress,
.conversion-success,
.conversion-error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.375rem;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    text-align: center;
    z-index: 10;
    display: none;
}

.conversion-progress {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.conversion-success {
    background: var(--green-50);
    border: 1px solid var(--green-500);
    color: #166534;
}

.conversion-error {
    background: var(--red-50);
    border: 1px solid var(--red-500);
    color: #721c24;
}

/* ===================================
   IMAGE UPLOAD - COMPACT
   =================================== */

.aks-image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.upload-image {
    grid-column: 1 / -1;
}

.aks-current-image {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 250px;
}

.aks-current-preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.aks-current-image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aks-current-image-label {
    font-size: 0.6875rem;
    font-weight: 500;
}

.aks-remove-current-image-btn,
.aks-remove-image-btn {
    background: var(--red-500);
    color: white;
    border: none;
    padding: 0.25rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    cursor: pointer;
    transition: var(--transition);
}

    .aks-remove-current-image-btn:hover,
    .aks-remove-image-btn:hover {
        background: var(--red-600);
    }

.aks-image-preview {
    position: relative;
    max-width: 250px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.aks-preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.aks-image-upload-input {
    width: 100%;
}

.aks-upload-help-text {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.aks-validation-summary {
    background: #fef5e7;
    border: 1px solid #fbd38d;
    color: #744210;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.aks-validation-message {
    color: var(--red-500);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.aks-notification {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
}

.aks-notification--success {
    background: var(--green-50);
    color: #22543d;
    border: 1px solid var(--green-500);
}

.aks-notification--warning {
    background: #fff3cd;
    color: #744210;
    border: 1px solid #fbd38d;
}

.aks-notification-icon {
    font-size: 0.875rem;
}

/* ===================================
   RESPONSIVE - EDGE-TO-EDGE MOBILE
   =================================== */

@media (max-width: 1024px) {
    .aks-recipe-form {
        margin-left: 0;
        padding: 0.5rem;
        padding-bottom: 80px;
        max-width: 100%;
    }

    .aks-recipe-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding: 0.5rem;
        background: white;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
        gap: 1rem;
    }

    .aks-nav-item.active::before {
        display: none;
    }

    .aks-form-section,
    .aks-ingredients-section,
    .aks-steps-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .aks-form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ingredient-fields {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Quantity and Unit on same row for mobile */
    .quantity-input,
    .unit-input {
        display: inline-block;
        width: calc(50% - 0.25rem);
    }

    .quantity-input {
        margin-right: 0.5rem;
    }

    /* Create a sub-grid for quantity + unit on same row */
    .ingredient-quantity-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }


    .aks-step-meta-fields,
    .aks-step-meta-fields--optimized {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .aks-recipe-content-layout {
        padding: 0;
    }

    .aks-recipe-header {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .aks-content-panel {
        margin-bottom: 0.75rem;
    }

    .ingredients-header-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .aks-recipe-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .aks-recipe-header-actions {
        justify-content: center;
    }

    .aks-recipe-title {
        text-align: center;
        font-size: 1.25rem;
    }

    .aks-nav-item,
    .aks-nav-action {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .dropdown,
    .ingredient-suggestions-dropdown {
        min-width: 220px;
        max-width: 95vw;
    }

    .ingredients-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .aks-recipe-form {
        padding: 0.375rem;
        padding-bottom: 70px;
    }

    .aks-form-section,
    .aks-ingredients-section,
    .aks-steps-section {
        padding: 0.5rem;
        border-radius: var(--radius-sm);
    }

    .aks-recipe-nav {
        gap: 0.75rem;
        padding: 0.375rem;
    }

    .aks-nav-item,
    .aks-nav-action {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    .ingredient-row,
    .aks-step-row {
        padding: 0.5rem;
    }

    .aks-form-grid {
        gap: 0.625rem;
    }

    .ingredient-fields {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}