/* ============================================
   Offcanvas Content Styling
   Stili dedicati per il contenuto generato dinamicamente
   all'interno dell'offcanvas (#toolProgressOffcanvas .offcanvas-body)
   ============================================ */

/* Contenitore principale dei risultati di ricerca */
#toolProgressOffcanvas .offcanvas-body .search-results-preview {
    padding: 0;
}

/* Header con query */
#toolProgressOffcanvas .offcanvas-body h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#toolProgressOffcanvas .offcanvas-body h5 i {
    font-size: 18px;
    color: #1F77BC;
}

#toolProgressOffcanvas .offcanvas-body h6 {
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 12px;
}

/* Alert boxes */
#toolProgressOffcanvas .offcanvas-body .alert {
    border-radius: 8px;
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid;
}

#toolProgressOffcanvas .offcanvas-body .alert-info {
    background-color: #e8f4fc;
    border-color: #b8dff5;
    color: #1a5f9a;
}

#toolProgressOffcanvas .offcanvas-body .alert-warning {
    background-color: #fff3e0;
    border-color: #ffe0b2;
    color: #d68910;
}

#toolProgressOffcanvas .offcanvas-body .alert strong {
    font-weight: 600;
    color: inherit;
}

#toolProgressOffcanvas .offcanvas-body .alert i {
    margin-right: 4px;
}

/* Divider */
#toolProgressOffcanvas .offcanvas-body hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Search result items */
#toolProgressOffcanvas .offcanvas-body .search-result-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

#toolProgressOffcanvas .offcanvas-body .search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Badge per numero risultato */
#toolProgressOffcanvas .offcanvas-body .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

#toolProgressOffcanvas .offcanvas-body .badge.bg-primary {
    background-color: #1F77BC !important;
}

/* Titoli dei risultati */
#toolProgressOffcanvas .offcanvas-body .search-result-item h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

#toolProgressOffcanvas .offcanvas-body .search-result-item h6 a {
    color: #1F77BC;
    text-decoration: none;
    transition: color 0.2s;
}

#toolProgressOffcanvas .offcanvas-body .search-result-item h6 a:hover {
    color: #1a5f9a;
    text-decoration: underline;
}

#toolProgressOffcanvas .offcanvas-body .search-result-item h6 a i {
    font-size: 12px;
    opacity: 0.7;
}

/* Testo muted (source, metadata) */
#toolProgressOffcanvas .offcanvas-body .text-muted {
    color: #999 !important;
    font-size: 13px;
}

#toolProgressOffcanvas .offcanvas-body .text-secondary {
    color: #666 !important;
}

#toolProgressOffcanvas .offcanvas-body .text-muted i,
#toolProgressOffcanvas .offcanvas-body .text-secondary i {
    font-size: 12px;
    margin-right: 4px;
}

/* Snippet (descrizione) */
#toolProgressOffcanvas .offcanvas-body .search-result-item p.small {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
}

#toolProgressOffcanvas .offcanvas-body .search-result-item p.small strong {
    font-weight: 600;
    color: #2d2d2d;
}

/* Content preview */
#toolProgressOffcanvas .offcanvas-body .content-preview {
    margin-top: 12px;
}

#toolProgressOffcanvas .offcanvas-body .content-text-preview {
    background-color: #f9f9f9 !important;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #2d2d2d;
}

/* Scrollbar per content preview */
#toolProgressOffcanvas .offcanvas-body .content-text-preview::-webkit-scrollbar {
    width: 6px;
}

#toolProgressOffcanvas .offcanvas-body .content-text-preview::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

#toolProgressOffcanvas .offcanvas-body .content-text-preview::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

#toolProgressOffcanvas .offcanvas-body .content-text-preview::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Content text (per URL extraction) */
#toolProgressOffcanvas .offcanvas-body .content-text {
    background-color: #f9f9f9 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px;
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #2d2d2d;
}

