/* ========== GLOBAL STYLES ========== */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #050816;
  color: #f9fafb;
}

/* App wrapper so footer can sit at bottom */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sidebar + main layout */
.layout {
  flex: 1;
  display: flex;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 260px;
  background: #020617;
  border-right: 1px solid rgba(148, 163, 184, 0.4);
  padding: 20px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tagline {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 20px;
}

.nav-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.tool-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.9rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: background 0.2s, transform 0.1s;
}

.tool-btn span.label {
  pointer-events: none;
}

.tool-btn span.tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #9ca3af;
}

.tool-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.tool-btn.active {
  background: linear-gradient(135deg, #22c55e, #a855f7);
  color: #020617;
}

.tool-btn.active span.tag {
  border-color: rgba(15, 23, 42, 0.7);
  color: #020617;
  background: rgba(248, 250, 252, 0.7);
}

/* ========== MAIN AREA ========== */
.main {
  flex: 1;
  padding: 20px 28px;
}

header {
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
}

header p {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ========== TOOL SECTIONS ========== */
.tool-section {
  display: none;
  margin-top: 14px;
}

.tool-section.active {
  display: block;
}

/* ========== CARD ========== */
.card {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 40%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.22), transparent 45%),
    #020617;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 18px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #9ca3af;
}

/* ========== FORM ELEMENTS ========== */
label {
  font-size: 0.85rem;
  display: block;
  margin: 10px 0 4px;
}

input[type="file"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-size: 0.9rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input[type="range"] {
  width: 100%;
}

/* Row layout for two columns (desktop) */
.row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.row > div {
  flex: 1;
}

/* Buttons */
.btn {
  margin-top: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(135deg, #22c55e, #a855f7);
  color: #020617;

  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* Preview area with original + converted image */
.preview {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.preview img {
  max-width: 260px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.preview-info {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Small info badges */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  margin-right: 4px;
  margin-top: 4px;
}

/* ========== FOOTER POWERED BY GROWNITI LABS ========== */

.site-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  text-align: center;
}

.footer-toggle {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #a855f7);
  color: #020617;
  font-weight: 600;
}

/* Modal container – hidden by default */
.footer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 50;
}

/* When open */
.footer-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Dark overlay behind the window */
.footer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

/* The actual info window */
.footer-modal__content {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 16px;
  background: #020617;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.footer-modal__content h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.footer-modal__content p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-modal__content ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  font-size: 0.9rem;
}

.footer-modal__content li {
  margin-bottom: 4px;
}

.footer-modal__content a {
  color: #22c55e;
  text-decoration: none;
}

.footer-modal__content a:hover {
  text-decoration: underline;
}

/* Close (X) button */
.footer-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Brand block with logo + text */
.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Square rounded logo container (matches your app style) */
/* Brand block with logo + text */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Logo holder */
/* Brand block with logo + text */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Logo container */
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make the logo FILL the box and zoom a bit */
/* Brand block with logo + text */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Desktop: larger square logo */
.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make the logo fill the box + light zoom */
/* ===== Brand area with logo + text (sidebar) ===== */

.brand-simple {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* This is the key: fixed size like your navbar icon */
.brand-logo-img {
  width: 74px;          /* you can use 64 if 74 feels big */
  height: 74px;
  border-radius: 16px;  /* smooth rounded corners */
  display: block;
  border:3px solid #ffffff
}

/* Text next to logo */
.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 0.8rem;
  color: #38bdf8;
  white-space: nowrap;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .brand-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-slogan {
    font-size: 0.72rem;
  }
}



.sidebar {
  width: 280px;                 /* <-- main fix */
  min-width: 260px;             /* don’t let it shrink */
  background: #0b1220;
  padding: 16px 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.25);
}
.brand-slogan {
  font-size: 0.8rem;
  color: #38bdf8;
  white-space: normal;     /* allow wrapping */
  line-height: 1.2;
}



/* ========== RESPONSIVE: MOBILE/TABLET ========== */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;   /* sidebar on top, main below */
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    padding: 12px 16px;
	min-width: unset;
  }

  .brand {
    font-size: 1.2rem;
  }

  .tagline {
    margin-bottom: 12px;
  }

  .main {
    padding: 14px 16px 24px;
  }

  header h1 {
    font-size: 1.3rem;
  }

  header p {
    font-size: 0.8rem;
  }

  .row {
    flex-direction: column;   /* stack form fields vertically */
  }

  .preview {
    flex-direction: column;   /* original & converted stacked */
  }

  .preview img {
    max-width: 100%;
  }

  .footer-modal__content {
    margin: 24px 16px;
    padding: 18px 18px 20px;
  }
    .brand-name {
    font-size: 1rem;
  }

  .brand-slogan {
    font-size: 0.72rem;
	white-space: normal;
  }

}
.hidden { display:none; }

