/* PDF Download Button */
.pdf-download-container {
    margin: 1.5rem 0;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #106af3;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.pdf-download-btn:hover {
    background: #0c52c2;
    transform: translateY(-1px);
}

.pdf-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pdf-icon {
    width: 18px;
    height: 18px;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media print {
    .pdf-download-container {
        display: none !important;
    }
}

/* ================================
   PDF Document Styles (for generated PDF content)
   ================================ */
.pdf-document {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11pt;
    line-height: 1.6;
    padding: 0;
    max-width: 100%;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #106af3;
    margin-bottom: 24px;
}

.pdf-header-text {
    text-align: right;
    font-size: 10pt;
    color: #6b7280;
}

.pdf-title {
    font-size: 24pt;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.pdf-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 24px;
}

.pdf-metadata-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-metadata-label {
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.pdf-metadata-value {
    font-size: 11pt;
    font-weight: 600;
    color: #1a1a1a;
}

.pdf-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 9pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-badge-fraud {
    background: #fecaca;
    color: #991b1b;
}

.pdf-badge-prevented {
    background: #bbf7d0;
    color: #166534;
}

.pdf-badge-ongoing {
    background: #fef08a;
    color: #854d0e;
}

.pdf-badge-victim {
    background: #e9d5ff;
    color: #6b21a8;
}

.pdf-section-title {
    font-size: 16pt;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.pdf-body {
    font-size: 11pt;
    color: #374151;
    line-height: 1.7;
}

.pdf-body p {
    margin-bottom: 12px;
}

.pdf-body h2 {
    font-size: 14pt;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 10px;
}

.pdf-body h3 {
    font-size: 12pt;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 16px;
    margin-bottom: 8px;
}

.pdf-body ul,
.pdf-body ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.pdf-body li {
    margin-bottom: 6px;
}

.pdf-body a {
    color: #106af3;
    text-decoration: underline;
}

.pdf-timeline {
    margin: 16px 0;
    padding-left: 20px;
    border-left: 3px solid #106af3;
}

.pdf-timeline-item {
    margin-bottom: 20px;
    padding-left: 12px;
}

.pdf-timeline-item:last-child {
    margin-bottom: 0;
}

.pdf-timeline-stage {
    font-size: 10pt;
    font-weight: 600;
    color: #106af3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-timeline-date {
    font-size: 10pt;
    color: #6b7280;
    margin-left: 8px;
}

.pdf-timeline-description {
    font-size: 11pt;
    color: #374151;
    margin-top: 6px;
    line-height: 1.6;
}

.pdf-takeaways {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.pdf-takeaways-title {
    font-size: 12pt;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 12px;
}

.pdf-takeaway-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 10pt;
    color: #374151;
}

.pdf-takeaway-item:last-child {
    margin-bottom: 0;
}

.pdf-checkmark {
    color: #106af3;
    font-weight: bold;
    flex-shrink: 0;
}

.pdf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0;
}

.pdf-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #e5e7eb;
    border-radius: 4px;
    font-size: 9pt;
    color: #4b5563;
}

.pdf-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 9pt;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
}

.pdf-page-break {
    page-break-before: always;
}

.pdf-no-break {
    page-break-inside: avoid;
}
