/* =========================================
   DIGISHOT PREMIUM CSS (Back to Old Style + New Features)
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; 
  font-family: sans-serif;
  background-color: #5a1818 !important; /* Aapka purana Maroon */
}

/* 1. Dynamic Background Layer (New) */
#app-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: background-image 0.6s ease;
}

/* 2. Aapka Purana Dotted Pattern (New Layer pe apply kiya) */
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#350a0a 2px, transparent 2px) !important;
  background-size: 20px 20px !important;
  opacity: 0.8;
  pointer-events: none;
}

/* 3. Snowfall Layer */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Preloader */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Logo Animation (Optional but Premium) */
.logo-circle {
    display: flex; flex-direction: column; align-items: center;
}
.text-digi { color: #fff; font-weight: bold; font-size: 24px; }
.text-shot { color: #666; font-size: 18px; letter-spacing: 2px; }

/* App Layout */
.app-shell {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 5; /* Taaki buttons aur book upar rahein */
}

.viewer-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

/* Left Aligned Buttons (Aapka Purana Style) */
.bottom-bar-fixed {
  position: fixed !important;
  bottom: 15px !important;
  left: 15px !important;
  width: auto !important;
  background: transparent !important;
  display: flex !important;
  gap: 10px !important;
  z-index: 1000 !important;
}

.control-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important; 
  background: rgba(255, 255, 255, 0.1) !important; 
  color: #fff !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1) !important;
}

/* Hard Cover & Pages */
.hard {
  background-color: #2c2e33 !important;
  background-size: cover; /* Cover image ke liye zaroori */
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.page { 
    background-color: #ffffff !important; 
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

/* Mobile specifically */
@media
