/* ===========================
   Diet & Allergen Field Styling
   =========================== */
.menu-item-matched-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.menu-item-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-allergen {
    background: transparent;
    border: 1px solid #e05252;
    color: #e05252;
}

.tag-diet {
    background: transparent;
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.menu-item-card-image-wrap {
    position: relative;
    display: block;
}

.menu-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.badge-danger {
    background: #e05252;
    color: #fff;
}

.badge-success {
    background: #2ecc71;
    color: #fff;
    left: 8px;
}

/* ===========================
   Allergen / Diet Field Containers
   =========================== */
.directorist-diet-field,
.directorist-allergen-field {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.directorist-diet-field .directorist-form-label,
.directorist-allergen-field .directorist-form-label {
    font-size: 16px !important;
    line-height: 1.25;
    font-weight: 600 !important;
    margin-bottom: 12px;
    display: block;
    color: #333333;
}

.allergen-selected {
    font-weight: bold;
}

.allergen-display,
.diet-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    padding: 10px;
}

.allergen-item-label,
.diet-item-label {
    display: flex !important;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.allergen-item-label input,
.diet-item-label input {
    margin-right: 6px;
    accent-color: #0073aa;
    cursor: pointer;
}

.allergen-item-label:hover,
.diet-item-label:hover {
    background-color: #f0f8ff;
    border-color: #0073aa;
}

.allergen-item-label input:checked + span,
.diet-item-label input:checked + span {
    font-weight: 600;
    color: #0073aa;
}

.allergen-item-label span,
.diet-item-label span {
    pointer-events: none;
}

/* ===========================
   Allerscan Preferences
   =========================== */
.allerscan-preferences {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    max-width: 900px;
}

.allerscan-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.allerscan-group {
    margin-bottom: 32px;
}

.allerscan-group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.allerscan-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.allerscan-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s ease;
}

.allerscan-checkbox:hover {
    border-color: #2271b1;
    background: #f0f6ff;
}

.allerscan-checkbox input {
    position: absolute;
    opacity: 0;
}

.allerscan-checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.allerscan-checkbox input:checked + .allerscan-checkbox-label {
    color: #2271b1;
    font-weight: 600;
}

.allerscan-checkbox input:checked ~ .allerscan-checkbox-label::after {
    content: "✓";
    position: absolute;
    right: 12px;
    color: #2271b1;
    font-weight: bold;
}

.allerscan-save-btn {
    margin-top: 10px;
}

.allerscan-message {
    margin-top: 12px;
    font-weight: 500;
    display: none;
}

/* ===========================
   Restaurant Menu Manager
   =========================== */
.allerscan-menu-manager {
    max-width: 2100px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.allerscan-tab-content-container {
    flex: 1;
    padding: 5px;
}

.allerscan-nav-tabs.vertical {
    display: flex;
    flex-direction: column;
    width: 208px;
}

.allerscan-tabs-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
}

.allerscan-tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: 1px solid #fff6f6 !important;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.allerscan-tab-btn:hover {
    background: #e9e9e9 !important;
    color: #333 !important;
}

.allerscan-tab-btn.active {
    background: #0073aa !important;
    color: #fff !important;
}

.allerscan-tab-content {
    display: none;
}

.allerscan-tab-content.active {
    display: block;
}

/* ===========================
   Edit / Delete Buttons
   =========================== */
.edit-menu-item-btn,
.delete-menu-item-btn {
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.edit-menu-item-btn {
    background-color: #0073aa !important;
    color: white !important;
}

.edit-menu-item-btn:hover {
    background-color: white !important;
    color: #005a87 !important;
}

.delete-menu-item-btn {
    background-color: #dc3232;
    color: white;
}

.delete-menu-item-btn:hover {
    background-color: #a92828;
}

/* ===========================
   Modal
   =========================== */
.allerscan-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.allerscan-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 100%;
    max-width: 1300px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
    overflow-y: auto;
    position: relative;
}

.allerscan-modal-content h2 {
    margin: 0;
    padding: 20px 30px;
    background: #f0f0f0;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.allerscan-modal-content form {
    padding: 30px;
}

.allerscan-close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
    position: sticky;
    z-index: 1000;
}

.allerscan-close:hover,
.allerscan-close:focus {
    color: #333;
}

/* ===========================
   Forms
   =========================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label .required {
    color: #d94f4f;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none !important;
    border-color: #0073aa !important;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2) !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

/* ===========================
   Allergens / Diets Containers
   =========================== */
.allergens-container,
.diets-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    background-color: #f9f9f9 !important;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    border-radius: 3px;
}

.checkbox-label:hover {
    background: #fff;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

/* ===========================
   Image Containers
   =========================== */
#create-current-image-container img,
#edit-current-image-container img {
    display: block;
    height: auto;
    margin-top: 10px !important;
}

