/* PDF Toolkit - Shared Styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
}

header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 22px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 23px;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

nav a {
    color: #475569;
    text-decoration: none;
    margin-left: 20px;
}

main {
    max-width: 1100px;
    margin: 70px auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    margin-bottom: 55px;
}

h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
}

.tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tool-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

a.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-color: #93c5fd;
}

.tool-icon {
    font-size: 36px;
    margin-bottom: 18px;
}

.tool-card h2 {
    font-size: 20px;
    margin: 0 0 12px;
}

.tool-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.tag {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: #dcfce7;
    color: #166534;
}

.coming {
    background: #f1f5f9;
    color: #64748b;
}

footer {
    text-align: center;
    margin: 80px 0 30px;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 850px) {
    .tools {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .tools {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    main {
        margin-top: 40px;
    }
}


/* ========================================
   Merge PDF Page
======================================== */

.merge-page main {
  max-width: 760px;
  margin: 65px auto;
  padding: 0 20px;
  text-align: center;
}

.merge-page h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.merge-page .subtitle {
  color: #64748b;
  margin-bottom: 35px;
  line-height: 1.6;
}

.merge-page .upload-box {
  background: white;
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  padding: 55px 20px;
  cursor: pointer;
  transition: 0.2s;
}

.merge-page .upload-box:hover,
.merge-page .upload-box.dragover {
  background: #eff6ff;
  border-color: #2563eb;
}

.merge-page .upload-icon {
  font-size: 45px;
  margin-bottom: 15px;
}

.merge-page .upload-box h2 {
  font-size: 20px;
}

.merge-page .upload-box p {
  color: #64748b;
  font-size: 14px;
}

.merge-page button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 15px;
  cursor: pointer;
}

.merge-page button:hover {
  background: #1d4ed8;
}

.merge-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.merge-page .file-list {
  margin-top: 25px;
  text-align: left;
}

.merge-page .file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}

.merge-page .file-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.merge-page .file-actions {
  display: flex;
  gap: 5px;
}

.merge-page .file-actions button {
  padding: 7px 10px;
  background: #e2e8f0;
  color: #334155;
}

.merge-page .file-actions button:hover {
  background: #cbd5e1;
}

.merge-page .merge-btn {
  width: 100%;
  margin-top: 20px;
  padding: 17px;
  font-size: 17px;
  font-weight: bold;
}

.merge-page #status {
  margin-top: 20px;
  font-weight: 500;
}

.merge-page .features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
  color: #64748b;
  font-size: 14px;
}

/* ========================================
   Merge PDF - Mobile
======================================== */

@media (max-width: 600px) {
  .merge-page h1 {
    font-size: 30px;
  }

  .merge-page main {
    margin-top: 40px;
  }

  .merge-page .upload-box {
    padding: 35px 15px;
  }
}

/* ========================================
   Split PDF Page
======================================== */

.split-page main {
  max-width: 760px;
  margin: 65px auto;
  padding: 0 20px;
  text-align: center;
}

.split-page h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.split-page .subtitle {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 35px;
}

.split-page .panel {
  background: white;
  padding: 35px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.split-page .upload-box {
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  padding: 40px 20px;
  cursor: pointer;
}

.split-page .upload-box:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

.split-page button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 15px;
  cursor: pointer;
}

.split-page button:hover {
  background: #1d4ed8;
}

.split-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.split-page .settings {
  margin-top: 25px;
  text-align: left;
}

.split-page .settings label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

.split-page .settings input {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
}

.split-page .hint {
  color: #64748b;
  font-size: 13px;
  margin-top: 8px;
}

.split-page .file-info {
  margin-top: 18px;
  color: #475569;
  overflow-wrap: anywhere;
}

.split-page .split-btn {
  width: 100%;
  margin-top: 25px;
  padding: 17px;
  font-size: 17px;
  font-weight: bold;
}

.split-page #status {
  margin-top: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.split-page .features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 35px;
  color: #64748b;
  font-size: 14px;
}

/* ========================================
   Split PDF - Mobile
======================================== */

@media (max-width: 600px) {
  .split-page h1 {
    font-size: 30px;
  }

  .split-page main {
    margin-top: 40px;
  }

  .split-page .panel {
    padding: 20px;
  }
}

/* ========================================
   Compress PDF Page
======================================== */

.compress-page main {
  max-width: 760px;
  margin: 65px auto;
  padding: 0 20px;
  text-align: center;
}

.compress-page h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.compress-page .subtitle {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 35px;
}

.compress-page .panel {
  background: white;
  padding: 35px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.compress-page input[type="file"] {
  width: 100%;
  padding: 25px;
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  background: #f8fafc;
}

.compress-page .settings {
  margin-top: 25px;
  text-align: left;
}

.compress-page .settings label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

.compress-page select {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
}

.compress-page .hint {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px 0;
}

.compress-page button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 17px;
  font-size: 17px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
}

.compress-page button:hover {
  background: #1d4ed8;
}

.compress-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compress-page #status {
  margin-top: 20px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .compress-page h1 {
    font-size: 30px;
  }

  .compress-page main {
    margin-top: 40px;
  }

  .compress-page .panel {
    padding: 20px;
  }
}

/* ========================================
   Compression Quality Guide
======================================== */

.compress-page .quality-guide {
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: left;
}

.compress-page .quality-guide h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #1e293b;
}

.compress-page .quality-option {
  margin-bottom: 18px;
}

.compress-page .quality-option:last-child {
  margin-bottom: 0;
}

.compress-page .quality-option strong {
  color: #2563eb;
  font-size: 14px;
}

.compress-page .quality-option p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

/* ========================================
   AI PDF Summariser
======================================== */

.summary-page main {
  max-width: 760px;
  margin: 65px auto;
  padding: 0 20px;
  text-align: center;
}

.summary-page h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.summary-page .subtitle {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 35px;
}

.summary-page .panel,
.summary-page .result-panel {
  background: white;
  padding: 35px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 25px;
}

.summary-page .panel label {
  display: block;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: left;
}

.summary-page input[type="file"] {
  width: 100%;
  padding: 25px;
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  background: #f8fafc;
}

.summary-page .settings {
  margin-top: 25px;
  margin-bottom: 25px;
}

.summary-page select {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
}

.summary-page button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 17px;
  font-size: 17px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
}

.summary-page button:hover {
  background: #1d4ed8;
}

.summary-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.summary-page #status {
  margin-top: 20px;
  color: #475569;
}

.summary-page .result-panel {
  text-align: left;
}

.summary-page .result-panel[hidden] {
  display: none;
}

.summary-page .result-panel h2 {
  margin-top: 0;
}

.summary-page #documentInfo {
  color: #64748b;
  font-size: 14px;
}

.summary-page #result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

@media (max-width: 600px) {
  .summary-page h1 {
    font-size: 30px;
  }

  .summary-page main {
    margin-top: 40px;
  }

  .summary-page .panel,
  .summary-page .result-panel {
    padding: 20px;
  }
}