/* Scrollbar per content text */
#toolProgressOffcanvas .offcanvas-body .content-text::-webkit-scrollbar {
    width: 8px;
}

#toolProgressOffcanvas .offcanvas-body .content-text::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

#toolProgressOffcanvas .offcanvas-body .content-text::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

#toolProgressOffcanvas .offcanvas-body .content-text::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Link esterni */
#toolProgressOffcanvas .offcanvas-body a:not(.btn) {
    color: #1F77BC;
    text-decoration: none;
    transition: color 0.2s;
}

#toolProgressOffcanvas .offcanvas-body a:not(.btn):hover {
    color: #1a5f9a;
    text-decoration: underline;
}

/* Paragrafi */
#toolProgressOffcanvas .offcanvas-body p {
    margin-bottom: 12px;
    line-height: 1.6;
}

#toolProgressOffcanvas .offcanvas-body p:last-child {
    margin-bottom: 0;
}

/* Utility classes */
#toolProgressOffcanvas .offcanvas-body .mb-0 {
    margin-bottom: 0 !important;
}

#toolProgressOffcanvas .offcanvas-body .mb-1 {
    margin-bottom: 4px !important;
}

#toolProgressOffcanvas .offcanvas-body .mb-2 {
    margin-bottom: 8px !important;
}

#toolProgressOffcanvas .offcanvas-body .mb-3 {
    margin-bottom: 12px !important;
}

#toolProgressOffcanvas .offcanvas-body .mb-4 {
    margin-bottom: 16px !important;
}

#toolProgressOffcanvas .offcanvas-body .mt-1 {
    margin-top: 4px !important;
}

#toolProgressOffcanvas .offcanvas-body .mt-2 {
    margin-top: 8px !important;
}

#toolProgressOffcanvas .offcanvas-body .pb-3 {
    padding-bottom: 12px !important;
}

#toolProgressOffcanvas .offcanvas-body .p-2 {
    padding: 8px !important;
}

/* Flex utilities */
#toolProgressOffcanvas .offcanvas-body .d-flex {
    display: flex !important;
}

#toolProgressOffcanvas .offcanvas-body .align-items-start {
    align-items: flex-start !important;
}

#toolProgressOffcanvas .offcanvas-body .flex-grow-1 {
    flex-grow: 1 !important;
}

#toolProgressOffcanvas .offcanvas-body .me-1 {
    margin-right: 4px !important;
}

#toolProgressOffcanvas .offcanvas-body .me-2 {
    margin-right: 8px !important;
}

/* Background utilities */
#toolProgressOffcanvas .offcanvas-body .bg-light {
    background-color: #f9f9f9 !important;
}

/* Border utilities */
#toolProgressOffcanvas .offcanvas-body .border-bottom {
    border-bottom: 1px solid #f0f0f0 !important;
}

#toolProgressOffcanvas .offcanvas-body .rounded {
    border-radius: 6px !important;
}

/* Tool detail content container */
#toolProgressOffcanvas .offcanvas-body .tool-detail-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Empty state */
#toolProgressOffcanvas .offcanvas-body .alert-warning i {
    color: #F39C12;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #toolProgressOffcanvas .offcanvas-body .search-result-item h6 {
        font-size: 13px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .content-text-preview,
    #toolProgressOffcanvas .offcanvas-body .content-text {
        font-size: 12px;
        padding: 10px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .alert {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Offcanvas header styling */
#toolProgressOffcanvas .offcanvas-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 20px;
}

#toolProgressOffcanvas .offcanvas-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
}

#toolProgressOffcanvas .btn-close {
    font-size: 14px;
}

#toolProgressOffcanvas .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(31, 119, 188, 0.1);
}

/* Offcanvas body padding */
#toolProgressOffcanvas .offcanvas-body {
    padding: 20px;
}

/* ============================================
   Loading State Styling
   Stili per lo stato di caricamento durante l'elaborazione
   ============================================ */

