body {
    font-family: 'Inter', sans-serif;
}

.file-input-label {
    display: inline-block;
    padding: 12px 20px;
    background-color: #4F46E5;
    /* Indigo 600 */
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-input-label:hover {
    background-color: #4338CA;
    /* Indigo 700 */
}

.file-input {
    display: none;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4F46E5;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 5px;
}

.progress-bar {
    height: 10px;
    background-color: #4caf50;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

/* Print-specific styles */
@media print {
    body * {
        visibility: hidden !important;
    }

    #printLayout,
    #printLayout * {
        visibility: visible !important;
    }

    #printLayout {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100vw;
    }
}

@media print {

    .narrative-summary-panel,
    .top-summary-panel {
        background-color: #fff !important;
        box-shadow: none !important;
        border-left: none !important;
    }
}

@media print {
    .print-jobid-footer {
        display: block !important;
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100vw;
        text-align: right;
        padding: 0 2em 0.5em 0;
        font-size: 11px;
        color: #888;
        z-index: 10000;
    }
}

/* Prevent extra blank pages at end of print/PDF */
@media print {

    html,
    body {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body {
        display: block !important;
        background: white !important;
    }

    #printLayout {
        page-break-after: avoid !important;
        break-after: avoid !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .print-area {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }

    .print-area footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media print {
    #printLayout {
        padding-bottom: 2.5cm !important;
        /* Adjust this as needed, e.g. 2.5cm or 1in */
        margin-bottom: 0 !important;
    }
}

/* Markdown Table Styling */
#compliance-markdown table,
#printDetailedFindings table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
}

#compliance-markdown th,
#compliance-markdown td,
#printDetailedFindings th,
#printDetailedFindings td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}

.bg-green-50 {
    background-color: #ecfdf5 !important;
}

.bg-yellow-50 {
    background-color: #fef9c3 !important;
}

.bg-red-50 {
    background-color: #fee2e2 !important;
}

.bg-gray-200 {
    background-color: #e5e7eb !important;
}

/* Category filter button styling (plain CSS so it works with CDN Tailwind) */
.filter-btn {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    /* px-3 py-1 */
    margin-right: 0.5rem;
    /* mr-2 */
    margin-bottom: 0.5rem;
    /* mb-2 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 600;
    /* font-semibold */
    border-radius: 9999px;
    /* rounded-full */
    border: 1px solid rgb(209 213 219 / 1);
    /* border-gray-300 */
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: rgb(229 231 235 / 1);
    /* hover:bg-gray-200 */
}

.filter-btn-default {
    color: rgb(75 85 99 / 1);
    /* text-gray-600 */
    background-color: transparent;
}

.filter-btn-active {
    color: #ffffff;
    /* text-white */
    background-color: rgb(79 70 229 / 1);
    /* bg-indigo-600 */
    border-color: rgb(79 70 229 / 1);
    /* border-indigo-600 */
}

.floating-quote {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font: 1.13rem 'Inter', sans-serif;
    color: #435e87;
    opacity: 0.97;
    background: #f7faffdd;
    border-radius: 9px;
    padding: 14px 24px 13px 24px;
    box-shadow: 0 4px 24px #7fd6e745, 0 0 0 1px #d8eaff33;
    white-space: pre-line;
    max-width: 340px;
    min-width: 110px;
    text-align: center;
    font-style: italic;
    font-weight: 500;
    transition: box-shadow 0.3s;
}
.floating-quote strong {
    font-style: normal;
    font-size: 0.96em;
    color: #678cbb;
    display: block;
    margin-top: 6px;
}

.btn-annotated-report {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.btn-annotated-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-annotated-report:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