#compress-download{
  margin-top:10px;
  display:inline-block;
}
/* Primary Action Button */
.primary-btn{
  background: linear-gradient(135deg,#3bff9c,#7a7dff);
  border:none;
  color:#fff;
  padding:10px 18px;
  border-radius:14px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition: all .2s ease;
  margin-top:10px;
}

.primary-btn:hover{
  opacity:.9;
  transform: translateY(-1px);
}

/* Secondary download button */
.secondary-btn{
  margin-left:12px;
  color:#9ecbff;
  font-weight:600;
  text-decoration:none;
}

.secondary-btn:hover{
  text-decoration:underline;
}

/* Align both buttons like others */
.tool-actions{
  display:flex;
  align-items:center;
  margin-top:10px;
}
.hidden { display:none; }
.tool-actions { display:flex; }
.primary-btn {...}
.grow-footer-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 12px;
  width: 100%;
}

.grow-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(135deg, #6ee7b7, #93c5fd);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grow-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* ======= MODAL (Responsive / Mobile friendly) ======= */
.gn-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.gn-modal.is-open {
  display: block;
}

.gn-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
}

.gn-modal-dialog {
  position: relative;
  width: min(720px, 92vw);
  max-height: min(80vh, 640px);
  margin: 10vh auto 0 auto;
  background: rgba(20, 24, 40, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  color: #eaf0ff;
  overflow: hidden;
}

@media (max-width: 520px) {
  .gn-modal-dialog {
    margin: 8vh auto 0 auto;
    width: 94vw;
    max-height: 84vh;
    border-radius: 12px;
  }
}

.gn-modal-title {
  margin: 0;
  padding: 16px 18px 10px 18px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.gn-modal-body {
  padding: 14px 18px 18px 18px;
  overflow: auto;
  max-height: calc(80vh - 120px);
  line-height: 1.55;
  font-size: 14px;
}

.gn-modal-body h4 {
  margin: 14px 0 8px 0;
  font-size: 15px;
}

.gn-modal-body p, .gn-modal-body li {
  opacity: 0.95;
}

.gn-modal-body ul {
  padding-left: 18px;
  margin: 8px 0 0 0;
}

.gn-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.gn-modal-close:hover {
  background: rgba(255,255,255,0.10);
}

.gn-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Optional: match your pill/button style */
.gn-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}

.gn-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #eaf0ff;
}
.legal-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.legal-modal.is-open { display: block; }

.legal-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}

.legal-modal__content {
  position: relative;
  width: min(92vw, 520px);
  max-height: 80vh;
  overflow: auto;
  margin: 10vh auto;
  padding: 18px 18px 14px;
  border-radius: 14px;
  background: #111827;
  color: #e5e7eb;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.legal-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 22px;
  cursor: pointer;
}

.legal-modal__actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 10px; }
.legal-modal__content h3 { margin: 0 0 10px; }
.legal-modal__content h4 { margin: 14px 0 6px; }
.legal-modal__content p, .legal-modal__content li { line-height: 1.5; }