/* Loading container */
#toolProgressOffcanvas .offcanvas-body .text-center {
    padding: 48px 24px;
}

/* Spinner */
#toolProgressOffcanvas .offcanvas-body .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    margin-bottom: 24px;
}

#toolProgressOffcanvas .offcanvas-body .spinner-border.text-primary {
    color: #1F77BC !important;
    border-color: rgba(31, 119, 188, 0.2);
    border-right-color: #1F77BC;
}

/* Loading title */
#toolProgressOffcanvas .offcanvas-body .text-center h6 {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 12px;
}

/* Loading message */
#toolProgressOffcanvas .offcanvas-body .text-center .text-muted {
    font-size: 14px;
    color: #666 !important;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Progress bar container */
#toolProgressOffcanvas .offcanvas-body .text-center .progress {
    height: 8px;
    max-width: 300px;
    margin: 0 auto 12px;
    background-color: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

/* Progress bar */
#toolProgressOffcanvas .offcanvas-body .text-center .progress-bar {
    background-color: #1F77BC;
    transition: width 0.3s ease;
}

#toolProgressOffcanvas .offcanvas-body .text-center .progress-bar.bg-primary {
    background-color: #1F77BC !important;
}

/* Progress bar animation */
#toolProgressOffcanvas .offcanvas-body .text-center .progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

#toolProgressOffcanvas .offcanvas-body .text-center .progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Percentage text */
#toolProgressOffcanvas .offcanvas-body .text-center .text-muted.small {
    font-size: 13px;
    color: #999 !important;
    margin-top: 8px;
    font-weight: 500;
}

/* Visually hidden (for screen readers) */
#toolProgressOffcanvas .offcanvas-body .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Indexed URLs Preview Styling
   Stili per la visualizzazione degli URL indicizzati
   ============================================ */

/* Container principale */
#toolProgressOffcanvas .offcanvas-body .indexed-urls-preview {
    padding: 0;
}

/* Lista degli URL */
#toolProgressOffcanvas .offcanvas-body .indexed-urls-list {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px;
}

/* Scrollbar per la lista URL */
#toolProgressOffcanvas .offcanvas-body .indexed-urls-list::-webkit-scrollbar {
    width: 6px;
}

#toolProgressOffcanvas .offcanvas-body .indexed-urls-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

#toolProgressOffcanvas .offcanvas-body .indexed-urls-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

#toolProgressOffcanvas .offcanvas-body .indexed-urls-list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Singolo item URL */
#toolProgressOffcanvas .offcanvas-body .indexed-url-item {
    padding: 8px 0;
    transition: background-color 0.2s;
}

#toolProgressOffcanvas .offcanvas-body .indexed-url-item:hover {
    background-color: rgba(31, 119, 188, 0.05);
    border-radius: 4px;
    margin: 0 -8px;
    padding: 8px;
}

#toolProgressOffcanvas .offcanvas-body .indexed-url-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Badge numero URL */
#toolProgressOffcanvas .offcanvas-body .indexed-url-item .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    min-width: 35px;
    text-align: center;
}

#toolProgressOffcanvas .offcanvas-body .indexed-url-item .badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Link URL */
#toolProgressOffcanvas .offcanvas-body .indexed-url-item a {
    color: #1F77BC;
    font-size: 13px;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

#toolProgressOffcanvas .offcanvas-body .indexed-url-item a:hover {
    color: #1a5f9a;
}

#toolProgressOffcanvas .offcanvas-body .indexed-url-item a i {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}

/* Text truncate per URL lunghi */
#toolProgressOffcanvas .offcanvas-body .indexed-url-item .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive per indexed URLs */
@media (max-width: 576px) {
    #toolProgressOffcanvas .offcanvas-body .indexed-urls-list {
        padding: 8px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .indexed-url-item a {
        font-size: 12px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .indexed-url-item .badge {
        font-size: 9px;
        padding: 2px 5px;
        min-width: 28px;
    }
}

/* ============================================
   Site Crawler Preview Styling
   Stili per la visualizzazione dello stato del crawler
   ============================================ */

/* Container principale */
#toolProgressOffcanvas .offcanvas-body .site-crawler-preview {
    padding: 0;
}

