/* DC360 Logic (recipe logic, Libraries app updater). The DC360 buttons in Logic's top bar are inside Logic's own
   shadow DOM and are styled from dc360-logic.js; this file styles what DC360 adds to the page itself. */

/* Messages. */
.dc360-lg-toast {
    position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100003; max-width: 80vw; padding: 0.7rem 1.1rem;
    border-radius: 0.6rem; background: #1f2937; color: #fff; font: 600 0.9rem/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: opacity 0.3s;
}
.dc360-lg-toast.is-error { background: #b91c1c; }
.dc360-lg-toast.is-going { opacity: 0; }

/* The teacher's feedback box. */
.dc360-lg-modal-back { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.45); }
.dc360-lg-modal { width: min(640px, 92vw); max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: 0.75rem; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dc360-lg-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid #e5e7eb; }
.dc360-lg-modal-close { padding: 0.4rem 0.9rem; border: 0; border-radius: 0.45rem; background: #4338ca; color: #fff; font-weight: 700; cursor: pointer; }
.dc360-lg-modal-body { padding: 1rem; overflow: auto; }

/* The File menu (New, Save to DC360, Export): the same look as the shared Help menu. */
.dc360-lg-menu {
    position: fixed; z-index: 100000; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: #fff;
    border: 1px solid #cbd5e1; border-radius: 10px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2); font: 15px/1.4 Arial, Helvetica, sans-serif;
}
.dc360-lg-menu li { margin: 0; padding: 0; list-style: none; }
.dc360-lg-menu-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; color: #1f2937; background: none; border: 0;
    border-radius: 6px; font: inherit; text-align: left; cursor: pointer;
}
.dc360-lg-menu-item:hover, .dc360-lg-menu-item:focus-visible { background: #f1f5f9; outline: none; }
.dc360-lg-menu-key { margin-left: auto; padding-left: 16px; color: #6b7280; font-size: 13px; }
/* The free version (2026-10-24): what needs DC360 is greyed out and says so, as in the other free apps. */
.dc360-lg-menu-item.is-locked { flex-wrap: wrap; row-gap: 0; opacity: 0.55; cursor: not-allowed; }
.dc360-lg-menu-note { flex: 0 0 100%; font-size: 11px; font-style: italic; line-height: 1.2; }
/* Insert's sub-menus (the parts list's headings): they scroll if a list is long. */
.dc360-lg-sub { overflow-y: auto; }

/* The shared zoom on My Work pictures sits above Logic's own layers. */
.dcm-zoom { z-index: 100002 !important; }
