﻿.template3-report-result {
  display: none;
}

.template3-report-result.show {
  display: block;
}

.template3-header .template3-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.2s ease;
}

.template3-header .template3-nav-link:hover,
.template3-header .template3-nav-link.active {
  background: #2563eb;
  color: #fff;
}

#reportResult.show,
#reportResult.hidden {
  display: block;
}

#reportResult.hidden {
  display: none;
}

.sub-value {
  margin-top: 0.25rem;
  color: #2563eb;
  font-size: 0.85rem;
  word-break: break-all;
}

.value.status.completed {
  background: #dcfce7;
  color: #15803d;
}

.value.status.processing {
  background: #dbeafe;
  color: #1d4ed8;
}

.value.status.failed {
  background: #fee2e2;
  color: #b91c1c;
}

.progress-bar {
  height: 0.375rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  width: 0;
}

.progress-text {
  color: #2563eb;
  font-size: 0.875rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(90deg);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  border-radius: 1rem;
  width: min(92vw, 420px);
  padding: 1.5rem;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.show .modal-container {
  transform: scale(1);
}

.modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-icon.warning { background: #fef3c7; color: #92400e; }
.modal-icon.success { background: #dcfce7; color: #15803d; }
.modal-icon.error { background: #fee2e2; color: #b91c1c; }
.modal-title { font-size: 1.1rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.modal-message { color: #6b7280; line-height: 1.7; margin-bottom: 1rem; white-space: pre-line; }
.modal-btns { display: flex; justify-content: center; gap: 0.75rem; }
.modal-btn { border: none; border-radius: 0.75rem; padding: 0.75rem 1.5rem; font-weight: 600; cursor: pointer; }
.modal-btn.primary,
.modal-btn.confirm { background: #2563eb; color: #fff; }
.modal-btn.cancel { background: #f3f4f6; color: #4b5563; }

.template3-footer-links,
.template3-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.template3-footer-links a { color: #93c5fd; }
.template3-footer-copy { color: #d1d5db; }

.float-toolbar {
  position: fixed;
  right: 20px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1200;
}

.float-toolbar-item {
  position: relative;
  width: 58px;
  min-height: 58px;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.float-toolbar-item:hover {
  transform: translateY(-2px);
  color: #2563eb;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
}

.float-toolbar-item svg {
  width: 20px;
  height: 20px;
}

.float-toolbar-item .tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.float-toolbar-item .tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #111827;
  transform: translateY(-50%) rotate(45deg);
}

.float-toolbar-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.float-toolbar-item .tooltip-qrcode {
  white-space: normal;
  width: 150px;
  text-align: center;
}

.float-toolbar-item .tooltip-qrcode img {
  width: 110px;
  height: 110px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 10px;
  background: #fff;
}

#back-to-top {
  opacity: 0;
  visibility: hidden;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .float-toolbar {
    right: 12px;
    bottom: 88px;
  }

  .float-toolbar-item {
    width: 52px;
    min-height: 52px;
    border-radius: 16px;
    font-size: 11px;
  }

  .float-toolbar-item .tooltip {
    display: none;
  }
}