/* Grid delle statistiche */
#toolProgressOffcanvas .offcanvas-body .crawler-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Card statistica singola */
#toolProgressOffcanvas .offcanvas-body .crawler-stat-card {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

#toolProgressOffcanvas .offcanvas-body .crawler-stat-card:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Icona della card */
#toolProgressOffcanvas .offcanvas-body .crawler-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

#toolProgressOffcanvas .offcanvas-body .crawler-stat-icon i {
    line-height: 1;
}

/* Colori specifici per tipo */
#toolProgressOffcanvas .offcanvas-body .crawler-stat-pages .crawler-stat-icon {
    background: linear-gradient(135deg, #1F77BC 0%, #3498DB 100%);
    color: white;
}

#toolProgressOffcanvas .offcanvas-body .crawler-stat-images .crawler-stat-icon {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    color: white;
}

#toolProgressOffcanvas .offcanvas-body .crawler-stat-documents .crawler-stat-icon {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
}

#toolProgressOffcanvas .offcanvas-body .crawler-stat-total .crawler-stat-icon {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    color: white;
}

/* Contenuto della card */
#toolProgressOffcanvas .offcanvas-body .crawler-stat-content {
    flex: 1;
    min-width: 0;
}

#toolProgressOffcanvas .offcanvas-body .crawler-stat-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

#toolProgressOffcanvas .offcanvas-body .crawler-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1;
}

/* Metadata del crawler */
#toolProgressOffcanvas .offcanvas-body .crawler-metadata {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
}

#toolProgressOffcanvas .offcanvas-body .crawler-metadata p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

#toolProgressOffcanvas .offcanvas-body .crawler-metadata p:last-child {
    margin-bottom: 0;
}

#toolProgressOffcanvas .offcanvas-body .crawler-metadata strong {
    font-weight: 600;
    color: #2d2d2d;
}

/* Badge status */
#toolProgressOffcanvas .offcanvas-body .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

#toolProgressOffcanvas .offcanvas-body .badge.bg-success {
    background-color: #27AE60 !important;
}

#toolProgressOffcanvas .offcanvas-body .badge.bg-primary {
    background-color: #1F77BC !important;
}

#toolProgressOffcanvas .offcanvas-body .badge.bg-secondary {
    background-color: #6c757d !important;
}

#toolProgressOffcanvas .offcanvas-body .badge.bg-danger {
    background-color: #E74C3C !important;
}

/* Download button */
#toolProgressOffcanvas .offcanvas-body .btn-primary {
    background-color: #1F77BC;
    border-color: #1F77BC;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

#toolProgressOffcanvas .offcanvas-body .btn-primary:hover {
    background-color: #1a5f9a;
    border-color: #1a5f9a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(31, 119, 188, 0.3);
}

#toolProgressOffcanvas .offcanvas-body .btn-primary i {
    font-size: 16px;
}

/* Responsive per crawler stats */
@media (max-width: 576px) {
    #toolProgressOffcanvas .offcanvas-body .crawler-stats-grid {
        grid-template-columns: 1fr;
    }
    
    #toolProgressOffcanvas .offcanvas-body .crawler-stat-card {
        padding: 12px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .crawler-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .crawler-stat-value {
        font-size: 20px;
    }
}

/* ============================================
   File Search Preview Styling
   Stili per la visualizzazione dei file caricati nella chat
   ============================================ */

/* Container principale file search */
#toolProgressOffcanvas .offcanvas-body .file-search-files-preview {
    padding: 0;
}

/* Singolo item file */
#toolProgressOffcanvas .offcanvas-body .file-search-result-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

