/**
 * Audit Crawler Stylesheet
 * Queue Table, Live Logs, Status Indicators, Progress Bars, Crawl Log
 */

.crawler-dashboard-wrapper {
    font-family: var(--font-family-base, 'Inter', system-ui, -apple-system, sans-serif);
    color: var(--color-text-main, #0f172a);
}

.crawler-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.crawler-progress-fill {
    height: 100%;
    background: var(--color-audit-gradient, linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%));
    border-radius: 20px;
    transition: width 0.4s ease;
}

.crawl-log-terminal {
    background: #0f172a;
    color: #38edf8;
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #1e293b;
}

/* Crawl Log Page Styles */
.crawl-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 70%, #8b5fbf 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.crawl-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.btn-action {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.crawl-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
}

.filter-controls {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-filter-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #6b7280;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.quick-filter-btn:hover {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}
