/* =====================================================================
   Admin Notifications & Food Push (module 900320) — an- prefix
   Complements the shared om- classes; v2 dark tokens.
   ===================================================================== */

/* Compose form fields ------------------------------------------------ */
.an-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #B7C0BD;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 16px 0 6px;
}
.an-field-label i { color: #2DD4BF; font-size: 11px; }

.an-input {
    width: 100%;
    background: #070B0A;
    border: 1px solid #26302D;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s ease;
    font-family: inherit;
}
.an-input:focus { border-color: #22C55E; }
.an-input::placeholder { color: #78827F; }
textarea.an-input { resize: vertical; min-height: 64px; line-height: 1.5; }

/* Compose image preview ---------------------------------------------- */
.an-image-preview {
    position: relative;
    display: inline-block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #26302D;
    background: #070B0A;
    max-width: 320px;
}
.an-image-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}
.an-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(7, 11, 10, 0.75);
    color: #EF4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.an-image-pick { padding: 10px 16px; font-size: 13px; }

/* Enable switch ------------------------------------------------------- */
.an-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.an-switch input { opacity: 0; width: 0; height: 0; }
.an-switch-slider {
    position: absolute;
    inset: 0;
    background: #26302D;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.an-switch-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #B7C0BD;
    transition: transform 0.2s ease, background 0.2s ease;
}
.an-switch input:checked + .an-switch-slider { background: #22C55E; }
.an-switch input:checked + .an-switch-slider::before {
    transform: translateX(18px);
    background: #FFFFFF;
}

/* Preview (push mock) ------------------------------------------------- */
.an-preview { margin-top: 14px; }
.an-preview-phone {
    max-width: 360px;
    border-radius: 16px;
    background: #070B0A;
    border: 1px solid #26302D;
    padding: 14px;
}
.an-preview-img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}
.an-preview-title { color: #FFFFFF; font-weight: 700; font-size: 14px; }
.an-preview-msg { color: #B7C0BD; font-size: 13px; margin-top: 4px; line-height: 1.5; }
.an-preview-meta { color: #78827F; font-size: 11px; margin-top: 8px; }
.an-preview--empty {
    color: #FACC15;
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.06);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

/* History thumbnails -------------------------------------------------- */
.an-history-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #26302D;
    display: block;
}