/* ===============================
   GLOBAL RESET & BASE
   =============================== */

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;

    background: linear-gradient(
      135deg,
      #ffffff 0%,
      #fff3f5 45%,
      #fde7eb 100%
    );
  }



/* ================= TOP BLACK BAR ================= */
.top-bar {
  height: 0.5in;                 /* ✅ approx 1 inch */
  background: #000000;
  color: white;
}

.top-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.top-bar a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}

/* Log in – plain text */
.top-bar .login {
  color: white;
}

/* Sign up – white box, black text */
.top-bar .signup {
  background: #ffffff;
  color: #000000;          /* ✅ black text */
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.top-right {
  margin-left: auto;
}


/* ================= WHITE HEADER ================= */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;   /* vertical centering */
  gap: 1px;             /* space between symbol and text */
}

/* Logo symbol */
.logo img {
  height: 170px;          /* adjust if needed */
  width: auto;
  display: block;  /* removes inline spacing issues */
}


.logo img {
  transform: translateX(-50px) translateY(-10px);
}




/* Logo text */
.logo-text {
  line-height: 1;     /* 🔒 prevents vertical drift */
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;/* prevents breaking */
  margin-left : -90px
}

.logo-text span {
  color: #c1121f;        /* red for Svara */
}


.nav-links {
  margin-left: 40px;
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

/* ================= HERO SECTION ================= */



 .hero {
   position: relative;
   overflow: hidden;
   padding-bottom: 48px;
   margin-left: 50px
 }

.pdf-float {
  position: absolute;
  width: 36px;                /* ✅ small */
  opacity: 0.12;              /* ✅ transparent */
  pointer-events: none;       /* background only */
  user-select: none;

  animation: floatSlow 14s ease-in-out infinite;
}
.pdf-1 {
  top: 18%;
  left: 10%;
  animation-duration: 16s;
}

.pdf-2 {
  top: 32%;
  left: 65%;
  animation-duration: 18s;
}

.pdf-3 {
  top: 60%;
  left: 25%;
  animation-duration: 20s;
}

.pdf-4 {
  top: 10%;
  right: 10%;
  animation-duration: 22s;
}

.pdf-5 {
  top: 75%;
  right: 70%;
  animation-duration: 22s;
}



/* ===============================
   MAIN CONTAINER
   =============================== */

.container {
  max-width: 900px;
  margin: 0 auto;          /* remove vertical margin */
  padding: 32px 20px 80px; /* top padding controls spacing from header */
}

/* ===============================
   HERO SECTION
   =============================== */

.hero {
  text-align: center;
  margin-top: 0;          /* ❌ remove negative margin */
  padding-top: 32px;      /* clean spacing below header */
}
/* ===============================
   UPLOAD CARD
   =============================== */

.card {
  background: #ffffff;
  padding: 34px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  max-width: 460px;
  margin: 0 auto;
}

input[type="file"] {
  display: block;
  margin: 0 auto 22px;
}

.button {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Button style */
.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Button style */
.btn {
  background: #c1121f;        /* black box */
  color: #ffffff;
  border: none;

  padding: 14px 36px;
  border-radius: 6px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

/* Hover effect */
.btn:hover {
  background: #c1121f;        /* red hover */
  transform: translateY(-1px);
}

/* Focus (accessibility, optional but good) */
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.3);
}


.status {
  margin-top: 16px;
  font-size: 14px;
  color: #374151;
}

/* ===============================
   REDACTION MODE OPTIONS
   =============================== */

.redact-mode {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 14px;
  font-size: 14px;
  color: #374151;
}

.redact-mode label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.redact-mode input[type="radio"] {
  accent-color: #2563eb;
  cursor: pointer;
}

/* ===============================
   MANUAL REDACTION INPUT
   =============================== */

.manual-box {
  display: none;
  text-align: left;
  margin-bottom: 18px;
}

.manual-box label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

.manual-box textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.manual-box textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}


/* ===============================
   HOW IT WORKS
   =============================== */

.how-it-works {
  margin: 70px 0 60px;
  text-align: center;
}

.how-it-works h2 {
  font-size: 26px;
  margin-bottom: 30px;
}

