/* Minimalist, Clean Custom Styles */

/* Custom Scrollbar for word cloud and tables */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #dadce0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #9aa0a6;
}

/* Tabs */
.tab-btn {
    color: #5f6368;
}
.tab-btn.active {
    background-color: #e8f0fe;
    color: #1a73e8;
}

/* Drag and drop active state */
.drag-active {
    border-color: #1a73e8 !important;
    background-color: #e8f0fe !important;
}

/* Result Box in Single View */
.result-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-positive { background-color: #e6f4ea; color: #137333; }
.badge-negative { background-color: #fce8e6; color: #c5221f; }
.badge-neutral { background-color: #fef7e0; color: #b06000; }
.badge-category { background-color: #e8eaed; color: #3c4043; }

/* Word Cloud Tags */
.word-tag {
    background-color: #f1f3f4;
    color: #3c4043;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    display: inline-block;
    border: 1px solid #dadce0;
}

/* Table Container Max Height */
.table-container {
    max-height: 600px;
    overflow-y: auto;
}

@media print {
    /* Hide everything in the body by default */
    body * {
        visibility: hidden;
    }
    
    /* Only show the batch report and its contents */
    #batch-report, #batch-report * {
        visibility: visible;
    }
    
    /* Position the report at the top left of the printed page */
    #batch-report {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Hide the 'Export PDF' and 'Export CSV' buttons during print */
    .report-hide-pdf {
        display: none !important;
    }
    
    /* Show the hidden header inside the report */
    .pdf-header {
        display: block !important;
    }
    
    /* Ensure the table expands fully without scrollbars */
    .table-container {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Force Chart.js canvases to render at a reasonable size */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Prevent charts from being split across PDF pages */
    .stat-card {
        page-break-inside: avoid;
    }
    
    /* Force page break before the data table */
    .page-break-before {
        page-break-before: always;
        margin-top: 2rem;
    }
    
    table {
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}