/* ===========================
   List Header
   =========================== */
.allerscan-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.allerscan-list-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

#search-menu-items {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 300px;
    transition: border-color 0.3s;
}

#search-menu-items:focus {
    outline: none;
    border-color: #0073aa;
}

/* ===========================
   Menu Items Table
   =========================== */
.allerscan-menu-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.allerscan-menu-table thead {
    background: #f9f9f9;
    border-bottom: 2px solid #e5e5e5;
}

.allerscan-menu-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.allerscan-menu-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #333;
    vertical-align: middle;
}

.allerscan-menu-table tbody tr:hover {
    background: #f9f9f9;
}

.allerscan-menu-table .image-cell {
    width: 80px;
}

.allerscan-menu-table .image-cell img {
    border-radius: 4px;
    display: block;
}

.allerscan-menu-table .no-image {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    line-height: 60px;
    color: #999;
}

.allerscan-menu-table .title-cell {
    font-weight: 600;
    width: 100px;
    color: #0073aa;
    cursor: pointer;
}

.allerscan-menu-table .title-cell:hover {
    text-decoration: underline;
}

.allerscan-menu-table .actions-cell {
    white-space: nowrap;
}

.allerscan-menu-table .actions-cell .button {
    margin-right: 8px;
}

/* ===========================
   Loading / No Items
   =========================== */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.no-items {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ===========================
   Pagination
   =========================== */
.pagination-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.allerscan-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.allerscan-pagination .page-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.allerscan-pagination .page-btn:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    color: #0073aa;
}

.allerscan-pagination .page-btn.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: 600;
}

/* ===========================
   Buttons
   =========================== */
.button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    color: #555;
}

.button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.button-small {
    padding: 6px 12px;
    font-size: 13px;
}

.button-link-delete {
    color: #d94f4f;
    border-color: #d94f4f;
}

.button-link-delete:hover {
    background: #d94f4f;
    color: #fff;
}

/* ===========================
   Messages
   =========================== */
.allerscan-message-container {
    margin: 15px 0;
}

.allerscan-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}

.allerscan-message-success,
.allerscan-message.success {
    background-color: #ecf7ed;
    border-left-color: #46b450;
    color: #2e7d32;
}

.allerscan-message-error,
.allerscan-message.error {
    background-color: #fef7f7;
    border-left-color: #dc3232;
    color: #c62828;
}

.allerscan-message.info {
    background-color: #f0f6fc;
    border-left-color: #0073aa;
    color: #01579b;
}

/* ===========================
   Small Modal (Delete Confirm)
   =========================== */
.allerscan-modal-small {
    max-width: 400px;
    padding: 25px;
}

.allerscan-modal-small h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #721c24;
}

.allerscan-modal-small p {
    margin-bottom: 20px;
    line-height: 1.6;
}

#confirm-delete-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#confirm-delete-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* ===========================
   Menu Item Wrapper (Single)
   =========================== */
.allerscan-menu-item-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.allerscan-menu-item-wrapper h1.menu-item-title {
    font-size: 2em;
    margin-bottom: 20px;
}

.allerscan-menu-item-wrapper .menu-item-image {
    margin-bottom: 20px;
    overflow: hidden;
}

.allerscan-menu-item-wrapper .menu-item-image img {
    width: 100%;
}

.allerscan-menu-item-wrapper p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.allerscan-menu-item-wrapper .menu-item-description {
    margin-top: 15px;
}

.allerscan-menu-item-wrapper a {
    color: #0073aa;
    text-decoration: none;
}

.allerscan-menu-item-wrapper a:hover {
    text-decoration: underline;
}

/* ===========================
   Allerscan Modal (Restaurant Page)
   =========================== */
#allerscan-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

#allerscan-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

#allerscan-modal .modal-content {
    position: relative;
    width: 1150px;
    max-width: 92%;
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: 85vh;
    overflow-y: auto;
}

#allerscan-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.7;
}

#allerscan-modal .modal-close:hover {
    opacity: 1;
}

/* ===========================
   Restaurant Menu Layout
   =========================== */
.allerscan-menu {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 720px;
    color: #1a1a1a;
}

.allerscan-menu h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Section */
.menu-section {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.menu-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    user-select: none;
}

.menu-section-header:hover {
    background: #f9f9f9;
}

