.csv-preview {
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 8px;
    display: none;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #666;
}

.preview-navigation {
    display: flex;
    gap: 4px;
    align-items: center;
}

.preview-nav-btn {
    padding: 2px 6px;
    font-size: 10px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 2px;
}

.preview-nav-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.preview-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-row-info {
    font-size: 10px;
    color: #666;
}

.csv-columns {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.csv-column {
    flex-shrink: 0;
    min-width: 120px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 6px;
    font-size: 11px;
}

.csv-column-value {
    color: #555;
    word-break: break-word;
    min-height: 16px;
}

.csv-column-value.empty {
    color: #999;
    font-style: italic;
}

.btn-preview {
    background: #f8f9fa;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
}

.btn-preview:hover {
    background: #e9ecef;
}

.btn-analyze {
    background: #e3f2fd;
    border: 1px solid #1976d2;
    color: #1976d2;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
}

.btn-analyze:hover {
    background: #bbdefb;
}

.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
    border-color: #ccc;
}

.btn-convert {
    background: #fff3e0;
    border: 1px solid #f57c00;
    color: #f57c00;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
}

.btn-convert:hover {
    background: #ffe0b2;
}

.btn-convert:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
    border-color: #ccc;
}
