fastars 0.1.0

Ultra-fast QC and trimming for short and long reads
Documentation
/* Fastars HTML Report Stylesheet - Dracula Theme */

:root {
    /* Dracula color palette */
    --background-color: #282a36;
    --current-line: #44475a;
    --foreground: #f8f8f2;
    --comment: #6272a4;
    --cyan: #8be9fd;
    --green: #50fa7b;
    --orange: #ffb86c;
    --pink: #ff79c6;
    --purple: #bd93f9;
    --red: #ff5555;
    --yellow: #f1fa8c;

    /* Semantic mappings */
    --primary-color: var(--purple);
    --secondary-color: var(--green);
    --accent-color: var(--pink);
    --warning-color: var(--yellow);
    --danger-color: var(--red);
    --card-background: var(--current-line);
    --text-color: var(--foreground);
    --text-muted: var(--comment);
    --border-color: #44475a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: var(--foreground);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section */
.section {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Summary Table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.summary-table th,
.summary-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.summary-table th {
    background-color: var(--background-color);
    font-weight: 600;
    color: var(--cyan);
}

.summary-table tr:hover {
    background-color: rgba(189, 147, 249, 0.1);
}

.summary-table tr:last-child td {
    border-bottom: none;
}

/* Charts Grid - Full width like Summary Statistics */
.charts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Chart Container - Double height for better visibility */
.chart-container {
    position: relative;
    width: 100%;
    height: 800px;
    padding: 1rem;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* K-mer Table */
.kmer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.kmer-table th,
.kmer-table td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.kmer-table th {
    background-color: var(--background-color);
    font-weight: 600;
    color: var(--cyan);
}

.kmer-table td.sequence {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--green);
    word-break: break-all;
}

.kmer-table tr:hover {
    background-color: rgba(255, 121, 198, 0.1);
}

/* No data message */
.no-data {
    color: var(--foreground);
    font-style: italic;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer p {
    margin: 0.25rem 0;
}

.footer strong {
    color: var(--primary-color);
}

/* Metric Cards (optional enhancement) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Quality status colors */
.quality-good {
    color: var(--secondary-color);
}

.quality-warning {
    color: var(--warning-color);
}

.quality-bad {
    color: var(--danger-color);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .header {
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 1rem;
    }

    .chart-container {
        height: 300px;
    }

    .summary-table th,
    .summary-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .header {
        background: var(--primary-color);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .chart-container {
        height: 300px;
    }
}

/* Plotly chart container styles */
.chart-container > div {
    width: 100%;
    height: 100%;
}

/* Legend styles */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted);
}

.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Table sorting indicators (for future enhancement) */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.sort-asc::after {
    content: ' \2191';
}

.sort-desc::after {
    content: ' \2193';
}

/* Tabs (for future enhancement) */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}