.menu-section-header.open {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.menu-section-title {
    font-size: 1rem;
    font-weight: 600;
}

.menu-section-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-section-count {
    font-size: 0.8rem;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
}

.menu-section-arrow {
    font-size: 0.75rem;
    color: #aaa;
    transition: transform 0.25s;
    display: inline-block;
}

.menu-section-header.open .menu-section-arrow {
    transform: rotate(180deg);
}

/* Items Grid */
.menu-section-items {
    display: none;
    padding: 12px;
    background: #fafafa;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/* Item Card */
.menu-item-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.menu-item-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.menu-item-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.menu-item-card-placeholder {
    width: 100%;
    height: 120px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.menu-item-card-body {
    padding: 10px 12px;
}

.menu-item-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-card-price {
    font-size: 0.85rem;
    color: #2a7a2a;
    font-weight: 600;
}

/* ===========================
   Modal Overlay (Menu Detail)
   =========================== */
.allerscan-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    padding: 20px;
}

.allerscan-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.allerscan-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.allerscan-modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

.allerscan-modal-image img,
.allerscan-detail-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    display: block;
}

.allerscan-detail-content {
    padding: 20px 24px 28px;
}

#allerscan-modal-body {
    padding: 0;
}

.allerscan-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-right: 36px;
    color: #1a1a1a;
}

/* Meta rows */
.allerscan-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.allerscan-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.allerscan-meta-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #888;
    min-width: 110px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 3px;
}

.allerscan-meta-value {
    font-size: 0.95rem;
    color: #1a1a1a;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Description */
.allerscan-modal-description {
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: 4px;
}

.allerscan-modal-description p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 6px 0 0;
}

/* Restaurant link */
.allerscan-modal-link {
    color: #2a7a2a;
    text-decoration: none;
    font-weight: 500;
}

.allerscan-modal-link:hover {
    text-decoration: underline;
}

/* Allergen / Diet tags */
.allerscan-tag {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.allerscan-tag.allergen {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6c2;
}

.allerscan-tag.diet {
    background: #f0fff4;
    color: #27ae60;
    border: 1px solid #b7eac8;
}

/* ===========================
   Header Action Buttons
   =========================== */
.theme-menu-action-box__add-listing {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-menu-action-box__add-listing .btn-add-listing {
    background-color: #007bff;
    color: #fff;
    border: none;
    transition: background 0.3s;
}

.theme-menu-action-box__add-listing .btn-add-listing:hover {
    background-color: #0056b3;
}

.theme-menu-action-box__add-listing .btn-contact-us {
    background-color: #28a745;
    color: #fff;
    border: none;
    transition: background 0.3s;
}

.theme-menu-action-box__add-listing .btn-contact-us:hover {
    background-color: #1e7e34;
}

/* ===========================
   Import / Export Tab
   =========================== */
#tab-import-export {
    max-width: 800px;
}

#tab-import-export h2 {
    margin-bottom: 20px;
    color: #23282d;
}

.allerscan-section-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.allerscan-section-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #23282d;
}

.allerscan-section-card p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.status-message {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    vertical-align: middle;
}

#user-import-progress {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#user-import-progress-bar {
    width: 100%;
    height: 30px;
    border-radius: 3px;
    margin-bottom: 10px;
}

#user-import-progress-bar::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 3px;
}

#user-import-progress-bar::-webkit-progress-value {
    background-color: #0073aa;
    border-radius: 3px;
    transition: width 0.3s ease;
}

#user-import-progress-bar::-moz-progress-bar {
    background-color: #0073aa;
    border-radius: 3px;
}

#user-import-progress-text {
    margin: 10px 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

input[type="file"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    max-width: 100%;
}

input[type="file"]:hover {
    border-color: #0073aa;
}

.description {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* ===========================
   Responsive
   =========================== */
@media screen and (max-width: 768px) {
    .allerscan-menu-manager {
        margin: 10px;
    }

    .allerscan-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #search-menu-items {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .allerscan-menu-table {
        font-size: 13px;
    }

    .allerscan-menu-table th,
    .allerscan-menu-table td {
        padding: 10px 8px;
    }

    .allerscan-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .allerscan-pagination {
        flex-wrap: wrap;
    }

    .allerscan-section-card {
        padding: 15px;
    }

    .form-actions .button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .status-message {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }

    .theme-menu-action-box__add-listing {
        justify-content: center;
    }

    .theme-menu-action-box__add-listing .btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    #allerscan-modal .modal-content {
        width: 92%;
        margin: 40px auto;
        padding: 20px;
        max-height: 88vh;
    }

    .allerscan-modal-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    #allerscan-modal .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 16px;
        border-radius: 10px;
        max-height: 92vh;
    }

    #allerscan-modal .modal-close {
        top: 12px;
        right: 12px;
        font-size: 18px;
    }

    .allerscan-modal-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .allerscan-modal-image img {
        border-radius: 8px;
    }

    .allerscan-meta-row {
        flex-direction: column;
        gap: 2px;
    }

    .allerscan-meta-label {
        min-width: auto;
        font-size: 14px;
    }

    .allerscan-meta-value {
        font-size: 14px;
    }

    .allerscan-modal-description p {
        font-size: 14px;
    }
}