/* === Styles for the Menu Generator Form === */
.mg-container {
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-top: 4px solid #2f855a;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    width: 100%;
    max-width: 760px;
    margin: 2rem auto;
    padding: 2.25rem;
    box-sizing: border-box;
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
}

.mg-container h1 {
    color: #111827;
    font-size: 2.25rem;
    line-height: 1.1;
    margin: 0 0 0.5rem;
    text-align: center;
}

.mg-container p {
    color: #596675;
    font-size: 1rem;
    line-height: 1.45;
    margin: 0 0 1.75rem;
    text-align: center;
}

.mg-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.mg-form-group label {
    color: #334155;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.mg-container select {
    appearance: auto;
    background-color: #ffffff;
    border: 1px solid #b9c5d1;
    border-radius: 7px;
    box-sizing: border-box;
    color: #111827;
    font-size: 1rem;
    min-height: 48px;
    padding: 11px 13px;
    width: 100%;
}

.mg-container select:focus {
    border-color: #2f855a;
    box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.18);
    outline: none;
}

.mg-loader {
    animation: mg-spin 1s linear infinite;
    border: 4px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #2f855a;
    height: 30px;
    margin: 1rem auto 0;
    width: 30px;
}

.mg-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 7px;
    color: #be123c;
    font-weight: 700;
    margin: 1rem 0 0;
    padding: 0.75rem 0.9rem;
}

.mg-dashboard-header {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin: 1.5rem 0 0.6rem;
}

#mg-refresh-statuses {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

#mg-refresh-statuses:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

#mg-menu-dashboard {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}

.menu-button-row {
    align-items: center;
    border-bottom: 1px solid #e7edf3;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, max-content) 1fr;
    margin: 0;
    padding: 0.85rem 1rem;
}

.menu-button-row:last-child {
    border-bottom: none;
}

.menu-button-row.condensed-row {
    background: #fbfcfe;
    grid-template-columns: minmax(180px, max-content) 1fr;
    padding-left: 2rem;
}

button.mg-generate-btn {
    align-items: center;
    background: #2457c5;
    border: 1px solid #1d4ed8;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    padding: 10px 15px;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

button.mg-generate-btn:hover {
    background: #1d4ed8;
    border-color: #1e40af;
    transform: translateY(-1px);
}

button.mg-generate-btn:disabled {
    background: #9fb7ea;
    border-color: #9fb7ea;
    cursor: not-allowed;
    transform: none;
}

.menu-status,
.menu-status-placeholder {
    color: #4b5563;
    font-size: 0.95rem;
    justify-self: end;
    line-height: 1.35;
    text-align: right;
}

.status-positive {
    color: #2f855a;
    font-weight: 800;
}

.status-negative {
    color: #c2410c;
    font-weight: 800;
}

.status-error {
    color: #be123c;
    font-size: 0.9rem;
    font-weight: 800;
}

.mg-status-loader {
    animation: mg-spin 0.8s linear infinite;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #64748b;
    display: inline-block;
    height: 14px;
    margin-left: 5px;
    vertical-align: middle;
    width: 14px;
}

@keyframes mg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .mg-container {
        margin: 1rem auto;
        padding: 1.25rem;
    }

    .mg-container h1 {
        font-size: 1.8rem;
    }

    .menu-button-row,
    .menu-button-row.condensed-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.85rem;
    }

    .menu-button-row.condensed-row {
        padding-left: 1.25rem;
    }

    button.mg-generate-btn {
        width: 100%;
    }

    .menu-status,
    .menu-status-placeholder {
        justify-self: start;
        text-align: left;
    }
}

