.upload-area {
  border: 2px dashed #dcdde1;
  border-radius: 16px;
  padding: 32px 20px;
  cursor: pointer;
  transition: 0.25s;
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: #6f00ff;
  background: #f4edff;
}

.upload-area span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #6c757d;
}

.status-text {
  font-size: 14px;
  margin: 10px 0;
}

.progress-container {
  display: none;
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #6f00ff;
  transition: width 0.3s ease;
}

.primary-btn {
  display: none;
  width: 100%;
  padding: 14px;
  background: #6f00ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.quality-box {
  display: none;
  margin: 20px 0;
  text-align: left;
}

.quality-box input {
  width: 100%;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.thumb {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
  background: #fff;
}

.thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.thumb small {
  display: block;
  margin-top: 4px;
  color: #555;
}
/* ===== Image Thumbnails (Rilegr Tools Consistency) ===== */
/* Layout */
.tool-box{
  max-width:1000px;
  text-align:center;
  margin: auto;
    padding: 80px 0;
}

/* Upload */
#uploadBtn{
  background:#6f00ff;
  color:#fff;
  padding:14px 42px;
  border-radius:8px;
  display:inline-block;
  cursor:pointer;
  font-weight:600;
}

/* Thumbnails */
#file-list{
  margin-top:40px;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
}

.file-item{
  position:relative;
  width:150px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px;
}

.file-item img{
  width:100%;
  height:100px;
  object-fit:contain;
}

/* Remove */
.remove-btn{
  position:absolute;
  top:-8px;
  right:-8px;
  width:22px;
  height:22px;
  border:none;
  border-radius:50%;
  background:#6f00ff;
  color:#fff;
  cursor:pointer;
}

/* Download */
#downloadBtn{
  margin-top:40px;
  background:#6f00ff;
  color:#fff;
  border:none;
  padding:14px 44px;
  font-size:16px;
  border-radius:8px;
}
#downloadBtn:disabled{
  opacity:.4;
}

/* SEO Content Box */
.seo-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-top: 40px;
}

.seo-box h2 {
  font-weight: 600;
  margin-bottom: 20px;
}

/* FAQ Section */
.faq-section {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 40px;
  margin: 60px auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.faq-section h2 {
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.accordion-item {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion-button {
  font-weight: 500;
  padding: 18px;
  border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
  background-color: #eef4ff;
  color: #000;
}

.accordion-body {
  padding: 18px;
  background: #fff;
}
.toolhero{padding:70px 0 60px;text-align:center; background:#f6f2ea}
.toolhero h1{font-weight:700}
.trust-row{margin-top:30px;font-size:14px;color:#6c757d}
.trust-row span{margin:0 15px}
.tool-box{max-width:850px;margin:auto;background:#fff;padding:35px;border-radius:16px;box-shadow:0 15px 40px rgba(0,0,0,0.08)}
video{width:100%;border-radius:10px;background:#000}
.time-display{font-weight:600;color:#6f42c1}
.btn-primary{background:#6f42c1;border:none}
.feature-card{background:#fff;border-radius:12px;padding:25px;text-align:center;box-shadow:0 10px 25px rgba(0,0,0,0.05)}
.feature-card h5{margin-top:15px;font-weight:600}
.faq-box{background:#fff;padding:30px;border-radius:15px;box-shadow:0 10px 25px rgba(0,0,0,0.05)}

.upload-highlight{
display:block;
border:2px dashed #6f42c1;
padding:20px;
text-align:center;
border-radius:12px;
cursor:pointer;
font-weight:600;
color:#6f42c1;
transition:.3s;
}

.upload-highlight:hover{
background:#f3edff;
}


@media (max-width: 768px) {

     .a4-container {
        height: 80vh;      /* 80% of screen height */
        width: auto;
        max-width: 95vw;
        aspect-ratio: auto;  /* Allow full height control */
    }

    #video {
        object-fit: cover;
    }

}

@media(min-width:992px){
  .a4-container {
        max-width: 380px;   /* Control width on desktop */
    }
}
.tool-section{
   padding-top:110px;
    padding-bottom:40px;
    background:#f8f9fa;
}

.scanner-card{
    background:#ffffff;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.a4-container {
    width: 100%;
    aspect-ratio: 210 / 297;  /* A4 ratio */
    background: #000;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto;
}

/* Camera video */
#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay frame */
.frame-overlay {
    position: absolute;
    inset: 15px;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 0 4000px rgba(0,0,0,0.45);
    pointer-events: none;
    border-radius: 6px;
}

.small-gallery{
    max-height:360px;
    overflow-y:auto;
}

.page-box{
    background:white;
    border-radius:8px;
    padding:4px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.page-box img{
    width:100%;
    aspect-ratio:210/297;
    object-fit:contain;
}

.btn-primary{
    background:linear-gradient(90deg,#6f42c1,#8e44ff);
    border:none;
}

.btn-primary:hover{
    opacity:0.9;
}






/* ===== SEO CONTENT SECTION ===== */
.bg-light{
    background:#f8f9fc !important;
}

.section-padding{
    padding:70px 0;
}

.section-padding h2{
    font-weight:700;
    color:#111;
}

.section-padding p{
    font-size:16px;
    line-height:1.7;
    color:#555;
}

.section-padding ul{
    padding-left:0;
    list-style:none;
}

.section-padding ul li{
    margin-bottom:10px;
    font-size:15px;
    color:#444;
    padding-left:25px;
    position:relative;
}

.section-padding ul li::before{
    content:"✔";
    position:absolute;
    left:0;
    color:#6f42c1;
    font-weight:bold;
}

/* ===== FAQ SECTION ===== */

#toolsFAQ .accordion-item{
    border:none;
    margin-bottom:15px;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

#toolsFAQ .accordion-button{
    background:#fff;
    font-weight:600;
    padding:18px 20px;
    border:none;
    box-shadow:none;
}

#toolsFAQ .accordion-button:not(.collapsed){
    background:linear-gradient(90deg,#6f42c1,#8e44ff);
    color:#fff;
}

#toolsFAQ .accordion-button:focus{
    box-shadow:none;
}

#toolsFAQ .accordion-body{
    background:#faf9ff;
    padding:20px;
    font-size:15px;
    color:#555;
}
/* ===== CATEGORY SECTION ===== */

.section-padding.bg-light .row > div{
    background:#fff;
    padding:30px 20px;
    border-radius:15px;
    box-shadow:0 5px 25px rgba(0,0,0,0.05);
    transition:all 0.3s ease;
}

.section-padding.bg-light .row > div:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(111,66,193,0.15);
}

.section-padding.bg-light h5{
    font-weight:700;
    margin-bottom:10px;
    color:#6f42c1;
}
/* ===== INTERNAL LINK SECTION ===== */

.section-padding a{
    color:#6f42c1;
    font-weight:600;
    text-decoration:none;
    transition:0.3s;
}

.section-padding a:hover{
    text-decoration:underline;
    color:#4e2ca3;
}

.section-padding.text-center{
    background:#fff;
    border-radius:20px;
    box-shadow:0 8px 30px rgba(0,0,0,0.05);
}
.section-padding h2{
    position:relative;
    display:inline-block;
    padding-bottom:10px;
}

.section-padding h2::after{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width:60px;
    height:3px;
    background:linear-gradient(90deg,#6f42c1,#8e44ff);
    border-radius:10px;
}
@media(max-width:768px){

.section-padding{
    padding:50px 15px;
}

.section-padding h2{
    font-size:22px;
}

.section-padding p{
    font-size:14px;
}

#toolsFAQ .accordion-button{
    font-size:14px;
}

}