/* Core viewer layout */
.luxa-flipbook-container { position: relative; background:#111; color:#fff; overflow:hidden; }
.luxa-viewer { width:100%; height:100%; position:absolute; inset:0; display:flex; flex-direction:column; }
.luxa-topbar, .luxa-bottombar { display:flex; gap:10px; align-items:center; padding:10px; background:rgba(17,24,39,.85); color:#fff; }
.luxa-topbar.centered { justify-content:center; }
.luxa-controls button { background:transparent; border:none; color:#fff; cursor:pointer; padding:6px 8px; }
.luxa-viewport { position:relative; flex:1 1 auto; background:#111; display:flex; align-items:center; justify-content:center; touch-action:pan-y; }
.luxa-pages { position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.luxa-page { position:absolute; width:90%; height:90%; max-width:1200px; max-height:95%; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.4); transform-origin:left center; backface-visibility:hidden; }
.luxa-page { transition: transform .45s ease; }
.luxa-page canvas, .luxa-page img { width:100%; height:100%; object-fit:contain; display:block; }
.luxa-hidden { display:none !important; }
.luxa-skeleton { background: repeating-linear-gradient( 90deg, #222, #333 100px ); animation: luxaShimmer 1.2s linear infinite; }
@keyframes luxaShimmer { to { background-position: 1000px 0; } }
.luxa-bottom-overlay { position:absolute; bottom:10px; left:0; right:0; display:flex; justify-content:center; pointer-events:none; }
.luxa-bottom-overlay .badge { background:rgba(0,0,0,.6); color:#fff; padding:4px 8px; border-radius:999px; pointer-events:auto; }

/* Layouts */
.layout-topbar_full .luxa-topbar { order:0; }
.layout-bottombar_full .luxa-topbar { display:none; }
.layout-bottombar_full .luxa-bottombar { display:flex; }
.layout-topbar_centered .luxa-topbar { justify-content:center; }
.layout-transparent_top .luxa-topbar { background:transparent; }

/* Lightbox */
.luxa-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.9); display:flex; align-items:center; justify-content:center; z-index:99999; }
.luxa-lightbox .luxa-flipbook-container { width:90vw; height:90vh; }

/* Skins base */
.luxa-skin-classic .luxa-topbar, .luxa-skin-classic .luxa-bottombar { background:rgba(17,24,39,.85); }
.luxa-skin-glass .luxa-topbar, .luxa-skin-glass .luxa-bottombar { background:rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.luxa-skin-minimal .luxa-topbar, .luxa-skin-minimal .luxa-bottombar { background:transparent; }

/* Controls */
.luxa-icon { width:20px; height:20px; display:inline-block; }
button[disabled] { opacity:.5; }

/* Mobile tweaks */
@media (max-width: 768px){
  .luxa-topbar, .luxa-bottombar { padding:8px; gap:6px; }
  .luxa-controls button { padding:4px 6px; font-size:14px; }
  .luxa-page { width:98%; height:92%; }
}
