/* Custom styles for CheckIt.so - Elegant Minimalist Black & White */

/* General */
html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, 'Helvetica Neue', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.011em;
    background-color: #ffffff !important;
    color: #000000 !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content area - grows to push footer down */
main {
    flex: 1 0 auto;
}

/* Color overrides for elegant black and white theme */
:root {
    --elegant-primary: #000000;
    --elegant-secondary: #666666;
    --elegant-light: #f8f9fa;
    --elegant-dark: #000000;
    --elegant-success: #2d3748;
    --elegant-border: #e2e8f0;
    --elegant-accent: #4a5568;
}

/* Override Bootstrap primary colors */
.btn-primary {
    background-color: var(--elegant-primary);
    border-color: var(--elegant-primary);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--elegant-secondary);
    border-color: var(--elegant-secondary);
}

.bg-primary {
    background-color: var(--elegant-primary) !important;
}

.text-primary {
    color: var(--elegant-primary) !important;
}

.badge.bg-primary {
    background-color: var(--elegant-primary) !important;
}

.progress-bar {
    background-color: var(--elegant-primary);
}

/* Navigation */
.navbar {
    border-bottom: 1px solid var(--elegant-border);
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elegant-primary) !important;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--elegant-secondary) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--elegant-primary) !important;
}

/* Cards */
.card {
    border: 1px solid var(--elegant-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--elegant-border);
    font-weight: 600;
    color: var(--elegant-primary);
}

.card-body {
    background-color: #ffffff;
}

/* Summary card overrides for results page - Minimalist B&W */
.summary-card-total {
    background-color: #000000 !important;
    border: 1px solid #000000 !important;
}

.summary-card-total .card-body {
    background-color: #000000 !important;
}

.summary-card-total .card-body * {
    color: #ffffff !important;
}

.summary-card-success {
    background-color: #f8f9fa !important;
    border: 2px solid #000000 !important;
}

.summary-card-success .card-body {
    background-color: #f8f9fa !important;
}

.summary-card-success .card-body * {
    color: #000000 !important;
}

.summary-card-failed {
    background-color: #ffffff !important;
    border: 2px solid #666666 !important;
}

.summary-card-failed .card-body {
    background-color: #ffffff !important;
}

.summary-card-failed .card-body * {
    color: #666666 !important;
}

.summary-card-credits {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.summary-card-credits .card-body {
    background-color: #ffffff !important;
}

.summary-card-credits .card-body * {
    color: #000000 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--elegant-primary);
    letter-spacing: -0.02em;
}

.display-4 {
    font-weight: 300;
    letter-spacing: -0.03em;
}

.lead {
    color: var(--elegant-secondary);
    font-weight: 400;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
}

.btn-outline-secondary {
    color: var(--elegant-secondary);
    border-color: var(--elegant-border);
}

.btn-outline-secondary:hover {
    color: #ffffff;
    background-color: var(--elegant-secondary);
    border-color: var(--elegant-secondary);
}

.btn-secondary {
    background-color: var(--elegant-secondary);
    border-color: var(--elegant-secondary);
}

/* Forms */
.form-control {
    border: 1px solid var(--elegant-border);
    border-radius: 6px;
    padding: 0.75rem;
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--elegant-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--elegant-primary);
    margin-bottom: 0.5rem;
}

/* Progress bars */
.progress {
    background-color: var(--elegant-light);
    border-radius: 4px;
}

.progress-bar {
    background-color: var(--elegant-primary);
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.75rem;
    border: 2px dashed var(--elegant-border);
    background-color: #fafafa;
}

.form-control[type="file"]:hover {
    border-color: var(--elegant-primary);
    background-color: #ffffff;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: 1px solid var(--elegant-border);
}

.alert-info {
    background-color: #f8f9fa;
    border-color: var(--elegant-border);
    color: var(--elegant-secondary);
}

.alert-success {
    background-color: #f0f4f8;
    border-color: var(--elegant-success);
    color: var(--elegant-success);
}

