/* ── Bouton flottant ───────────────────────────────────────────── */
.floating-menu-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #2E3033;
    color: #e0e0e0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-menu-button:hover {
    background: #EA580C;
    color: #fff;
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35);
}

/* ── Overlay modal ─────────────────────────────────────────────── */
.modal-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ── Boîte du menu ─────────────────────────────────────────────── */
.modal-menu-content {
    background-color: #1e1e1e;
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-menu-overlay.show .modal-menu-content {
    transform: scale(1);
}

.modal-menu-content h3 {
    color: #f8f9fa;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #888;
}

/* ── Liens ─────────────────────────────────────────────────────── */
.modal-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-menu-links a {
    color: #e0e0e0;
    padding: 0.85rem 1rem;
    text-decoration: none;
    display: block;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.15s ease;
}

.modal-menu-links a:hover {
    background-color: #EA580C;
    border-color: #EA580C;
    color: #fff;
    transform: translateX(4px);
}

.modal-menu-separator {
    height: 1px;
    background: #333;
    margin: 4px 0;
}

.modal-menu-print-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 10px;
    color: #EA580C;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.modal-menu-print-btn:hover {
    background: #EA580C;
    border-color: #EA580C;
    color: #fff;
    transform: translateX(4px);
}

/* ── Modal impression ───────────────────────────────────────────── */
.llab-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    transition: opacity .25s;
}
.llab-modal-overlay.visible { opacity: 1; }

.llab-modal-box.llab-print-box {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 22px 24px 18px;
    width: 92vw;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7);
    color: #f2f2f2;
}

.llab-print-header { display: flex; align-items: center; justify-content: space-between; }
.llab-print-title  { font-size: 1rem; font-weight: 700; }

.llab-print-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 4px;
}
.llab-print-tab {
    flex: 1;
    padding: 8px 6px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #888;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.llab-print-tab.active {
    background: #EA580C;
    color: #fff;
}

.llab-print-panel { display: none; flex-direction: column; gap: 12px; }
.llab-print-panel.active { display: flex; }

.llab-print-field { display: flex; flex-direction: column; gap: 5px; }
.llab-print-label { font-size: 0.78rem; font-weight: 600; color: #aaa; }
.llab-print-label small { font-weight: 400; color: #666; }

.llab-print-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #f2f2f2;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    outline: none;
    transition: border-color .15s;
}
.llab-print-input:focus { border-color: #EA580C; }
.llab-print-textarea { resize: none; line-height: 1.5; }

.llab-charcount { font-size: 0.72rem; color: #555; text-align: right; }

.llab-print-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.llab-print-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 4px 8px;
}
.llab-pqty-btn {
    background: none;
    border: none;
    color: #EA580C;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}
.llab-print-qty span { font-size: 0.95rem; font-weight: 700; min-width: 20px; text-align: center; }

/* Aperçu étiquette */
.llab-label-preview {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    width: min(380px, 80vw);
    aspect-ratio: 4 / 1;
    align-self: center;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    color: #000;
    font-family: 'Courier New', monospace;
    position: relative;
    flex-shrink: 0;
}
.llab-label-preview::after {
    content: 'APERÇU';
    position: absolute;
    top: 3px; right: 4px;
    font-size: 0.22rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(0,0,0,0.15);
    font-family: sans-serif;
    pointer-events: none;
}
.llab-preview-logo {
    width: 26%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ccc;
    background: #f8f8f8;
    padding: 4px 5px;
}
.llab-prev-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.llab-preview-dlc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}
.llab-prev-day  { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llab-prev-date { font-size: 1.3rem; font-weight: 900; color: #000; line-height: 1.0; white-space: nowrap; }
.llab-prev-note { font-size: 0.5rem; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.llab-preview-text-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}
.llab-prev-text-line  { font-size: 0.6rem; font-weight: 600; color: #111; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.llab-prev-placeholder { font-size: 0.52rem; color: #bbb; font-style: italic; font-family: sans-serif; text-align: center; }

/* Footer modal */
.llab-print-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.llab-print-submit {
    background: #EA580C !important;
    color: #fff !important;
    border: none !important;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    outline: none !important;
}
.llab-print-submit:hover  { opacity: .88; }
.llab-print-submit:active { transform: scale(.96); }

.llab-btn.ghost {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #888 !important;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none !important;
}
.llab-btn.ghost:hover { border-color: rgba(255,255,255,.3) !important; color: #f2f2f2 !important; }

/* Point statut PC dans la modal */
.llab-modal-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
    flex-shrink: 0;
    transition: background .3s, box-shadow .3s;
    cursor: help;
}
.llab-modal-status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 7px rgba(34,197,94,0.75);
    animation: llab-kiosk-blink 2.4s ease-in-out infinite;
}
.llab-modal-status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 7px rgba(239,68,68,0.55);
}
@keyframes llab-kiosk-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

/* Toast */
#ldcnav-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e1e1e;
    color: #f2f2f2;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 1200;
}
#ldcnav-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
