/* Label Crop app (dropinvoice.in/app) — the premium, animated look. Only this site loads it,
 * so the scan app and Admin (which share crop.js / crop.css) are not changed. */
body.lcs-app { --lp-gold: #e0a83a; --lp-gold2: #f3d27a; --lp-night: #0f1830; }
.lcs-app .lcs-bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -26px rgba(20, 33, 61, .6); }
.lcs-app .lcs-bar .logo i { background: linear-gradient(135deg, #e0a83a, #f3d27a); color: #1b1404; box-shadow: 0 6px 14px -6px rgba(201, 138, 26, .9); }
.lcs-app .lcs-pill { position: relative; overflow: hidden; }
.lcs-app .lcs-pill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-100%); animation: lp-shim 3.4s ease-in-out infinite; }
@keyframes lp-shim { 60%, 100% { transform: translateX(100%); } }
.lcs-app .lcs-bar .btn.ghost { transition: transform .2s, box-shadow .2s, border-color .2s; }
.lcs-app .lcs-bar .btn.ghost:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(20, 33, 61, .5); border-color: #d2a24a; }
.lcs-app .lcs-bar [data-act="sample"] { background: linear-gradient(90deg, #fff, var(--gold-soft)); }

/* drop zone: moving gold border + floating PDFs */
.lcs-app .lc-drop { position: relative; overflow: hidden; border: 0; min-height: 150px; transition: transform .3s, background .3s; }
.lcs-app .lc-drop .lp-ants { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lcs-app .lc-drop .lp-ants rect { fill: none; stroke: #c98a1a; stroke-width: 2; stroke-dasharray: 10 8; opacity: .6; animation: lp-ants 1.2s linear infinite; }
@keyframes lp-ants { to { stroke-dashoffset: -36; } }
.lcs-app .lc-drop:hover .lp-ants rect, .lcs-app .lc-drop.is-over .lp-ants rect { opacity: 1; stroke-width: 2.6; }
.lcs-app .lc-drop.is-over { transform: scale(1.01); background: linear-gradient(180deg, var(--surface), var(--gold-soft)); }
.lcs-app .lc-drop > *:not(.lp-ants):not(.lp-flo) { position: relative; z-index: 1; }
.lcs-app .lp-flo { position: absolute; width: 34px; height: 44px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 20px -12px rgba(20, 33, 61, .5); display: grid; place-items: end center; padding-bottom: 5px; font: 800 8px var(--mono); color: #b42318; animation: lp-bob 4s ease-in-out infinite; pointer-events: none; }
.lcs-app .lp-flo::before { content: ''; position: absolute; top: 7px; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: #d7dce5; box-shadow: 0 6px 0 #e4e8ef, 0 12px 0 #e4e8ef; }
@keyframes lp-bob { 50% { transform: translateY(-8px) rotate(4deg); } }
.lcs-app .lc-file.lp-new { animation: lp-slide .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lp-slide { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* segmented options: one dark pill that slides to the choice */
.lcs-app .lc-seg { position: relative; }
.lcs-app .lc-seg .lp-ind { position: absolute; z-index: 0; border-radius: 10px; background: var(--lp-night); box-shadow: 0 6px 14px -6px rgba(15, 24, 48, .7); pointer-events: none; }
.lcs-app .lc-seg .lp-ind.go { transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1); }
.lcs-app .lc-seg.lp-has button { z-index: 1; }
.lcs-app .lc-seg.lp-has button.on { background: transparent; border-color: transparent; box-shadow: none; }
.lcs-app .lc-check input[type='checkbox']:checked { background: var(--lp-night); border-color: var(--lp-night); }
.lcs-app .lc-check input[type='checkbox']::after { border-color: var(--lp-gold2); }
.lcs-app .lc-check:has(input:checked) { background: color-mix(in srgb, var(--gold-soft) 70%, var(--surface)); }

/* live preview: a warm frame */
.lcs-app .lc-pv { border-color: #ecd59a; box-shadow: 0 24px 44px -24px rgba(201, 138, 26, .45); }

/* crop buttons: gold with a moving shine */
.lcs-app .lc-go:not(:disabled), .lcs-app .lc-dock-go:not(:disabled) { color: #1b1404; background: linear-gradient(90deg, #e0a83a, #f3d27a, #e0a83a); background-size: 200% 100%; animation: lp-sheen 4s linear infinite; box-shadow: 0 14px 28px -14px rgba(201, 138, 26, .9); border-color: transparent; }
@keyframes lp-sheen { to { background-position: -200% 0; } }
.lcs-app .lc-dock-in { background: rgba(15, 24, 48, .95); border: 1px solid rgba(243, 210, 122, .18); }
.lcs-app .lc-dock-in.lp-done { animation: lp-pulse 1.2s ease; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(243, 210, 122, .6), 0 18px 40px -12px rgba(10, 18, 36, .55); } 100% { box-shadow: 0 0 0 22px rgba(243, 210, 122, 0), 0 18px 40px -12px rgba(10, 18, 36, .55); } }

/* the cropping window: the realistic scissors cut while your files are read */
.lp-ov { position: fixed; inset: 0; z-index: 70; background: rgba(15, 24, 48, .72); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; padding: 16px; }
.lp-ov.on { opacity: 1; pointer-events: auto; }
.lp-ovc { width: min(560px, 100%); background: var(--lp-night, #0f1830); color: #eef2f8; border-radius: 24px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .08); transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lp-ov.on .lp-ovc { transform: none; }
.lp-ovc .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lp-ovc .hd b { font-size: 18px; }
.lp-ovc .hd span { font: 700 13px var(--mono); color: #f3d27a; white-space: nowrap; }
.lp-ovc .stage { position: relative; height: min(52vh, 440px); border-radius: 16px; background: radial-gradient(120% 80% at 50% 0%, #1d2c55, #0b1226); overflow: hidden; }
.lp-ovc .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lp-ovc .bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, #e0a83a, #f3d27a); box-shadow: 0 0 12px #f3d27a; animation: lp-run 1.4s ease-in-out infinite; }
@keyframes lp-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.lp-ovc .msg { font-size: 13px; color: #b9c3d6; min-height: 1.4em; }
.lp-spark { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #f3d27a; box-shadow: 0 0 8px #f3d27a; pointer-events: none; z-index: 89; animation: lp-spark .9s ease-out forwards; }
@keyframes lp-spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .lcs-app *, .lcs-app *::before, .lcs-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The top bar stays on screen while you scroll. (The bar sat inside #lcs-top, a box exactly its own
 * height, so "sticky" on the bar had no room to move: the wrapper is the sticky one now.) */
#lcs-top { position: sticky; top: 0; z-index: 40; }
.lcs-app .lcs-bar { position: relative; }
.lcs-app .lc-pv-slot { top: 84px; }

/* The move to dropinvoice.in: one quiet line on the sign-in form. */
.lcs-moved { margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; background: rgba(224, 168, 58, .12); border: 1px solid rgba(224, 168, 58, .35); color: inherit; }
