/* Custom CSS for PDF Table Extractor */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.list-group-item {
    border-left: 3px solid #0d6efd;
    margin-bottom: 8px;
}

.progress {
    border-radius: 10px;
}

.progress-bar {
    font-size: 1.1rem;
    font-weight: bold;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Form styling */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* PDF Preview */
.img-fluid {
    border-radius: 4px;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert customization */
.alert {
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #0dcaf0;
}

/* Table cell editing */
.table td input.form-control {
    background: transparent;
    transition: background-color 0.2s;
}

.table td input.form-control:focus {
    background: #fff;
    border: 1px solid #0d6efd !important;
}

/* ===== NEW STYLES ===== */

/* PDF Preview - Dual View for Two-Part Tables */
.pdf-preview-dual {
    margin: 20px 0;
}

.pdf-preview-dual .row {
    display: flex;
    gap: 15px;
}

.pdf-preview-dual h6 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.pdf-preview-single h6 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

/* Table with horizontal scroll */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 800px;
    border-collapse: collapse;
    white-space: nowrap;
}

.table-responsive th,
.table-responsive td {
    white-space: nowrap;
    padding: 8px 12px;
}

/* Actions cell in results table */
.actions-cell {
    text-align: center;
    white-space: nowrap;
}

.actions-cell .btn {
    margin: 2px;
    padding: 4px 8px;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .pdf-preview-dual .row {
        flex-direction: column;
        gap: 20px;
    }
    
    .actions-cell .btn {
        display: block;
        width: 100%;
        margin: 2px 0;
    }
}