#toolProgressOffcanvas .offcanvas-body .file-search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Emoji del file */
#toolProgressOffcanvas .offcanvas-body .file-search-emoji {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

/* Nome file */
#toolProgressOffcanvas .offcanvas-body .file-search-result-item h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: #2d2d2d;
}

/* Metadata file */
#toolProgressOffcanvas .offcanvas-body .file-search-result-item .text-muted {
    color: #999 !important;
    font-size: 13px;
}

#toolProgressOffcanvas .offcanvas-body .file-search-result-item .text-muted i {
    font-size: 12px;
    margin-right: 4px;
}

/* Badge MIME type */
#toolProgressOffcanvas .offcanvas-body .file-search-result-item .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Container contenuto file */
#toolProgressOffcanvas .offcanvas-body .file-search-content-preview {
    padding: 0;
}

/* Display contenuto file */
#toolProgressOffcanvas .offcanvas-body .file-search-content-display {
    background-color: #f9f9f9 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px;
    padding: 16px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #2d2d2d;
}

/* Scrollbar per contenuto file */
#toolProgressOffcanvas .offcanvas-body .file-search-content-display::-webkit-scrollbar {
    width: 8px;
}

#toolProgressOffcanvas .offcanvas-body .file-search-content-display::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

#toolProgressOffcanvas .offcanvas-body .file-search-content-display::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

#toolProgressOffcanvas .offcanvas-body .file-search-content-display::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Responsive per file search */
@media (max-width: 576px) {
    #toolProgressOffcanvas .offcanvas-body .file-search-result-item h6 {
        font-size: 13px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .file-search-emoji {
        font-size: 20px;
    }
    
    #toolProgressOffcanvas .offcanvas-body .file-search-content-display {
        font-size: 13px;
        padding: 12px;
    }
}

/* ============================================
   SEO Porting Preview Styling
   Stili per la visualizzazione dei risultati SEO Porting
   ============================================ */

#toolProgressOffcanvas .offcanvas-body .seo-porting-preview {
    padding: 0;
}

/* Chips (common columns) */
#toolProgressOffcanvas .offcanvas-body .seo-porting-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#toolProgressOffcanvas .offcanvas-body .seo-porting-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f6fb;
    border: 1px solid #d9e6f5;
    color: #1a5f9a;
    font-size: 12px;
    font-weight: 600;
}

/* Key/Value blocks */
#toolProgressOffcanvas .offcanvas-body .seo-porting-kv {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #2d2d2d;
}

/* Stats grid */
#toolProgressOffcanvas .offcanvas-body .seo-porting-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

#toolProgressOffcanvas .offcanvas-body .seo-porting-stat {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 14px;
}

#toolProgressOffcanvas .offcanvas-body .seo-porting-stat .k {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

#toolProgressOffcanvas .offcanvas-body .seo-porting-stat .v {
    font-size: 18px;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1;
}

/* Responsive */
@media (max-width: 576px) {
    #toolProgressOffcanvas .offcanvas-body .seo-porting-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Competitor Analysis Preview Styling
   Stili per la visualizzazione dei risultati Analisi Competitor
   ============================================ */

#toolProgressOffcanvas .offcanvas-body .competitor-analysis-preview {
    padding: 0;
}

/* ============================================
   Text To Document Preview Styling
   Stili per la visualizzazione dei risultati Text To Document
   ============================================ */

#toolProgressOffcanvas .offcanvas-body .text-to-document-preview {
    padding: 0;
}

#toolProgressOffcanvas .offcanvas-body .text-to-document-preview .alert-success {
    background-color: #f0fff4;
    border-color: #c3e6cb;
    color: #155724;
}

#toolProgressOffcanvas .offcanvas-body .text-to-document-preview .alert-success i {
    color: #28a745;
}

/* Fix flex layout for text-to-document preview */
#toolProgressOffcanvas .offcanvas-body .text-to-document-preview .min-w-0 {
    min-width: 0;
}