.steps {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px;
  width: 220px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.step span {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: #374151;
}

/* ===============================
   TRUST SECTION
   =============================== */

.trust-section {
  margin: 60px 0;
  background: #f8fafc;
  border-radius: 16px;
  padding: 40px 30px;
}

.trust-section h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.trust-list {
  list-style: none;
  padding-left: 0;
  max-width: 420px;
  margin: 0 auto;
}

.trust-list li {
  font-size: 14px;
  margin-bottom: 10px;
  color: #374151;
}

/* ===============================
   USE CASES
   =============================== */

.use-cases {
  margin: 60px 0;
}

.use-cases h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.use-case-list {
  list-style: none;
  padding-left: 0;
  max-width: 520px;
  margin: 0 auto;
}

.use-case-list li {
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

/* ===============================
   INFO / EDUCATIONAL BOX
   =============================== */

.seo-content {
  margin: 70px 0;
  padding: 34px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.seo-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #111827;
}

.seo-content h3 {
  font-size: 16px;
  margin-top: 22px;
  margin-bottom: 6px;
  color: #1f2937;
}

.seo-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.seo-content ul {
  padding-left: 18px;
  margin: 8px 0;
}

.seo-content li {
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

.seo-content .note {
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
  color: #6b7280;
}

.signature-section {
  display: flex;
  gap: 30px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.signature-box {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
}

#signatureCanvas {
  border: 2px dashed #ccc;
     border-radius: 8px;
     background: #fafafa;
     cursor: default;
     touch-action: none;
}

.canvas-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

#signaturePreview {
  width: 100%;
  margin-top: 15px;
  border-radius: 8px;
}

.pdf-fullscreen {
  position: relative;
  height: calc(100vh - 120px); /* adjust based on header */
  background: #f5f5f5;
}

/* Upload overlay */
.upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  z-index: 5;
}

/* PDF area */
.pdf-wrapper {
  height: 100%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pdfCanvas {
  max-width: 100%;
}

/* Signature overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
}

/* 🔥 BOTTOM TOOLBAR */
.bottom-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 20px;
  background: white;
  border-top: 1px solid #ddd;

  z-index: 10;
}

.left-tools {
  display: flex;
  gap: 12px;
}

.right-tools {
  display: flex;
}

.sign-btn {
  background: black;
  color: f5f5f5;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}


#pdfCanvas {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
}


#signatureOverlay {
    opacity: 0.85;
}

.sign-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}



/* responsive */
@media (max-width: 900px) {
    .sign-layout {
        grid-template-columns: 1fr;
    }
}

.sig-remove-btn:hover {
    background: #b71c1c;
    transform: scale(1.1);
    transition: all 0.15s ease;
}

#signatureOverlay {
    pointer-events: none;
}

.modal-content {
    width: 520px;              /* smaller */
    padding: 20px;
    border-radius: 10px;
}

/* optional: reduce spacing */
.modal-body {
    display: flex;
    gap: 20px;
}


#pdfPreviewContainer {
    display: block !important;   /* ❗ FIX */
    width: 100%;
    margin-top: 20px;
}

.pdf-page {
    display: block;
    margin: 20px auto;
}

.sig-overlay {
    position: absolute;
}

.main-layout {
    display: flex;
}

.left-panel {
    width: 260px;
    padding: 15px;
    background: #fafafa;
    border-right: 1px solid #eee;

    /* ❌ REMOVE scroll */
    height: auto;
}

/* RIGHT PANEL */
.right-panel {
    flex: 1;
    padding: 20px;
}

/* COMMON BOX */
.box {
    background: white;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

#signatureCanvas {
    width: 100%;
    height: 180px;   /* ⬅️ increased from 120 */
    border: 1px solid #ccc;
}

/* FLEX ROW */
.row {
    display: flex;
    gap: 10px;
}

.col {
    flex: 1;
}

/* UPLOAD PREVIEW */
#uploadPreview {
    display: none;
    width: 100%;
    border: 1px solid #ccc;
    padding: 5px;
}

/* SAVED SIGNATURE */
#floatingSignatureImg {
    width: 100%;
    border: 1px solid #ccc;
    cursor: pointer;
}

