﻿/* PDF Tools — supplemental styles.
   Scoped to new classes only; layers cleanly on top of css/style.css and css/modern-light.css */

.pdf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 76, 245, 0.08);
  border: 1px solid rgba(108, 76, 245, 0.25);
  color: var(--primary, #1d4ed8);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.tool-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tool-launch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 14px 20px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tool-launch:hover {
  border-color: #1d4ed8;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(108, 76, 245, 0.18);
}

.tool-launch:active {
  transform: translateY(-1px);
}

.tool-launch-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #64748b;
}

.tool-launch-tag.tag-hot {
  background: #fee2e2;
  color: #ef4444;
}

.tool-launch-tag.tag-psc {
  background: #ede9fe;
  color: #1d4ed8;
}

.tool-launch-tag.tag-new {
  background: #dcfce7;
  color: #15803d;
}

/* Vibrant icon circles with soft glow */
.tool-launch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-launch.c-coral   .tool-launch-icon { background: linear-gradient(135deg, #ff8a65, #e0432b); color: #fff; box-shadow: 0 6px 16px rgba(224, 67, 43, 0.28); }
.tool-launch.c-amber   .tool-launch-icon { background: linear-gradient(135deg, #ffd54f, #f59e0b); color: #fff; box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28); }
.tool-launch.c-teal    .tool-launch-icon { background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #fff; box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28); }
.tool-launch.c-indigo  .tool-launch-icon { background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28); }
.tool-launch.c-rose    .tool-launch-icon { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28); }
.tool-launch.c-violet  .tool-launch-icon { background: linear-gradient(135deg, #c084fc, #7c3aed); color: #fff; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28); }
.tool-launch.c-sky     .tool-launch-icon { background: linear-gradient(135deg, #38bdf8, #0284c7); color: #fff; box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28); }
.tool-launch.c-emerald .tool-launch-icon { background: linear-gradient(135deg, #34d399, #059669); color: #fff; box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28); }
.tool-launch.c-gold    .tool-launch-icon { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28); }
.tool-launch.c-blue    .tool-launch-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28); }
.tool-launch.c-red     .tool-launch-icon { background: linear-gradient(135deg, #f87171, #dc2626); color: #fff; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28); }

.tool-launch:hover .tool-launch-icon {
  transform: scale(1.1) translateY(-2px);
}

.tool-launch-highlight {
  background: #faf5ff;
  border-color: #d8b4fe;
}
.tool-launch-highlight:hover {
  border-color: #9333ea;
  box-shadow: 0 12px 28px -6px rgba(147, 51, 234, 0.22);
}

.pdf-workspace {
  margin-top: 28px;
}

.tool-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  max-width: 720px;
  margin: 0 auto;
  animation: panelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.tool-panel .tool-panel-desc {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #1d4ed8;
  background: #f5f3ff;
  transform: scale(1.01);
}

.dropzone-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 6px;
}

.dropzone-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.file-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.file-list li:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.file-list .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-weight: 600;
  color: #1e293b;
}

.file-list button {
  background: #fee2e2;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.file-list button:hover {
  background: #fca5a5;
}

.file-list .drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 0.9rem;
}

.progress-bar {
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 14px;
  display: none;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d4ed8, #00b4d8);
  transition: width 0.18s ease;
}

.note-box {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: #6b21a8;
  line-height: 1.5;
}

.btn-back {
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #475569;
  padding: 8px 14px;
  border-radius: 8px;
}

.tool-result {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
}

.tool-result.ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tool-result.err {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.field-row {
  margin: 16px 0;
}

.field-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.field-row input[type="text"],
.field-row input[type="number"],
.field-row select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-row input:focus,
.field-row select:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(108, 76, 245, 0.15);
}

/* FAQ Accordion Styling */
.quiz-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.quiz-faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.quiz-faq-item summary {
  font-weight: 700;
  font-size: 0.98rem;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-faq-item summary::-webkit-details-marker {
  display: none;
}

.quiz-faq-item summary::after {
  content: "›";
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d4ed8;
  transition: transform 0.2s ease;
}

.quiz-faq-item[open] summary::after {
  transform: rotate(90deg);
}

.quiz-faq-item p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

/* Companion Sidebar Styles */
.tool-companion-sidebar .sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.tool-companion-sidebar .sidebar-widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.tool-companion-sidebar .sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.tool-companion-sidebar .sidebar-tool-link:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.tool-companion-sidebar .sidebar-tool-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f8fafc;
}

.tool-companion-sidebar .sidebar-mock-test-cta {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.4);
}

.tool-companion-sidebar .sidebar-mock-test-cta h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.tool-companion-sidebar .sidebar-mock-test-cta p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.tool-companion-sidebar .sidebar-mock-test-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.18s ease;
  box-sizing: border-box;
}

.tool-companion-sidebar .sidebar-mock-test-btn:hover {
  background: #5636d1;
}

@media (max-width: 640px) {
  .tool-launch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tool-launch {
    padding: 18px 10px 14px;
    border-radius: 14px;
    font-size: 0.84rem;
  }
  .tool-launch-icon {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
    border-radius: 12px;
  }
  .tool-panel {
    padding: 20px 16px;
    border-radius: 14px;
  }
}
