@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&family=Poppins:wght@400;500;600&display=swap');

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: #f8f9fa;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 920px;
  margin: 0 auto;
}

/* ====================== Header - Full width deep green ====================== */
header {
  background: #004d00;           /* deep green */
  color: white;
  padding: 35px 15px 45px;
  text-align: center;
  width: 100%;
  margin-bottom: 0;              /* নিচের section-এর সাথে কোনো ফাঁকা না রাখতে */
}

.logo-container {
  margin-bottom: 15px;
}

.logo-img {
  max-width: 180px; /* ডেস্কটপে */
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .logo-img {
    max-width: 130px; /* মোবাইলে আরও ছোট */
  }
}

.subtitle {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.instruction {
  font-size: 1.15rem;
  opacity: 0.92;
}

/* ====================== Sections - white cards ====================== */
.section {
  background: white;
  border-radius: 0 0 16px 16px;   /* উপরের কোনো rounded না, header-এর সাথে মিলে */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin: 0 auto 20px;            /* section গুলোর মধ্যে ছোট gap */
  padding: 20px 15px;             /* উপর-নিচ কম padding */
  max-width: 100%;
}

/* Upload + Frames section - আরও compact */
.upload-frames-section {
  padding: 15px;                  /* উপর-নিচ আরও কম */
}

.upload-area {
  text-align: center;          /* এটা দিলেই button center হয়ে যাবে */
  margin: 0 auto 20px;         /* উপর-নিচের gap ঠিক রাখতে */
  width: 100%;                 /* full width নিশ্চিত করতে */
}

.upload-btn {
  /* ... তোমার আগের স্টাইল ... */
  display: inline-block;       /* label হিসেবে inline-block রাখো */
  margin: 0 auto;              /* center alignment */
  background: #006400;
  color: white;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 14px 38px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,100,0,0.3);
  transition: all 0.25s;
  display: inline-block;
}

.upload-btn:hover {
  background: #007a00;
  transform: translateY(-2px);
}

#upload {
  display: none;                  /* default file chooser লুকানো */
}

.frames {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;                      /* frames গুলো কাছাকাছি */
  padding: 0;
}

.frames img {
  width: 105px;
  height: 105px;
  border-radius: 12px;
  object-fit: cover;
  border: 4px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.frames img:hover,
.frames img.selected {
  border-color: #004d00;
  transform: scale(1.06);
}

/* Canvas section - compact */
.canvas-section {
  padding: 20px 15px 30px;
}

.canvas-wrapper {
  margin: 0 auto 25px;
  max-width: 380px;
}

canvas {
  width: 100%;
  border-radius: 14px;
  border: 8px solid #f0f0f0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
  font-weight: 600;
}

input[type="range"] {
  width: 240px;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  background: #004d00;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.download-btn {
  background: #004d00;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 15px 45px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,77,0,0.35);
  transition: all 0.25s;
}

.download-btn:hover {
  background: #006400;
  transform: translateY(-3px);
}

/* Mobile adjustments */
@media (max-width: 580px) {
  header { padding: 28px 12px 38px; }
  .logo-img { max-width: 180px; }
  .subtitle { font-size: 1.4rem; }
  .frames img { width: 90px; height: 90px; }
  .canvas-wrapper { max-width: 340px; }
}