.draw-section {
    width: 100%;
}

#signatureCanvas {
    width: 100%;          /* ✅ FULL WIDTH */
    height: 200px;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: block;
}

/* buttons alignment */
.action-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* upload section spacing */
.upload-section {
    margin-top: 20px;
}

/* remove old row/col flex if present */
.row {
    display: block;
}

.col {
    width: 100%;
}


/* ================= LEFT PANEL ================= */
.left-panel {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #ddd;

    padding: 15px;

    display: flex;
    flex-direction: column;

    position: sticky;
    top: 120px; /* below header */

    height: calc(100vh - 120px);
    overflow-y: auto;
}

.right-panel {
    flex: 1;
    overflow-y: auto;   /* 🔥 PDF scrolls here */
    padding: 20px;
}

/* BOX CONTAINER */
.box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

/* TITLE */
.box h4 {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* ================= SIGN BUTTONS ================= */
.sign-btn {
    border: 1px dashed #ccc;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.sign-btn span {
    font-size: 18px;
    font-weight: bold;
}

.sign-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* ================= SAVED SIGNATURE PANEL ================= */
#signatureFloatingPanel {
        margin-top: 15px;   /* spacing below Add Signature */

}


/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
}

/* MODAL BOX */
.modal-content {
    background: #fff;
    padding: 20px;
    width: 420px;
    margin: 80px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* MODAL TITLE */
.modal-content h3 {
    margin-bottom: 15px;
}

/* ================= TABS ================= */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tabs button {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
}

.tabs button:hover {
    background: #eee;
}

/* ACTIVE TAB (optional enhancement) */
.tabs button.active {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

/* ================= TAB CONTENT ================= */
.tab-content {
    margin-top: 10px;
}

/* ================= DRAW CANVAS ================= */
#modalCanvas {
    width: 100%;
    height: 180px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
}

/* ================= INPUTS ================= */
#modalUpload,
#typeInput {
    width: 100%;
    margin-top: 10px;
}

/* ================= MODAL BUTTONS ================= */
.modal-content button {
    margin-top: 10px;
    margin-right: 10px;
    padding: 8px 14px;
    border: none;
    background: #e53935;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #c62828;
}

/* CANCEL BUTTON (optional) */
.modal-content button:last-child {
    background: #777;
}

.modal-content button:last-child:hover {
    background: #555;
}

.main-layout {
    display: flex;
    height: calc(100vh - 120px); /* adjust for header height */
}

#floatingSaveBtn {
  position: fixed;
  bottom: 20px;

  left: 60%;
  transform: translateX(-50%);

  background: #000000;
  color: #ffffff;
  border: none;

  padding: 10px 20px;
  font-size: 14px;

  border-radius: 10px;
  cursor: pointer;

  min-width: 180px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;

  transition: all 0.2s ease;   /* 🔥 smooth hover */
}

/* ✅ Correct hover */
#floatingSaveBtn:hover {
  background: #c1121f;
  transform: translateX(-50%) translateY(-1px);
}

/* 🔽 Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* 🔽 Main button */
.dropbtn {
  cursor: pointer;
}

/* 🔽 Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 999;
}

/* 🔽 Links inside dropdown */
.dropdown-content a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

/* 🔽 Hover effect */
.dropdown-content a:hover {
  background-color: #f5f5f5;
}

/* 🔽 Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hidden {
  display: none;
}

.payment-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.payment-box h2 {
  margin-bottom: 10px;
}

.price {
  font-size: 18px;
  margin: 10px 0;
  color: #c40000;
  font-weight: bold;
}

.actions button {
  margin: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#payBtn {
  background: #c40000;
  color: #fff;
}

#cancelBtn {
  background: #ddd;
}

.seo-content {
  margin: 70px 0;
  padding: 34px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.seo-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #111827;
}

.seo-content h3 {
  font-size: 16px;
  margin-top: 22px;
  margin-bottom: 6px;
  color: #1f2937;
}

.seo-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.seo-content ul {
  padding-left: 18px;
  margin: 8px 0;
}

.seo-content li {
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

.seo-content .note {
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
}



