
/* === Layout === */
body {
  font-family: 'Inter', sans-serif;
  background: #fdfeff;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1rem 2rem 2rem;
}

a:link {
  color: blue; /* unvisited */
}

a:visited {
  color: blue; /* visited */
}

a:hover {
  color: darkblue; /* on hover */
}

a:active {
  color: navy; /* when clicked */
}

main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

#pageWrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*------heaader section-------*/

.main-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #17405f;
}


.main-tagline {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #2a2a2a;
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.logo-divider {
  border: none;
  border-top: 1px solid #dce3ec;
  margin: 1.8rem auto 1rem auto;
  width: 80%;
}

/*---toolbar section---*/

#toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
  margin-top: 5.5rem;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.toolbar-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  width: 100%;
}

.page-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}




.download-button-wrapper {
  margin-left: auto;
}

#download {
  margin-left: 1rem;
}

.download-button {
  background-color: #2f89c9;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* === Canvas === */
canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border: none;
  border-radius: 6px;
  box-shadow: none;
}

#pdfContainer {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
}

.canvas-wrapper {
  border: 2px solid #4e76ab;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  background-color: #ffffff;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.canvas-inner {
  background: none;
  padding: 0;
  text-align: center;
}

/* === Buttons === */
button {
  background-color: #2f89c9;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.text-button {
  background-color: #f4f4f4;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.text-button:hover {
  background-color: #e2e2e2;
}

/* === Toolbar Button === */
.toolbar-button {
  background-color: #2f89c9;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.toolbar-button:hover {
  background-color: #246ea6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toolbar-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Disabled state */
.toolbar-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}



/* === FileInput === */

.file-name-note {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}


/* Upload PDF button */
.custom-file-input {
  display: flex;
  flex-direction: column; /* Stack label and filename vertically */
  align-items: center;
  gap: 0.4rem;
}

/* Upload PDF button */
.custom-file-input {
  display: flex;
  flex-direction: column; /* Stack label and filename vertically */
  align-items: center;
  gap: 0.4rem;
}

.custom-file-input label {
  background-color: #2f89c9;
  color: white;
  padding: 0.75rem 1.6rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight:bolder;
  font-size: 1.05rem;
  border: none;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.custom-file-input label:hover {
  background-color: #246ea6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-file-input label:active {
  transform: translateY(0);
  box-shadow: none;
}

/* File name display */

.file-name-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
  text-align: center;
}




.custom-file-input label:hover {
  background-color: #246ea6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-file-input label:active {
  transform: translateY(0);
  box-shadow: none;
}

/* File name display */
.file-name-note {
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  min-height: 1.2rem; /* Prevents layout shift if empty */
}


.custom-file-input label {
  background-color: #2f89c9;
  color: white;
  padding: 0.75rem 1.6rem; /* Bigger padding than Download button */
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem; /* Slightly larger font */
  border: none;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.custom-file-input label:hover {
  background-color: #246ea6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-file-input label:active {
  transform: translateY(0);
  box-shadow: none;
}


.custom-file-input input[type="file"] {
  display: none;
}

#fileNameDisplay {
  margin-left: 0.75rem;
  font-size: 0.95rem;
  color: #333;
}

.file-name-note {
 
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 4px;
  width: 100%;
  display: block;
  font-weight: 900;
}


/* === Typography === */
.description-text {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #2b2b2b;
  text-align: center;
  font-weight: 600;
  background: #f8fbff;
  padding: 0.75rem 1rem;
  border: 1px solid #e2eef7;
  border-radius: 6px;
}


.label-box {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}

/*---font size box selector---*/
#fontSize{font-size: 0.9rem;}

#prevPage,
#nextPage {
  background-color: #f4f4f4;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.35rem 0.9rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#pageIndicator{font-size: 1rem;
font-weight: bold;}

#prevPage:hover,
#nextPage:hover {
  background-color: #e2e2e2;
}



/* === Instructions === */



.instructions-logo {
  width: 8.5rem;
  margin: 0 auto 1.2rem auto;
  display: block;
}




#instructions {
  flex: 0 0 300px;
  max-width: 300px;
  background: #ffffff;
  padding: 2rem 1.6rem;
  border: 1px solid #d4e8f7;
  border-left: 6px solid #2f89c9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  color: #1e2d3d;
  line-height: 1.8;
}




#instructions ol {
  padding-left: 1.2rem;
  margin: 0;
  list-style: decimal;
}

#instructions li {
  margin-bottom: 0.6rem;
  color: #444;
  font-weight: 500;
  font-size: 1rem;
}




.instruction-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #17405f;
  margin-bottom: 1rem;
  border-bottom: 2px solid #b0d6ef;
  padding-bottom: 0.5rem;
}



.instruction-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.instruction-cta {
  display:none;
  text-align: center;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px dashed #aacfe8;
  color: #1a4b6b;
  font-size: 1rem;
}

.instruction-cta {
  background-color: #fff8e1; /* pale yellow */
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.instruction-cta p {
  display: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}


#upgradeMessage {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  color: #17405f; /* dark blue, same as your headings */
  transition: opacity 0.4s ease-in-out;
}

#upgradeMessage.show {
  opacity: 1;
}

 #upgradeButton { display:none }




/*-----subscription box----*/
#featuresBox {
    display: none; /* Hide for now */

  max-width: 280px;
  background: #ffffff;
  padding: 1.6rem 1.4rem;
  border-left: 4px solid #4caf50; /* green tone to distinguish */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  align-self: flex-start;
  margin-top: 1.5rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2f7145;
  margin-bottom: 0.8rem;
}

.feature-note {
  font-size: 0.95rem;
  color: #555;
}




/* === FormElements === */
input[type="color"] {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid #aaa;
  cursor: pointer;
}

/* === General === */
* {
  box-sizing: border-box;
}

#textInput {
  position: absolute;
  display: none;
  outline: none;
  font-size: 1rem;
  padding: 4px 8px;
  background: #fff;
  z-index: 10;
  box-shadow: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#textInput:focus {
  border: 3px dotted #2f89c9 !important;
  box-shadow: 0 0 3px rgba(55, 184, 249, 0.87);
  outline: none;
}



.instruction-divider {
  border: none;
  border-top: 0.5px solid #ddd;
  margin: 1.3rem 0 0.6rem;
}


.sub-instruction {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}



.lf-cta-box {
  display: flex;
  flex-direction: column;   /* stack logo on top of text */
  align-items: center;      /* center horizontally */
  text-align: center;       /* center text below logo */
  gap: 16px;
  margin-top: 20px;
  padding: 24px 20px;
  border-radius: 14px;
  
} 

.lf-cta-logo {
  height: 120px;
  width: 120px;
  border-radius: 8px;
  padding: 6px;
}

.lf-cta-text h3 {
  margin: 0 0 8px 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.4;
  color: #404040;
}

.lf-cta-text p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.lf-cta-text a {
  font-weight: 700;
  text-decoration: underline;
}

.lf-cta-text a:hover { opacity: 0.9; }






.site-footer {
  margin-top: auto;
  border-top: 0.0625rem solid #d0e2f1; /* 1px = 0.0625rem */
  width:100%;
  box-sizing: border-box;
  background: #2f89c9;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 1.2rem;
}
.site-footer a {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: underline;
}
.site-footer a:hover {
  opacity: 0.85;
}









/* === Media Queries === */
@media (max-width: 900px) {
  body {
    flex-direction: column;
    align-items: center;
  }

  #instructions {
    width: 100%;
  }
}

@media (max-width: 600px) {
  #toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }

  .custom-file-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem auto;
    justify-content: center;
    flex-wrap: wrap;
  }
}