/* Log display */
.log-entry {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .alert-dismissible .btn-close {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    .accordion-button {
        color: #000 !important;
        background-color: #fff !important;
    }
    
    .accordion-button:not(.collapsed) {
        background-color: #e9ecef !important;
    }
}

/* Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 4px;
}

.badge.bg-success {
    background-color: var(--elegant-success) !important;
    color: #ffffff;
}

.badge.bg-warning {
    background-color: var(--elegant-secondary) !important;
    color: #ffffff;
}

.badge.bg-secondary {
    background-color: #e2e8f0 !important;
    color: var(--elegant-secondary);
}

/* List groups */
.list-group-item {
    border-color: var(--elegant-border);
    background-color: #ffffff;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Icons */
[data-feather] {
    stroke-width: 1.5px;
}

/* Footer - Sticky footer (stays at bottom of viewport) */
footer {
    flex-shrink: 0;
    background-color: #ffffff !important;
    border-top: 1px solid var(--elegant-border);
    color: var(--elegant-secondary);
    margin-top: auto;
    padding-top: 2rem;
}

/* Accordion */
.accordion-button {
    background-color: #ffffff;
    color: var(--elegant-primary);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--elegant-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Hero section styling */
.hero-section {
    padding: 4rem 0;
}

/* Premium Hero Styling - Light Theme */
.hero-premium {
    background: #ffffff;
    border-radius: 24px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 40%);
    pointer-events: none;
}

.hero-title-main {
    font-size: 3.8rem;
    font-weight: 200;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: #0a0a0f;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.hero-title-sub {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.6);
    max-width: 540px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-cta-group {
    position: relative;
    z-index: 1;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #1a1a24 0%, #2a2a34 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-premium {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }
    
    .hero-title-main {
        font-size: 2.4rem;
    }
    
    .hero-title-sub {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn-hero-primary {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

/* Premium Feature Cards */
.feature-card-premium {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-premium:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper i[data-feather] {
    width: 26px;
    height: 26px;
    stroke-width: 1.5px;
    color: #0a0a0f;
}

.feature-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0a0a0f;
    margin-bottom: 0.75rem;
}

.feature-card-text {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 0;
}

/* Steps Section */
.steps-section {
    padding: 2rem 0;
}

.steps-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: #0a0a0f;
    margin-bottom: 2.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0a0a0f;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-heading {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0a0a0f;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .feature-card-premium {
        padding: 1.5rem 1.25rem;
    }
    
    .steps-title {
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.feature-icon {
    width: 48px;
    height: 48px;
    stroke-width: 1px;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
}

/* Dashboard card headers - aligned height */
.card-header {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Animation for processing states */
.processing-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* File list styling */
.list-group-item {
    border-color: var(--bs-border-color);
}

/* Verification results styling */
.border-start {
    border-left-width: 3px !important;
}

/* Status indicators */
.status-pending {
    color: var(--bs-secondary);
}

.status-processing {
    color: var(--bs-warning);
}

.status-completed {
    color: var(--bs-success);
}

.status-failed {
    color: var(--bs-danger);
}

/* AI Wizard Button - Magical Purple Gradient */
.btn-wizard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-wizard:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.btn-wizard:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.btn-wizard i[data-feather] {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Wizard Chat Interface */
.wizard-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 220px);
    min-height: 450px;
    max-height: 700px;
}

.wizard-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    scroll-behavior: smooth;
}

.wizard-message {
    max-width: 88%;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    word-wrap: break-word;
    white-space: pre-line;
    line-height: 1.6;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-message.user {
    margin-left: auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wizard-message.assistant {
    margin-right: auto;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.wizard-message.assistant strong {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-message.system {
    max-width: 70%;
    margin: 0.5rem auto;
    background-color: #f1f3f5;
    color: #495057;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.wizard-input-area {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.wizard-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.wizard-input-container textarea {
    flex: 1;
    resize: none;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-height: 120px;
    min-height: 44px;
}

.wizard-input-container textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.wizard-input-container .btn-send {
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 44px;
}

.wizard-input-container .btn-send:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wizard-input-container .btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* File Attachment Button */
.btn-attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-attach:hover {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

.btn-attach.has-files {
    border-style: solid;
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

.btn-attach input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Wizard Uploaded Files */
.wizard-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.wizard-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4c1d95;
    transition: all 0.2s ease;
}

.wizard-file-badge:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.wizard-file-badge .remove-file {
    cursor: pointer;
    opacity: 0.6;
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wizard-file-badge .remove-file:hover {
    opacity: 1;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .wizard-container {
        height: calc(100vh - 280px);
        min-height: 350px;
    }
    
    .wizard-message {
        max-width: 92%;
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 576px) {
    .wizard-container {
        height: calc(100vh - 200px);
        min-height: 300px;
    }
    
    .wizard-messages {
        padding: 0.75rem;
    }
    
    .wizard-message {
        max-width: 95%;
        font-size: 0.9rem;
    }
    
    .wizard-input-container {
        gap: 0.5rem;
    }
    
    .wizard-input-container textarea {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .btn-attach, .wizard-input-container .btn-send {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
}

/* Generated Checklist Preview */
.checklist-preview {
    background-color: #ffffff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.checklist-preview h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.check-preview-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.check-preview-item h6 {
    margin-bottom: 0.5rem;
}

.verifier-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Wizard Typing Indicator */
.typing-indicator {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    border-radius: 12px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #666666;
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    margin: 0;
    font-size: 1.75rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-dashboard-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Recent Jobs Grid */
.recent-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.job-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.job-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.job-card-processing {
    border-left: 3px solid #3b82f6;
}

.job-card-completed {
    border-left: 3px solid #22c55e;
}

.job-card-error {
    border-left: 3px solid #ef4444;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.job-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    word-break: break-word;
    line-height: 1.3;
}

.job-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-status-badge .spinner-border {
    width: 0.7rem;
    height: 0.7rem;
}

.job-status-processing {
    background: #eff6ff;
    color: #2563eb;
}

.job-status-pending {
    background: #f0fdf4;
    color: #16a34a;
}

.job-status-completed {
    background: #f0fdf4;
    color: #16a34a;
}

.job-status-completed_with_errors {
    background: #fef2f2;
    color: #dc2626;
}

.job-status-failed {
    background: #fef2f2;
    color: #dc2626;
}

.job-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.job-card-docs, .job-card-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.job-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.job-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Checklists List */
.checklists-list {
    display: flex;
    flex-direction: column;
}

.checklist-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background-color: #f8fafc;
}

.checklist-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.checklist-item-info {
    flex: 1;
    min-width: 0;
}

.checklist-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.checklist-item-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.checklist-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.checklist-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.checklist-public-badge {
    color: #22c55e !important;
}

.checklist-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.checklist-btn-use {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem !important;
}

.checklist-btn-group {
    display: flex;
    gap: 0.25rem;
}

.checklist-btn-group .btn {
    padding: 0.4rem 0.5rem;
}

/* Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-actions {
        justify-content: stretch;
    }
    
    .btn-dashboard-action {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn-dashboard-action span {
        display: none;
    }
    
    .btn-dashboard-action i {
        margin: 0;
    }
    
    .recent-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-item-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .checklist-item-actions {
        margin-top: 0.75rem;
        justify-content: flex-start;
    }
    
    .checklist-btn-use {
        flex: 0;
    }
}

@media (max-width: 576px) {
    .dashboard-actions {
        gap: 0.35rem;
    }
    
    .btn-dashboard-action {
        padding: 0.5rem 0.6rem;
    }
    
    .job-card {
        padding: 0.875rem 1rem;
    }
    
    .job-card-title {
        font-size: 0.9rem;
    }
    
    .job-card-meta {
        flex-direction: column;
        gap: 0.35rem;
    }
    
    .checklist-item {
        padding: 0.875rem 1rem;
    }
    
    .checklist-item-name {
        font-size: 0.9rem;
    }
    
    .checklist-item-desc {
        font-size: 0.8rem;
    }
    
    .checklist-item-actions {
        flex-wrap: wrap;
    }
}
